![]() |
LLGL 0.05 Beta
|
Structure for the arguments of an indirect draw command. More...
#include <IndirectArguments.h>
Public Attributes | |
| std::uint32_t | numVertices |
| Specifies the number of vertices per instance. | |
| std::uint32_t | numInstances |
| Specifies the number of instances to draw. | |
| std::uint32_t | firstVertex |
| Specifies the zero-based offset of the first vertex from the vertex buffer. | |
| std::uint32_t | firstInstance |
| Specifies the zero-based offset of the first instance. | |
Structure for the arguments of an indirect draw command.
DrawArraysIndirectCommand: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_draw_indirect.txt VkDrawIndirectCommand: https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkDrawIndirectCommand.html D3D11_DRAW_INSTANCED_INDIRECT_ARGS: https://docs.microsoft.com/en-us/windows/desktop/api/d3d11/ns-d3d11-d3d11_draw_instanced_indirect_args D3D12_DRAW_ARGUMENTS: https://docs.microsoft.com/en-us/windows/desktop/api/D3D12/ns-d3d12-d3d12_draw_arguments MTLDrawPrimitivesIndirectArguments: https://developer.apple.com/documentation/metal/mtldrawprimitivesindirectarguments?language=objc | std::uint32_t LLGL::DrawIndirectArguments::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::DrawIndirectArguments::firstVertex |
Specifies the zero-based offset of the first vertex from the vertex buffer.
SV_VertexID in HLSL and gl_VertexID in GLSL (or gl_VertexIndex for Vulkan), due to rendering API differences. The system value SV_VertexID in HLSL will always start with zero, but the system value gl_VertexID in GLSL (or gl_VertexIndex for Vulkan) will start with the value of firstVertex. | std::uint32_t LLGL::DrawIndirectArguments::numInstances |
Specifies the number of instances to draw.
| std::uint32_t LLGL::DrawIndirectArguments::numVertices |
Specifies the number of vertices per instance.