C Specification
Transform feedback for specific transform feedback buffers is made active by calling:
// Provided by VK_KHR_device_address_commands with VK_EXT_transform_feedback
void vkCmdBeginTransformFeedback2EXT(
VkCommandBuffer commandBuffer,
uint32_t firstCounterRange,
uint32_t counterRangeCount,
const VkBindTransformFeedbackBuffer2InfoEXT* pCounterInfos);
Parameters
-
commandBufferis the command buffer into which the command is recorded. -
firstCounterRangeis the index of the first transform feedback buffer corresponding topCounterInfos[0]. -
counterRangeCountis the size of thepCounterRangesarray. -
pCounterInfosisNULLor a pointer to an array of VkBindTransformFeedbackBuffer2InfoEXT structures defining memory ranges containing counters used to resume transform feedback from a previous location.
Description
If pCounterInfos is NULL, it is equivalent to an array of
VkBindTransformFeedbackBuffer2InfoEXT structures with each element
having a addressRange.size of 0.
If the addressRange.size of an element of pCounterInfos at index
i is 0, transform feedback data written to XfbBuffer with a
XFB Buffer Number equal to the sum of i and
firstCounterRange will be written starting at an offset of 0 in the
bound transform feedback buffer.
If the addressRange.size of an element of pCounterInfos at index
i is not 0, it will instead be written starting at an offset equal to
the 32-bit value found at pCounterInfos[i].addressRange.address.
The active transform feedback buffers will capture primitives emitted from
the corresponding XfbBuffer in the bound graphics pipeline.
Any XfbBuffer emitted that does not output to an active transform
feedback buffer will not be captured.
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.