Function Prototype
vkCmdEndGpaSessionAMD
End a GPA session
To end a GPA session, call:
VkResult vkCmdEndGpaSessionAMD(
VkCommandBuffer commandBuffer,
VkGpaSessionAMD gpaSession);
pub fn cmd_end_gpa_session_amd(
command_buffer: vk::CommandBuffer,
gpa_session: vk::GpaSessionAMD,
) -> vk::Result;
commandBufferis the command buffer into which the command will be recorded.gpaSessionis the handle of the GPA session to end.
Valid Usage
VUID-vkCmdEndGpaSessionAMD-gpaSession-12411
gpaSession must have previously begun using
vkCmdBeginGpaSessionAMD
Valid Usage (Implicit)
VUID-vkCmdEndGpaSessionAMD-commandBuffer-parameter
commandBuffer must be a valid VkCommandBuffer handle
VUID-vkCmdEndGpaSessionAMD-gpaSession-parameter
gpaSession must be a valid VkGpaSessionAMD handle
VUID-vkCmdEndGpaSessionAMD-commandBuffer-recording
commandBuffer must be in the recording state
VUID-vkCmdEndGpaSessionAMD-commandBuffer-cmdpool
The VkCommandPool that commandBuffer was allocated from must support VK_QUEUE_COMPUTE_BIT, or VK_QUEUE_GRAPHICS_BIT operations
VUID-vkCmdEndGpaSessionAMD-suspended
This command must not be called between suspended render pass instances
VUID-vkCmdEndGpaSessionAMD-videocoding
This command must only be called outside of a video coding scope
VUID-vkCmdEndGpaSessionAMD-commonparent
Both of commandBuffer, and gpaSession must have been created, allocated, or retrieved from the same VkDevice
Host Synchronization
- Host access to
commandBuffermust be externally synchronized - Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized
Parent
VK_AMD_gpa_interfaceType
Function Prototype
Return Values
VK_SUCCESS
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_UNKNOWN
VK_ERROR_VALIDATION_FAILED
Command Buffer Level
primarysecondary
Queue Types
VK_QUEUE_GRAPHICS_BITVK_QUEUE_COMPUTE_BIT
Command Type
actionstate