ICommandList

public interface ICommandList

Encodes a sequence of commands which will be sent to GPU to render.

Methods

MethodDescription
bindDescriptorSet(IDescriptorSet descriptorSet)Bind the descriptor set to current pipeline
bindIndexBuffer(IIndexBuffer indexBuffer)Bind the index buffer for rendering
bindPipeline(IPipeline pipeline)Bind the pipeline instance for rendering
bindVertexBuffer(IVertexBuffer vertexBuffer)Bind the vertex buffer for rendering
draw()Draw without index buffer
draw(int start, int count)Draw without index buffer
drawIndex()Issue an indexed draw into a command list
drawIndex(int start, int count)Issue an indexed draw into a command list
pushConstants(int stage, byte[] data)Push the constant to the pipeline
pushConstants(int stage, byte[] data, int size)Push the constant to the pipeline

bindDescriptorSet(IDescriptorSet descriptorSet)

public abstract void bindDescriptorSet(IDescriptorSet descriptorSet)

Bind the descriptor set to current pipeline

Parameters:

ParameterTypeDescription
descriptorSetIDescriptorSet

bindIndexBuffer(IIndexBuffer indexBuffer)

public abstract void bindIndexBuffer(IIndexBuffer indexBuffer)

Bind the index buffer for rendering

Parameters:

ParameterTypeDescription
indexBufferIIndexBuffer

bindPipeline(IPipeline pipeline)

public abstract void bindPipeline(IPipeline pipeline)

Bind the pipeline instance for rendering

Parameters:

ParameterTypeDescription
pipelineIPipeline

bindVertexBuffer(IVertexBuffer vertexBuffer)

public abstract void bindVertexBuffer(IVertexBuffer vertexBuffer)

Bind the vertex buffer for rendering

Parameters:

ParameterTypeDescription
vertexBufferIVertexBuffer

draw()

public abstract void draw()

Draw without index buffer

draw(int start, int count)

public abstract void draw(int start, int count)

Draw without index buffer

Parameters:

ParameterTypeDescription
startint
countint

drawIndex()

public abstract void drawIndex()

Issue an indexed draw into a command list

drawIndex(int start, int count)

public abstract void drawIndex(int start, int count)

Issue an indexed draw into a command list

Parameters:

ParameterTypeDescription
startintThe first index to draw
countintThe count of indices to draw

pushConstants(int stage, byte[] data)

public abstract void pushConstants(int stage, byte[] data)

Push the constant to the pipeline

Parameters:

ParameterTypeDescription
stageintWhich shader stage will consume the constant data
databyte[]The data that will be sent to the shader

pushConstants(int stage, byte[] data, int size)

public abstract void pushConstants(int stage, byte[] data, int size)

Push the constant to the pipeline

Parameters:

ParameterTypeDescription
stageintWhich shader stage will consume the constant data
databyte[]The data that will be sent to the shader
sizeintBytes to write to the pipeline