Package com.aspose.threed
Interface ICommandList
-
public interface ICommandList
Encodes a sequence of commands which will be sent to GPU to render.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bindDescriptorSet(IDescriptorSet descriptorSet)
Bind the descriptor set to current pipelinevoid
bindIndexBuffer(IIndexBuffer indexBuffer)
Bind the index buffer for renderingvoid
bindPipeline(IPipeline pipeline)
Bind the pipeline instance for renderingvoid
bindVertexBuffer(IVertexBuffer vertexBuffer)
Bind the vertex buffer for renderingvoid
draw()
Draw without index buffervoid
draw(int start, int count)
Draw without index buffervoid
drawIndex()
Issue an indexed draw into a command listvoid
drawIndex(int start, int count)
Issue an indexed draw into a command listvoid
pushConstants(int stage, byte[] data)
Push the constant to the pipelinevoid
pushConstants(int stage, byte[] data, int size)
Push the constant to the pipeline
-
-
-
Method Detail
-
bindPipeline
void bindPipeline(IPipeline pipeline)
Bind the pipeline instance for rendering- Parameters:
pipeline
-
-
bindVertexBuffer
void bindVertexBuffer(IVertexBuffer vertexBuffer)
Bind the vertex buffer for rendering- Parameters:
vertexBuffer
-
-
bindIndexBuffer
void bindIndexBuffer(IIndexBuffer indexBuffer)
Bind the index buffer for rendering- Parameters:
indexBuffer
-
-
bindDescriptorSet
void bindDescriptorSet(IDescriptorSet descriptorSet)
Bind the descriptor set to current pipeline- Parameters:
descriptorSet
-
-
draw
void draw(int start, int count)
Draw without index buffer- Parameters:
start
-count
-
-
draw
void draw()
Draw without index buffer
-
drawIndex
void drawIndex()
Issue an indexed draw into a command list
-
drawIndex
void drawIndex(int start, int count)
Issue an indexed draw into a command list- Parameters:
start
- The first index to drawcount
- The count of indices to draw
-
pushConstants
void pushConstants(int stage, byte[] data)
Push the constant to the pipeline- Parameters:
stage
- Which shader stage will consume the constant datadata
- The data that will be sent to the shader
-
pushConstants
void pushConstants(int stage, byte[] data, int size)
Push the constant to the pipeline- Parameters:
stage
- Which shader stage will consume the constant datadata
- The data that will be sent to the shadersize
- Bytes to write to the pipeline
-
-