VkGpaSampleBeginInfoAMD(3)
C Specification
The VkGpaSampleBeginInfoAMD structure is defined as:
// Provided by VK_AMD_gpa_interface
typedef struct VkGpaSampleBeginInfoAMD {
VkStructureType sType;
const void* pNext;
VkGpaSampleTypeAMD sampleType;
VkBool32 sampleInternalOperations;
VkBool32 cacheFlushOnCounterCollection;
VkBool32 sqShaderMaskEnable;
VkGpaSqShaderStageFlagsAMD sqShaderMask;
uint32_t perfCounterCount;
const VkGpaPerfCounterAMD* pPerfCounters;
uint32_t streamingPerfTraceSampleInterval;
VkDeviceSize perfCounterDeviceMemoryLimit;
VkBool32 sqThreadTraceEnable;
VkBool32 sqThreadTraceSuppressInstructionTokens;
VkDeviceSize sqThreadTraceDeviceMemoryLimit;
VkPipelineStageFlags timingPreSample;
VkPipelineStageFlags timingPostSample;
} VkGpaSampleBeginInfoAMD;
Members
-
sTypeis a VkStructureType value identifying this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
sampleTypeis a VkGpaSampleTypeAMD value specifying the type of sample. -
sampleInternalOperationsis a boolean indicating whether internal driver operations are included in the results. -
cacheFlushOnCounterCollectionis a boolean indicating whether the driver should insert cache flush and invalidate events before and after every sample. -
sqShaderMaskEnableis a boolean indicating whethersqShaderMaskspecifies the shader stages to sample. If VK_FALSE, all shader stages are sampled. -
sqShaderMaskis a bitmask of VkGpaSqShaderStageFlagBitsAMD values specifying which shader stages to sample. Shader stage bits that are not relevant to the specific device are ignored. -
perfCounterCountis the number of counters in thepPerfCountersarray -
pPerfCountersis a pointer to an array of VkGpaPerfCounterAMD structures specifying the counters to be sampled. IfsampleTypeis VK_GPA_SAMPLE_TYPE_CUMULATIVE_AMDpPerfCountersspecifies the counters that are sampled at the beginning and at end of the sample period. IfsampleTypeis VK_GPA_SAMPLE_TYPE_TRACE_AMD then the SPM data will be added to the samples RGP data blob. -
streamingPerfTraceSampleIntervalis a value specifying the period for SPM samples in cycles, and is ignored ifsampleTypeis not VK_GPA_SAMPLE_TYPE_TRACE_AMD. -
perfCounterDeviceMemoryLimitis a value specifying the maximum amount of GPU memory that this sample can allocate for SPM data. IfsampleTypeis not VK_GPA_SAMPLE_TYPE_TRACE_AMD this value is ignored. -
sqThreadTraceEnableis a boolean specifying whether SQTT data should be included. IfsampleTypeis not VK_GPA_SAMPLE_TYPE_TRACE_AMD this value is ignored. -
sqThreadTraceSuppressInstructionTokensis a boolean specifying whether instruction-level SQTT tokens should be captured. If VK_FALSE, the amount of sample data is significantly reduced. IfsampleTypeis not VK_GPA_SAMPLE_TYPE_TRACE_AMD this value is ignored. -
sqThreadTraceDeviceMemoryLimitis a value specifying the maximum amount of GPU memory in bytes that this sample can allocate for the SQTT buffer. If0, the maximum size to prevent dropping tokens towards the end of the sample is allocated. IfsampleTypeis not VK_GPA_SAMPLE_TYPE_TRACE_AMD this value is ignored. -
timingPreSampleis a VkPipelineStageFlags2 mask of pipeline stages specifying where the begin timestamp should take place. IfsampleTypeis not VK_GPA_SAMPLE_TYPE_TIMING_AMD this value is ignored. -
timingPostSampleis a VkPipelineStageFlags2 mask of pipeline stages specifying where the end timestamp should take place. IfsampleTypeis not VK_GPA_SAMPLE_TYPE_TIMING_AMD this value is ignored.
See Also
VK_AMD_gpa_interface, VkBool32, VkDeviceSize, VkGpaPerfCounterAMD, VkGpaSampleTypeAMD, VkGpaSqShaderStageFlagsAMD, VkPipelineStageFlags, VkStructureType, vkCmdBeginGpaSampleAMD
Document Notes
For more information, see the Vulkan Specification.
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.