Function Prototype
vkGetGpaSessionResultsAMD
Getting the status of a GPA session
Once a GPA session’s results are available, they can be obtained by:
VkResult vkGetGpaSessionResultsAMD(
VkDevice device,
VkGpaSessionAMD gpaSession,
uint32_t sampleID,
size_t* pSizeInBytes,
void* pData);
pub fn get_gpa_session_results_amd(
device: vk::Device,
gpa_session: vk::GpaSessionAMD,
sample_id: u32,
p_size_in_bytes: *mut usize,
p_data: *mut c_void,
) -> vk::Result;
deviceis the logical device that sets the clocks.gpaSessionis the session whose results are queried.sampleIDis the sample ID, returned by vkCmdBeginGpaSampleAMD, whose results are to be queried.pSizeInBytesis a pointer to asize_tvalue related to the size of the results data, as described below.pDatais eitherNULLor a pointer to an array ofpSizeInBytesbytes where the results will be written.
Valid Usage (Implicit)
VUID-vkGetGpaSessionResultsAMD-device-parameter
device must be a valid VkDevice handle
VUID-vkGetGpaSessionResultsAMD-gpaSession-parameter
gpaSession must be a valid VkGpaSessionAMD handle
VUID-vkGetGpaSessionResultsAMD-pSizeInBytes-parameter
pSizeInBytes must be a valid pointer to a size_t value
VUID-vkGetGpaSessionResultsAMD-pData-parameter
If pData is not NULL, pData must be a valid pointer to an array of pSizeInBytes bytes
VUID-vkGetGpaSessionResultsAMD-pSizeInBytes-arraylength
If pData is not NULL, the value referenced by pSizeInBytes must be greater than 0
VUID-vkGetGpaSessionResultsAMD-gpaSession-parent
gpaSession must have been created, allocated, or retrieved from device
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