Package icyllis.arc3d.granite
Class DrawCommandList
java.lang.Object
icyllis.arc3d.granite.DrawCommandList
The list that holds commands of a draw pass, and can be replayed on
CommandBuffer
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
struct BindGraphicsPipeline { int pipelineIndex; }
static final int
static final int
static final int
static final int
static final int
struct Draw { int vertexCount; int baseVertex; }
static final int
static final int
static final int
static final int
final it.unimi.dsi.fastutil.objects.ObjectArrayList
<Object> Holds all reference data, raw pointers.final it.unimi.dsi.fastutil.ints.IntArrayList
Holds all primitive data. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bindGraphicsPipeline
(int pipelineIndex) final void
bindIndexBuffer
(int indexType, BufferViewInfo bufferInfo) final void
bindTextures
(int[] textures) final void
bindUniformBuffer
(int binding, @RawPtr Buffer buffer, long offset, long size) final void
bindVertexBuffer
(int binding, BufferViewInfo bufferInfo) void
debug
(PrintWriter pw) void
draw
(int vertexCount, int baseVertex) final void
drawIndexed
(int indexCount, int baseIndex, int baseVertex) final void
drawIndexedInstanced
(int indexCount, int baseIndex, int instanceCount, int baseInstance, int baseVertex) final void
drawInstanced
(int instanceCount, int baseInstance, int vertexCount, int baseVertex) final void
finish()
final void
setScissor
(Rect2ic scissor, int surfaceHeight, int origin) Flush scissor.
-
Field Details
-
CMD_BIND_GRAPHICS_PIPELINE
public static final int CMD_BIND_GRAPHICS_PIPELINEstruct BindGraphicsPipeline { int pipelineIndex; }
- See Also:
-
CMD_DRAW
public static final int CMD_DRAWstruct Draw { int vertexCount; int baseVertex; }
- See Also:
-
CMD_DRAW_INDEXED
public static final int CMD_DRAW_INDEXED- See Also:
-
CMD_DRAW_INSTANCED
public static final int CMD_DRAW_INSTANCED- See Also:
-
CMD_DRAW_INDEXED_INSTANCED
public static final int CMD_DRAW_INDEXED_INSTANCED- See Also:
-
CMD_BIND_INDEX_BUFFER
public static final int CMD_BIND_INDEX_BUFFER- See Also:
-
CMD_BIND_VERTEX_BUFFER
public static final int CMD_BIND_VERTEX_BUFFER- See Also:
-
CMD_SET_SCISSOR
public static final int CMD_SET_SCISSOR- See Also:
-
CMD_BIND_UNIFORM_BUFFER
public static final int CMD_BIND_UNIFORM_BUFFER- See Also:
-
CMD_BIND_TEXTURES
public static final int CMD_BIND_TEXTURES- See Also:
-
mPrimitives
public final it.unimi.dsi.fastutil.ints.IntArrayList mPrimitivesHolds all primitive data. -
mPointers
Holds all reference data, raw pointers.
-
-
Constructor Details
-
DrawCommandList
public DrawCommandList()
-
-
Method Details
-
bindGraphicsPipeline
public void bindGraphicsPipeline(int pipelineIndex) -
draw
public void draw(int vertexCount, int baseVertex) -
drawIndexed
public final void drawIndexed(int indexCount, int baseIndex, int baseVertex) -
drawInstanced
public final void drawInstanced(int instanceCount, int baseInstance, int vertexCount, int baseVertex) -
drawIndexedInstanced
public final void drawIndexedInstanced(int indexCount, int baseIndex, int instanceCount, int baseInstance, int baseVertex) -
bindIndexBuffer
-
bindVertexBuffer
-
setScissor
Flush scissor.- Parameters:
surfaceHeight
- the effective height of color attachmentorigin
- the surface origin- See Also:
-
bindUniformBuffer
-
bindTextures
public final void bindTextures(int[] textures) - Parameters:
textures
- pairs of texture view index and sampler index
-
finish
public final void finish() -
debug
-