Class VkGpaSampleBeginInfoAMD

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkGpaSampleBeginInfoAMD extends Struct<VkGpaSampleBeginInfoAMD> implements NativeResource
struct VkGpaSampleBeginInfoAMD {
    VkStructureType sType;
    void const * pNext;
    VkGpaSampleTypeAMD sampleType;
    VkBool32 sampleInternalOperations;
    VkBool32 cacheFlushOnCounterCollection;
    VkBool32 sqShaderMaskEnable;
    VkGpaSqShaderStageFlagsAMD sqShaderMask;
    uint32_t perfCounterCount;
    VkGpaPerfCounterAMD const * pPerfCounters;
    uint32_t streamingPerfTraceSampleInterval;
    VkDeviceSize perfCounterDeviceMemoryLimit;
    VkBool32 sqThreadTraceEnable;
    VkBool32 sqThreadTraceSuppressInstructionTokens;
    VkDeviceSize sqThreadTraceDeviceMemoryLimit;
    VkPipelineStageFlags timingPreSample;
    VkPipelineStageFlags timingPostSample;
}
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • SAMPLETYPE

      public static final int SAMPLETYPE
      The struct member offsets.
    • SAMPLEINTERNALOPERATIONS

      public static final int SAMPLEINTERNALOPERATIONS
      The struct member offsets.
    • CACHEFLUSHONCOUNTERCOLLECTION

      public static final int CACHEFLUSHONCOUNTERCOLLECTION
      The struct member offsets.
    • SQSHADERMASKENABLE

      public static final int SQSHADERMASKENABLE
      The struct member offsets.
    • SQSHADERMASK

      public static final int SQSHADERMASK
      The struct member offsets.
    • PERFCOUNTERCOUNT

      public static final int PERFCOUNTERCOUNT
      The struct member offsets.
    • PPERFCOUNTERS

      public static final int PPERFCOUNTERS
      The struct member offsets.
    • STREAMINGPERFTRACESAMPLEINTERVAL

      public static final int STREAMINGPERFTRACESAMPLEINTERVAL
      The struct member offsets.
    • PERFCOUNTERDEVICEMEMORYLIMIT

      public static final int PERFCOUNTERDEVICEMEMORYLIMIT
      The struct member offsets.
    • SQTHREADTRACEENABLE

      public static final int SQTHREADTRACEENABLE
      The struct member offsets.
    • SQTHREADTRACESUPPRESSINSTRUCTIONTOKENS

      public static final int SQTHREADTRACESUPPRESSINSTRUCTIONTOKENS
      The struct member offsets.
    • SQTHREADTRACEDEVICEMEMORYLIMIT

      public static final int SQTHREADTRACEDEVICEMEMORYLIMIT
      The struct member offsets.
    • TIMINGPRESAMPLE

      public static final int TIMINGPRESAMPLE
      The struct member offsets.
    • TIMINGPOSTSAMPLE

      public static final int TIMINGPOSTSAMPLE
      The struct member offsets.
  • Constructor Details

    • VkGpaSampleBeginInfoAMD

      public VkGpaSampleBeginInfoAMD(ByteBuffer container)
      Creates a VkGpaSampleBeginInfoAMD instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkGpaSampleBeginInfoAMD>
    • sType

      @NativeType("VkStructureType") public int sType()
      Returns:
      the value of the sType field.
    • pNext

      @NativeType("void const *") public long pNext()
      Returns:
      the value of the pNext field.
    • sampleType

      @NativeType("VkGpaSampleTypeAMD") public int sampleType()
      Returns:
      the value of the sampleType field.
    • sampleInternalOperations

      @NativeType("VkBool32") public boolean sampleInternalOperations()
      Returns:
      the value of the sampleInternalOperations field.
    • cacheFlushOnCounterCollection

      @NativeType("VkBool32") public boolean cacheFlushOnCounterCollection()
      Returns:
      the value of the cacheFlushOnCounterCollection field.
    • sqShaderMaskEnable

      @NativeType("VkBool32") public boolean sqShaderMaskEnable()
      Returns:
      the value of the sqShaderMaskEnable field.
    • sqShaderMask

      @NativeType("VkGpaSqShaderStageFlagsAMD") public int sqShaderMask()
      Returns:
      the value of the sqShaderMask field.
    • perfCounterCount

      @NativeType("uint32_t") public int perfCounterCount()
      Returns:
      the value of the perfCounterCount field.
    • pPerfCounters

      @NativeType("VkGpaPerfCounterAMD const *") public VkGpaPerfCounterAMD.Buffer pPerfCounters()
      Returns:
      a VkGpaPerfCounterAMD.Buffer view of the struct array pointed to by the pPerfCounters field.
    • streamingPerfTraceSampleInterval

      @NativeType("uint32_t") public int streamingPerfTraceSampleInterval()
      Returns:
      the value of the streamingPerfTraceSampleInterval field.
    • perfCounterDeviceMemoryLimit

      @NativeType("VkDeviceSize") public long perfCounterDeviceMemoryLimit()
      Returns:
      the value of the perfCounterDeviceMemoryLimit field.
    • sqThreadTraceEnable

      @NativeType("VkBool32") public boolean sqThreadTraceEnable()
      Returns:
      the value of the sqThreadTraceEnable field.
    • sqThreadTraceSuppressInstructionTokens

      @NativeType("VkBool32") public boolean sqThreadTraceSuppressInstructionTokens()
      Returns:
      the value of the sqThreadTraceSuppressInstructionTokens field.
    • sqThreadTraceDeviceMemoryLimit

      @NativeType("VkDeviceSize") public long sqThreadTraceDeviceMemoryLimit()
      Returns:
      the value of the sqThreadTraceDeviceMemoryLimit field.
    • timingPreSample

      @NativeType("VkPipelineStageFlags") public int timingPreSample()
      Returns:
      the value of the timingPreSample field.
    • timingPostSample

      @NativeType("VkPipelineStageFlags") public int timingPostSample()
      Returns:
      the value of the timingPostSample field.
    • sType

      public VkGpaSampleBeginInfoAMD sType(@NativeType("VkStructureType") int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkGpaSampleBeginInfoAMD sType$Default()
      Sets the STRUCTURE_TYPE_GPA_SAMPLE_BEGIN_INFO_AMD value to the sType field.
    • pNext

      public VkGpaSampleBeginInfoAMD pNext(@NativeType("void const *") long value)
      Sets the specified value to the pNext field.
    • sampleType

      public VkGpaSampleBeginInfoAMD sampleType(@NativeType("VkGpaSampleTypeAMD") int value)
      Sets the specified value to the sampleType field.
    • sampleInternalOperations

      public VkGpaSampleBeginInfoAMD sampleInternalOperations(@NativeType("VkBool32") boolean value)
      Sets the specified value to the sampleInternalOperations field.
    • cacheFlushOnCounterCollection

      public VkGpaSampleBeginInfoAMD cacheFlushOnCounterCollection(@NativeType("VkBool32") boolean value)
      Sets the specified value to the cacheFlushOnCounterCollection field.
    • sqShaderMaskEnable

      public VkGpaSampleBeginInfoAMD sqShaderMaskEnable(@NativeType("VkBool32") boolean value)
      Sets the specified value to the sqShaderMaskEnable field.
    • sqShaderMask

      public VkGpaSampleBeginInfoAMD sqShaderMask(@NativeType("VkGpaSqShaderStageFlagsAMD") int value)
      Sets the specified value to the sqShaderMask field.
    • pPerfCounters

      public VkGpaSampleBeginInfoAMD pPerfCounters(@NativeType("VkGpaPerfCounterAMD const *") VkGpaPerfCounterAMD.Buffer value)
      Sets the address of the specified VkGpaPerfCounterAMD.Buffer to the pPerfCounters field.
    • streamingPerfTraceSampleInterval

      public VkGpaSampleBeginInfoAMD streamingPerfTraceSampleInterval(@NativeType("uint32_t") int value)
      Sets the specified value to the streamingPerfTraceSampleInterval field.
    • perfCounterDeviceMemoryLimit

      public VkGpaSampleBeginInfoAMD perfCounterDeviceMemoryLimit(@NativeType("VkDeviceSize") long value)
      Sets the specified value to the perfCounterDeviceMemoryLimit field.
    • sqThreadTraceEnable

      public VkGpaSampleBeginInfoAMD sqThreadTraceEnable(@NativeType("VkBool32") boolean value)
      Sets the specified value to the sqThreadTraceEnable field.
    • sqThreadTraceSuppressInstructionTokens

      public VkGpaSampleBeginInfoAMD sqThreadTraceSuppressInstructionTokens(@NativeType("VkBool32") boolean value)
      Sets the specified value to the sqThreadTraceSuppressInstructionTokens field.
    • sqThreadTraceDeviceMemoryLimit

      public VkGpaSampleBeginInfoAMD sqThreadTraceDeviceMemoryLimit(@NativeType("VkDeviceSize") long value)
      Sets the specified value to the sqThreadTraceDeviceMemoryLimit field.
    • timingPreSample

      public VkGpaSampleBeginInfoAMD timingPreSample(@NativeType("VkPipelineStageFlags") int value)
      Sets the specified value to the timingPreSample field.
    • timingPostSample

      public VkGpaSampleBeginInfoAMD timingPostSample(@NativeType("VkPipelineStageFlags") int value)
      Sets the specified value to the timingPostSample field.
    • set

      public VkGpaSampleBeginInfoAMD set(int sType, long pNext, int sampleType, boolean sampleInternalOperations, boolean cacheFlushOnCounterCollection, boolean sqShaderMaskEnable, int sqShaderMask, VkGpaPerfCounterAMD.Buffer pPerfCounters, int streamingPerfTraceSampleInterval, long perfCounterDeviceMemoryLimit, boolean sqThreadTraceEnable, boolean sqThreadTraceSuppressInstructionTokens, long sqThreadTraceDeviceMemoryLimit, int timingPreSample, int timingPostSample)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static VkGpaSampleBeginInfoAMD malloc()
      Returns a new VkGpaSampleBeginInfoAMD instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static VkGpaSampleBeginInfoAMD calloc()
      Returns a new VkGpaSampleBeginInfoAMD instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static VkGpaSampleBeginInfoAMD create()
      Returns a new VkGpaSampleBeginInfoAMD instance allocated with BufferUtils.
    • create

      public static VkGpaSampleBeginInfoAMD create(long address)
      Returns a new VkGpaSampleBeginInfoAMD instance for the specified memory address.
    • createSafe

      public static @Nullable VkGpaSampleBeginInfoAMD createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkGpaSampleBeginInfoAMD.Buffer malloc(int capacity)
      Returns a new VkGpaSampleBeginInfoAMD.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkGpaSampleBeginInfoAMD.Buffer calloc(int capacity)
      Returns a new VkGpaSampleBeginInfoAMD.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkGpaSampleBeginInfoAMD.Buffer create(int capacity)
      Returns a new VkGpaSampleBeginInfoAMD.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkGpaSampleBeginInfoAMD.Buffer create(long address, int capacity)
      Create a VkGpaSampleBeginInfoAMD.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkGpaSampleBeginInfoAMD.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkGpaSampleBeginInfoAMD malloc(MemoryStack stack)
      Returns a new VkGpaSampleBeginInfoAMD instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static VkGpaSampleBeginInfoAMD calloc(MemoryStack stack)
      Returns a new VkGpaSampleBeginInfoAMD instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkGpaSampleBeginInfoAMD.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new VkGpaSampleBeginInfoAMD.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkGpaSampleBeginInfoAMD.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkGpaSampleBeginInfoAMD.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsType

      public static int nsType(long struct)
      Unsafe version of sType().
    • npNext

      public static long npNext(long struct)
      Unsafe version of pNext().
    • nsampleType

      public static int nsampleType(long struct)
      Unsafe version of sampleType().
    • nsampleInternalOperations

      public static int nsampleInternalOperations(long struct)
      Unsafe version of sampleInternalOperations().
    • ncacheFlushOnCounterCollection

      public static int ncacheFlushOnCounterCollection(long struct)
    • nsqShaderMaskEnable

      public static int nsqShaderMaskEnable(long struct)
      Unsafe version of sqShaderMaskEnable().
    • nsqShaderMask

      public static int nsqShaderMask(long struct)
      Unsafe version of sqShaderMask().
    • nperfCounterCount

      public static int nperfCounterCount(long struct)
      Unsafe version of perfCounterCount().
    • npPerfCounters

      public static VkGpaPerfCounterAMD.Buffer npPerfCounters(long struct)
      Unsafe version of pPerfCounters().
    • nstreamingPerfTraceSampleInterval

      public static int nstreamingPerfTraceSampleInterval(long struct)
    • nperfCounterDeviceMemoryLimit

      public static long nperfCounterDeviceMemoryLimit(long struct)
    • nsqThreadTraceEnable

      public static int nsqThreadTraceEnable(long struct)
      Unsafe version of sqThreadTraceEnable().
    • nsqThreadTraceSuppressInstructionTokens

      public static int nsqThreadTraceSuppressInstructionTokens(long struct)
    • nsqThreadTraceDeviceMemoryLimit

      public static long nsqThreadTraceDeviceMemoryLimit(long struct)
    • ntimingPreSample

      public static int ntimingPreSample(long struct)
      Unsafe version of timingPreSample().
    • ntimingPostSample

      public static int ntimingPostSample(long struct)
      Unsafe version of timingPostSample().
    • nsType

      public static void nsType(long struct, int value)
      Unsafe version of sType.
    • npNext

      public static void npNext(long struct, long value)
      Unsafe version of pNext.
    • nsampleType

      public static void nsampleType(long struct, int value)
      Unsafe version of sampleType.
    • nsampleInternalOperations

      public static void nsampleInternalOperations(long struct, int value)
      Unsafe version of sampleInternalOperations.
    • ncacheFlushOnCounterCollection

      public static void ncacheFlushOnCounterCollection(long struct, int value)
    • nsqShaderMaskEnable

      public static void nsqShaderMaskEnable(long struct, int value)
      Unsafe version of sqShaderMaskEnable.
    • nsqShaderMask

      public static void nsqShaderMask(long struct, int value)
      Unsafe version of sqShaderMask.
    • nperfCounterCount

      public static void nperfCounterCount(long struct, int value)
      Sets the specified value to the perfCounterCount field of the specified struct.
    • npPerfCounters

      public static void npPerfCounters(long struct, VkGpaPerfCounterAMD.Buffer value)
      Unsafe version of pPerfCounters.
    • nstreamingPerfTraceSampleInterval

      public static void nstreamingPerfTraceSampleInterval(long struct, int value)
    • nperfCounterDeviceMemoryLimit

      public static void nperfCounterDeviceMemoryLimit(long struct, long value)
      Unsafe version of perfCounterDeviceMemoryLimit.
    • nsqThreadTraceEnable

      public static void nsqThreadTraceEnable(long struct, int value)
      Unsafe version of sqThreadTraceEnable.
    • nsqThreadTraceSuppressInstructionTokens

      public static void nsqThreadTraceSuppressInstructionTokens(long struct, int value)
    • nsqThreadTraceDeviceMemoryLimit

      public static void nsqThreadTraceDeviceMemoryLimit(long struct, long value)
    • ntimingPreSample

      public static void ntimingPreSample(long struct, int value)
      Unsafe version of timingPreSample.
    • ntimingPostSample

      public static void ntimingPostSample(long struct, int value)
      Unsafe version of timingPostSample.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate