Function Prototype
vkCmdBeginGpaSampleAMD
Beginning a sample
To begin a GPA sample, call:
VkResult vkCmdBeginGpaSampleAMD(
VkCommandBuffer commandBuffer,
VkGpaSessionAMD gpaSession,
const VkGpaSampleBeginInfoAMD* pGpaSampleBeginInfo,
uint32_t* pSampleID);
pub fn cmd_begin_gpa_sample_amd(
command_buffer: vk::CommandBuffer,
gpa_session: vk::GpaSessionAMD,
p_gpa_sample_begin_info: *const vk::GpaSampleBeginInfoAMD,
p_sample_id: *mut u32,
) -> vk::Result;
commandBufferis the command buffer into which the command will be recorded.gpaSessionis the handle of the GPA session to record the sample.pGpaSampleBeginInfois a pointer to a VkGpaSampleBeginInfoAMD structure describing the sample parameters.pSampleIDis the unique sample ID returned for this sample.
Valid Usage (Implicit)
VUID-vkCmdBeginGpaSampleAMD-commandBuffer-parameter
commandBuffer must be a valid VkCommandBuffer handle
VUID-vkCmdBeginGpaSampleAMD-gpaSession-parameter
gpaSession must be a valid VkGpaSessionAMD handle
VUID-vkCmdBeginGpaSampleAMD-pGpaSampleBeginInfo-parameter
pGpaSampleBeginInfo must be a valid pointer to a valid VkGpaSampleBeginInfoAMD structure
VUID-vkCmdBeginGpaSampleAMD-pSampleID-parameter
pSampleID must be a valid pointer to a uint32_t value
VUID-vkCmdBeginGpaSampleAMD-commandBuffer-recording
commandBuffer must be in the recording state
VUID-vkCmdBeginGpaSampleAMD-commandBuffer-cmdpool
The VkCommandPool that commandBuffer was allocated from must support VK_QUEUE_COMPUTE_BIT, or VK_QUEUE_GRAPHICS_BIT operations
VUID-vkCmdBeginGpaSampleAMD-suspended
This command must not be called between suspended render pass instances
VUID-vkCmdBeginGpaSampleAMD-videocoding
This command must only be called outside of a video coding scope
VUID-vkCmdBeginGpaSampleAMD-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