Interface IGpuCommandList
Represents a GPU command list / draw context for recording rendering commands.
public interface IGpuCommandList : IDisposable
- Inherited Members
Methods
BeginRenderPass(IGpuRenderTarget, Color4)
Begins a render pass targeting the given render target.
void BeginRenderPass(IGpuRenderTarget renderTarget, Color4 clearColor)
Parameters
renderTargetIGpuRenderTargetclearColorColor4
Commit()
Submits all recorded commands for execution and waits for completion.
void Commit()
Draw(int)
Draws primitives using the current pipeline and vertex buffer.
void Draw(int vertexCount)
Parameters
vertexCountintNumber of vertices to draw.
EndRenderPass()
Ends the current render pass.
void EndRenderPass()
SetConstantBuffer(void*, int)
Sets the uniform/constant buffer data.
void SetConstantBuffer(void* data, int sizeInBytes)
Parameters
SetPipeline(GpuPipelineDesc)
Sets the pipeline state for subsequent draw calls.
void SetPipeline(GpuPipelineDesc pipeline)
Parameters
pipelineGpuPipelineDesc
SetVertexBuffer(void*, GpuVertexBufferDesc)
Sets the vertex buffer for subsequent draw calls.
void SetVertexBuffer(void* data, GpuVertexBufferDesc desc)
Parameters
datavoid*Pointer to vertex data.
descGpuVertexBufferDescVertex buffer description.