Table of Contents

Interface IGpuCommandList

Namespace
Xui.GPU.Hardware
Assembly
Xui.Core.dll

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

renderTarget IGpuRenderTarget
clearColor Color4

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

vertexCount int

Number 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

data void*

Pointer to constant data.

sizeInBytes int

Size of the constant data in bytes.

SetPipeline(GpuPipelineDesc)

Sets the pipeline state for subsequent draw calls.

void SetPipeline(GpuPipelineDesc pipeline)

Parameters

pipeline GpuPipelineDesc

SetVertexBuffer(void*, GpuVertexBufferDesc)

Sets the vertex buffer for subsequent draw calls.

void SetVertexBuffer(void* data, GpuVertexBufferDesc desc)

Parameters

data void*

Pointer to vertex data.

desc GpuVertexBufferDesc

Vertex buffer description.