namespace Brutal.VulkanApi { /// /// VkGpaSampleBeginInfoAMD - Structure specifying parameters of a GPA sample /// /// /// /// 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; /// /// [StructLayout(LayoutKind.Explicit, Size = 88)] public unsafe partial struct VkGpaSampleBeginInfoAMD() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.GpaSampleBeginInfoAMD; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// SampleType is a VkGpaSampleTypeAMD value specifying the type of sample. /// [FieldOffset(16)] public VkGpaSampleTypeAMD SampleType; /// /// SampleInternalOperations is a boolean indicating whether internal driver operations are included in the results. /// [FieldOffset(20)] public Brutal.Bool32 SampleInternalOperations; /// /// CacheFlushOnCounterCollection is a boolean indicating whether the driver should insert cache flush and invalidate events before and after every sample. /// [FieldOffset(24)] public Brutal.Bool32 CacheFlushOnCounterCollection; /// /// SqShaderMaskEnable is a boolean indicating whether sqShaderMask specifies the shader stages to sample. If VK_FALSE, all shader stages are sampled. /// [FieldOffset(28)] public Brutal.Bool32 SqShaderMaskEnable; /// /// SqShaderMask is a bitmask of VkGpaSqShaderStageFlagsAMD values specifying which shader stages to sample. Shader stage bits that are not relevant to the specific device are ignored. /// [FieldOffset(32)] public VkGpaSqShaderStageFlagsAMD SqShaderMask; /// /// PerfCounterCount is the number of counters in the pPerfCounters array /// [FieldOffset(36)] public int PerfCounterCount; /// /// PerfCounters is a pointer to an array of VkGpaPerfCounterAMD structures specifying the counters to be sampled. If sampleType is VK_GPA_SAMPLE_TYPE_CUMULATIVE_AMD pPerfCounters specifies the counters that are sampled at the beginning and at end of the sample period. If sampleType is VK_GPA_SAMPLE_TYPE_TRACE_AMD then the SPM data will be added to the samples RGP data blob. /// [FieldOffset(40)] public VkGpaPerfCounterAMD* PerfCounters; /// /// StreamingPerfTraceSampleInterval is a value specifying the period for SPM samples in cycles, and is ignored if sampleType is not VK_GPA_SAMPLE_TYPE_TRACE_AMD. /// [FieldOffset(48)] public int StreamingPerfTraceSampleInterval; /// /// PerfCounterDeviceMemoryLimit is a value specifying the maximum amount of GPU memory that this sample can allocate for SPM data. If sampleType is not VK_GPA_SAMPLE_TYPE_TRACE_AMD this value is ignored. /// [FieldOffset(56)] public ByteSize64 PerfCounterDeviceMemoryLimit; /// /// SqThreadTraceEnable is a boolean specifying whether SQTT data should be included. If sampleType is not VK_GPA_SAMPLE_TYPE_TRACE_AMD this value is ignored. /// [FieldOffset(64)] public Brutal.Bool32 SqThreadTraceEnable; /// /// SqThreadTraceSuppressInstructionTokens is a boolean specifying whether instruction-level SQTT tokens should be captured. If VK_FALSE, the amount of sample data is significantly reduced. If sampleType is not VK_GPA_SAMPLE_TYPE_TRACE_AMD this value is ignored. /// [FieldOffset(68)] public Brutal.Bool32 SqThreadTraceSuppressInstructionTokens; /// /// SqThreadTraceDeviceMemoryLimit is a value specifying the maximum amount of GPU memory in bytes that this sample can allocate for the SQTT buffer. If `0`, the maximum size to prevent dropping tokens towards the end of the sample is allocated. If sampleType is not VK_GPA_SAMPLE_TYPE_TRACE_AMD this value is ignored. /// [FieldOffset(72)] public ByteSize64 SqThreadTraceDeviceMemoryLimit; /// /// TimingPreSample is a VkPipelineStageFlags2 mask of pipeline stages specifying where the begin timestamp should take place. If sampleType is not VK_GPA_SAMPLE_TYPE_TIMING_AMD this value is ignored. /// [FieldOffset(80)] public VkPipelineStageFlags TimingPreSample; /// /// TimingPostSample is a VkPipelineStageFlags2 mask of pipeline stages specifying where the end timestamp should take place. If sampleType is not VK_GPA_SAMPLE_TYPE_TIMING_AMD this value is ignored. /// [FieldOffset(84)] public VkPipelineStageFlags TimingPostSample; } }