Function Prototype
vkCmdEndGpaSampleAMD
Ending a sample
To end a GPA sample, call:
void vkCmdEndGpaSampleAMD(
VkCommandBuffer commandBuffer,
VkGpaSessionAMD gpaSession,
uint32_t sampleID);
pub fn cmd_end_gpa_sample_amd(
command_buffer: vk::CommandBuffer,
gpa_session: vk::GpaSessionAMD,
sample_id: u32,
);
commandBufferis the command buffer into which the command will be recorded.gpaSessionis the handle of the GPA session that is recording the sample.sampleIDis a unique sample ID returned by a previous call to vkCmdBeginGpaSampleAMD.
Valid Usage (Implicit)
VUID-vkCmdEndGpaSampleAMD-commandBuffer-parameter
commandBuffer must be a valid VkCommandBuffer handle
VUID-vkCmdEndGpaSampleAMD-gpaSession-parameter
gpaSession must be a valid VkGpaSessionAMD handle
VUID-vkCmdEndGpaSampleAMD-commandBuffer-recording
commandBuffer must be in the recording state
VUID-vkCmdEndGpaSampleAMD-commandBuffer-cmdpool
The VkCommandPool that commandBuffer was allocated from must support VK_QUEUE_COMPUTE_BIT, or VK_QUEUE_GRAPHICS_BIT operations
VUID-vkCmdEndGpaSampleAMD-suspended
This command must not be called between suspended render pass instances
VUID-vkCmdEndGpaSampleAMD-videocoding
This command must only be called outside of a video coding scope
VUID-vkCmdEndGpaSampleAMD-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
Command Buffer Level
primarysecondary
Queue Types
VK_QUEUE_GRAPHICS_BITVK_QUEUE_COMPUTE_BIT
Command Type
actionstate