Structures
VkBindIndexBufferIndirectCommandNV
Structure specifying input data for a single index buffer command token
The VkBindIndexBufferIndirectCommandNV
structure specifies the input
data for the VK_INDIRECT_COMMANDS_TOKEN_TYPE_INDEX_BUFFER_NV
token.
typedef struct VkBindIndexBufferIndirectCommandNV {
VkDeviceAddress bufferAddress;
uint32_t size;
VkIndexType indexType;
} VkBindIndexBufferIndirectCommandNV;
bufferAddress
specifies a physical address of the VkBuffer used as index buffer.size
is the byte size range which is available for this operation from the provided address.indexType
is a VkIndexType value specifying how indices are treated. Instead of the Vulkan enum values, a customuint32_t
value can be mapped to VkIndexType by specifying theVkIndirectCommandsLayoutTokenNV
::pIndexTypes
andVkIndirectCommandsLayoutTokenNV
::pIndexTypeValues
arrays.
Valid Usage
VUID-VkBindIndexBufferIndirectCommandNV-None-02946
The buffer’s usage flag from which the address was acquired must have
the VK_BUFFER_USAGE_INDEX_BUFFER_BIT
bit set
VUID-VkBindIndexBufferIndirectCommandNV-bufferAddress-02947
The bufferAddress
must be aligned to the indexType
used
VUID-VkBindIndexBufferIndirectCommandNV-None-02948
Each element of the buffer from which the address was acquired and that
is non-sparse must be bound completely and contiguously to a single
VkDeviceMemory
object
Valid Usage (Implicit)
VUID-VkBindIndexBufferIndirectCommandNV-indexType-parameter
indexType
must be a valid VkIndexType value