vkCmdEndTransformFeedback2EXT
Transform feedback for specific transform feedback buffers is made inactive by calling:
void vkCmdEndTransformFeedback2EXT(
VkCommandBuffer commandBuffer,
uint32_t firstCounterRange,
uint32_t counterRangeCount,
const VkBindTransformFeedbackBuffer2InfoEXT* pCounterInfos);
pub fn cmd_end_transform_feedback2_ext(
command_buffer: vk::CommandBuffer,
first_counter_range: u32,
counter_range_count: u32,
p_counter_infos: *const vk::BindTransformFeedbackBuffer2InfoEXT,
);
commandBufferis the command buffer into which the command is recorded.firstCounterBufferis the index of the first transform feedback buffer corresponding topCounterInfos[0].counterRangeCountis the size of thepCounterInfosarray.pCounterInfosisNULLor a pointer to an array of VkBindTransformFeedbackBuffer2InfoEXT structures defining memory ranges used to write counters used to later resume transform feedback.
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, no data is written to the address range.
If the addressRange.size of an element of pCounterInfos at index
i is not 0, the byte offset, where the next vertex data would be
written to in the transform feedback buffer at a binding equal to the sum of
i and firstCounterBuffer, is written to that range’s
address.
Valid Usage
VUID-vkCmdEndTransformFeedback2EXT-transformFeedback-02374
VkPhysicalDeviceTransformFeedbackFeaturesEXT::transformFeedbackmust be enabled
VUID-vkCmdEndTransformFeedback2EXT-None-02375
Transform feedback must be active
VUID-vkCmdEndTransformFeedback2EXT-firstCounterBuffer-02376
firstCounterBuffer must be less than
VkPhysicalDeviceTransformFeedbackPropertiesEXT::maxTransformFeedbackBuffers
VUID-vkCmdEndTransformFeedback2EXT-firstCounterBuffer-02377
The sum of firstCounterBuffer and counterRangeCount must be
less than or equal to
VkPhysicalDeviceTransformFeedbackPropertiesEXT::maxTransformFeedbackBuffers
VUID-vkCmdEndTransformFeedback2EXT-None-10657
This command must not be recorded when per-tile execution model is enabled
VUID-vkCmdEndTransformFeedback2EXT-pCounterInfos-13095
Each element of pCounterInfos must have a addressRange.size
that is either 0 or greater than or equal to 4
VUID-vkCmdEndTransformFeedback2EXT-pCounterInfos-13096
For each element of pCounterInfos with a non-zero address, the
buffer the address was queried from must have been created with the
VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT usage
flag set
Valid Usage (Implicit)
VUID-vkCmdEndTransformFeedback2EXT-commandBuffer-parameter
commandBuffer must be a valid VkCommandBuffer handle
VUID-vkCmdEndTransformFeedback2EXT-pCounterInfos-parameter
If counterRangeCount is not 0, and pCounterInfos is not NULL, pCounterInfos must be a valid pointer to an array of counterRangeCount valid VkBindTransformFeedbackBuffer2InfoEXT structures
VUID-vkCmdEndTransformFeedback2EXT-commandBuffer-recording
commandBuffer must be in the recording state
VUID-vkCmdEndTransformFeedback2EXT-commandBuffer-cmdpool
The VkCommandPool that commandBuffer was allocated from must support VK_QUEUE_GRAPHICS_BIT operations
VUID-vkCmdEndTransformFeedback2EXT-renderpass
This command must only be called inside of a render pass instance
VUID-vkCmdEndTransformFeedback2EXT-videocoding
This command must only be called outside of a video coding scope
Host Synchronization
- Host access to
commandBuffermust be externally synchronized - Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized