Structures
VkGpaSessionCreateInfoAMD
Structure specifying parameters of a newly created GPA session
The VkGpaSessionCreateInfoAMD structure is defined as:
typedef struct VkGpaSessionCreateInfoAMD {
VkStructureType sType;
const void* pNext;
VkGpaSessionAMD secondaryCopySource;
} VkGpaSessionCreateInfoAMD;
pub struct GpaSessionCreateInfoAMD {
s_type: vk::StructureType,
p_next: *const c_void,
secondary_copy_source: vk::GpaSessionAMD,
}
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.secondaryCopySourceis aVkGpaSessionAMDhandle whose results can be copied into this session.
When sampling counters inside secondary command buffers, repeated
invocations of the same secondary command buffer causes the previous results
to be overwritten.
To avoid this a GPA session object’s memory layout can be cloned for use
with multiple secondary invocations by specifying its handle in
secondaryCopySource, allowing the new GPA session object to be the
target of a copy using vkCmdCopyGpaSessionResultsAMD.
Valid Usage (Implicit)
VUID-VkGpaSessionCreateInfoAMD-sType-sType
sType must be VK_STRUCTURE_TYPE_GPA_SESSION_CREATE_INFO_AMD
VUID-VkGpaSessionCreateInfoAMD-pNext-pNext
pNext must be NULL
VUID-VkGpaSessionCreateInfoAMD-secondaryCopySource-parameter
If secondaryCopySource is not VK_NULL_HANDLE, secondaryCopySource must be a valid VkGpaSessionAMD handle
Parent
VK_AMD_gpa_interfaceType
Structures