![]() |
LLGL 0.05 Beta
|
Structure for the arguments of an indirect indexed draw command. More...
#include <IndirectArguments.h>
Public Attributes | |
| std::uint32_t | numIndices |
| Specifies the number of indices per instance. | |
| std::uint32_t | numInstances |
| Specifies the number of instances to draw. | |
| std::uint32_t | firstIndex |
| Specifies the zero-based offset of the first index from the index buffer. | |
| std::int32_t | vertexOffset |
| Specifies the base vertex offset (positive or negative) which is added to each index from the index buffer. | |
| std::uint32_t | firstInstance |
| Specifies the zero-based offset of the first instance. | |
Structure for the arguments of an indirect indexed draw command.
DrawElementsIndirectCommand: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_draw_indirect.txt VkDrawIndexedIndirectCommand: https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkDrawIndexedIndirectCommand.html D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS: https://docs.microsoft.com/en-us/windows/desktop/api/d3d11/ns-d3d11-d3d11_draw_indexed_instanced_indirect_args D3D12_DRAW_INDEXED_ARGUMENTS: https://docs.microsoft.com/en-us/windows/desktop/api/D3D12/ns-d3d12-d3d12_draw_indexed_arguments MTLDrawIndexedPrimitivesIndirectArguments: https://developer.apple.com/documentation/metal/mtldrawindexedprimitivesindirectarguments?language=objc | std::uint32_t LLGL::DrawIndexedIndirectArguments::firstIndex |
Specifies the zero-based offset of the first index from the index buffer.
| std::uint32_t LLGL::DrawIndexedIndirectArguments::firstInstance |
Specifies the zero-based offset of the first instance.
SV_InstanceID in HLSL and gl_InstanceID in GLSL (or gl_InstanceIndex for Vulkan), due to rendering API differences. The system value SV_InstanceID in HLSL will always start with zero, but the system value gl_InstanceID in GLSL (or gl_InstanceIndex for Vulkan) will start with the value of firstInstance. | std::uint32_t LLGL::DrawIndexedIndirectArguments::numIndices |
Specifies the number of indices per instance.
| std::uint32_t LLGL::DrawIndexedIndirectArguments::numInstances |
Specifies the number of instances to draw.
| std::int32_t LLGL::DrawIndexedIndirectArguments::vertexOffset |
Specifies the base vertex offset (positive or negative) which is added to each index from the index buffer.