Function Prototype
vkCmdEndVideoCodingKHR
End video coding scope
primary
outside
inside
decode / encode
action / state
To end a video coding scope, call:
void vkCmdEndVideoCodingKHR(
VkCommandBuffer commandBuffer,
const VkVideoEndCodingInfoKHR* pEndCodingInfo);
commandBufferis the command buffer in which to record the command.pEndCodingInfois a pointer to a VkVideoEndCodingInfoKHR structure specifying the parameters for ending the video coding scope.
After ending a video coding scope, the video session object, the optional video session parameters object, and all reference picture resources previously bound by the corresponding vkCmdBeginVideoCodingKHR command are unbound.
Valid Usage
VUID-vkCmdEndVideoCodingKHR-None-07251
There must be no active queries
Valid Usage (Implicit)
VUID-vkCmdEndVideoCodingKHR-commandBuffer-parameter
commandBuffer must be a valid VkCommandBuffer handle
VUID-vkCmdEndVideoCodingKHR-pEndCodingInfo-parameter
pEndCodingInfo must be a valid pointer to a valid VkVideoEndCodingInfoKHR structure
VUID-vkCmdEndVideoCodingKHR-commandBuffer-recording
commandBuffer must be in the recording state
VUID-vkCmdEndVideoCodingKHR-commandBuffer-cmdpool
The VkCommandPool that commandBuffer was allocated from must support decode, or encode operations
VUID-vkCmdEndVideoCodingKHR-renderpass
This command must only be called outside of a render pass instance
VUID-vkCmdEndVideoCodingKHR-videocoding
This command must only be called inside of a video coding scope
VUID-vkCmdEndVideoCodingKHR-bufferlevel
commandBuffer must be a primary VkCommandBuffer
Host Synchronization
- Host access to
commandBuffermust be externally synchronized - Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized ::