KDGpu::DrawIndexedCommand¶
Parameters for indexed draw commands. More...
#include <render_pass_command_recorder.h>
Public Attributes¶
| Name | |
|---|---|
| uint32_t | indexCount Number of indices to draw. |
| uint32_t | instanceCount Number of instances to draw. |
| uint32_t | firstIndex Index of first index to read from index buffer. |
| int32_t | vertexOffset Offset added to each index value before accessing vertex buffer. |
| uint32_t | firstInstance ID of first instance. |
Detailed Description¶
1 | |
Parameters for indexed draw commands.
See: RenderPassCommandRecorder::drawIndexed(), RenderPassCommandRecorder::setIndexBuffer()
Most commonly used draw command type. Reads indices from the bound index buffer which reference vertices in vertex buffers, allowing vertex reuse and reduced memory usage.
Public Attributes Documentation¶
variable indexCount¶
1 | |
Number of indices to draw.
variable instanceCount¶
1 | |
Number of instances to draw.
variable firstIndex¶
1 | |
Index of first index to read from index buffer.
variable vertexOffset¶
1 | |
Offset added to each index value before accessing vertex buffer.
variable firstInstance¶
1 | |
ID of first instance.
Updated on 2026-03-31 at 00:02:06 +0000