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;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • secondaryCopySource is a VkGpaSessionAMD handle 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-secondaryCopySource-parameter

If secondaryCopySource is not VK_NULL_HANDLE, secondaryCopySource must be a valid VkGpaSessionAMD handle