C Specification
// Provided by VK_NV_device_generated_commands
typedef struct VkGeneratedCommandsInfoNV {
VkStructureType sType;
const void* pNext;
VkPipelineBindPoint pipelineBindPoint;
VkPipeline pipeline;
VkIndirectCommandsLayoutNV indirectCommandsLayout;
uint32_t streamCount;
const VkIndirectCommandsStreamNV* pStreams;
uint32_t sequencesCount;
VkBuffer preprocessBuffer;
VkDeviceSize preprocessOffset;
VkDeviceSize preprocessSize;
VkBuffer sequencesCountBuffer;
VkDeviceSize sequencesCountOffset;
VkBuffer sequencesIndexBuffer;
VkDeviceSize sequencesIndexOffset;
} VkGeneratedCommandsInfoNV;
Members
-
sType
is the type of this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
pipelineBindPoint
is the VkPipelineBindPoint used for thepipeline
. -
pipeline
is the VkPipeline used in the generation and execution process. -
indirectCommandsLayout
is the VkIndirectCommandsLayoutNV that provides the command sequence to generate. -
streamCount
defines the number of input streams -
pStreams
is a pointer to an array ofstreamCount
VkIndirectCommandsStreamNV structures providing the input data for the tokens used inindirectCommandsLayout
. -
sequencesCount
is the maximum number of sequences to reserve. IfsequencesCountBuffer
is VK_NULL_HANDLE, this is also the actual number of sequences generated. -
preprocessBuffer
is the VkBuffer that is used for preprocessing the input data for execution. If this structure is used with vkCmdExecuteGeneratedCommandsNV with itsisPreprocessed
set toVK_TRUE
, then the preprocessing step is skipped and data is only read from this buffer. The contents and the layout of this buffer is opaque to applications and must not be modified or copied to another buffer for reuse. -
preprocessOffset
is the byte offset intopreprocessBuffer
where the preprocessed data is stored. -
preprocessSize
is the maximum byte size within thepreprocessBuffer
after thepreprocessOffset
that is available for preprocessing. -
sequencesCountBuffer
is aVkBuffer
in which the actual number of sequences is provided as singleuint32_t
value. -
sequencesCountOffset
is the byte offset intosequencesCountBuffer
where the count value is stored. -
sequencesIndexBuffer
is aVkBuffer
that encodes the used sequence indices asuint32_t
array. -
sequencesIndexOffset
is the byte offset intosequencesIndexBuffer
where the index values start.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.