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;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkGpaSampleBeginInfoAMD(ByteBuffer container) Creates aVkGpaSampleBeginInfoAMDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbooleancacheFlushOnCounterCollection(boolean value) Sets the specified value to thecacheFlushOnCounterCollectionfield.static VkGpaSampleBeginInfoAMDcalloc()Returns a newVkGpaSampleBeginInfoAMDinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkGpaSampleBeginInfoAMD.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkGpaSampleBeginInfoAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGpaSampleBeginInfoAMDcalloc(MemoryStack stack) Returns a newVkGpaSampleBeginInfoAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGpaSampleBeginInfoAMDcreate()Returns a newVkGpaSampleBeginInfoAMDinstance allocated withBufferUtils.create(int capacity) Returns a newVkGpaSampleBeginInfoAMD.Bufferinstance allocated withBufferUtils.static VkGpaSampleBeginInfoAMDcreate(long address) Returns a newVkGpaSampleBeginInfoAMDinstance for the specified memory address.create(long address, int capacity) Create aVkGpaSampleBeginInfoAMD.Bufferinstance at the specified memory.static @Nullable VkGpaSampleBeginInfoAMDcreateSafe(long address) static @Nullable VkGpaSampleBeginInfoAMD.BuffercreateSafe(long address, int capacity) static VkGpaSampleBeginInfoAMDmalloc()Returns a newVkGpaSampleBeginInfoAMDinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkGpaSampleBeginInfoAMD.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkGpaSampleBeginInfoAMD.Bufferinstance allocated on the specifiedMemoryStack.static VkGpaSampleBeginInfoAMDmalloc(MemoryStack stack) Returns a newVkGpaSampleBeginInfoAMDinstance allocated on the specifiedMemoryStack.static intncacheFlushOnCounterCollection(long struct) Unsafe version ofcacheFlushOnCounterCollection().static voidncacheFlushOnCounterCollection(long struct, int value) Unsafe version ofcacheFlushOnCounterCollection.static intnperfCounterCount(long struct) Unsafe version ofperfCounterCount().static voidnperfCounterCount(long struct, int value) Sets the specified value to theperfCounterCountfield of the specifiedstruct.static longnperfCounterDeviceMemoryLimit(long struct) Unsafe version ofperfCounterDeviceMemoryLimit().static voidnperfCounterDeviceMemoryLimit(long struct, long value) Unsafe version ofperfCounterDeviceMemoryLimit.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static VkGpaPerfCounterAMD.BuffernpPerfCounters(long struct) Unsafe version ofpPerfCounters().static voidnpPerfCounters(long struct, VkGpaPerfCounterAMD.Buffer value) Unsafe version ofpPerfCounters.static intnsampleInternalOperations(long struct) Unsafe version ofsampleInternalOperations().static voidnsampleInternalOperations(long struct, int value) Unsafe version ofsampleInternalOperations.static intnsampleType(long struct) Unsafe version ofsampleType().static voidnsampleType(long struct, int value) Unsafe version ofsampleType.static intnsqShaderMask(long struct) Unsafe version ofsqShaderMask().static voidnsqShaderMask(long struct, int value) Unsafe version ofsqShaderMask.static intnsqShaderMaskEnable(long struct) Unsafe version ofsqShaderMaskEnable().static voidnsqShaderMaskEnable(long struct, int value) Unsafe version ofsqShaderMaskEnable.static longnsqThreadTraceDeviceMemoryLimit(long struct) Unsafe version ofsqThreadTraceDeviceMemoryLimit().static voidnsqThreadTraceDeviceMemoryLimit(long struct, long value) Unsafe version ofsqThreadTraceDeviceMemoryLimit.static intnsqThreadTraceEnable(long struct) Unsafe version ofsqThreadTraceEnable().static voidnsqThreadTraceEnable(long struct, int value) Unsafe version ofsqThreadTraceEnable.static intnsqThreadTraceSuppressInstructionTokens(long struct) Unsafe version ofsqThreadTraceSuppressInstructionTokens().static voidnsqThreadTraceSuppressInstructionTokens(long struct, int value) Unsafe version ofsqThreadTraceSuppressInstructionTokens.static intnstreamingPerfTraceSampleInterval(long struct) Unsafe version ofstreamingPerfTraceSampleInterval().static voidnstreamingPerfTraceSampleInterval(long struct, int value) Unsafe version ofstreamingPerfTraceSampleInterval.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.static intntimingPostSample(long struct) Unsafe version oftimingPostSample().static voidntimingPostSample(long struct, int value) Unsafe version oftimingPostSample.static intntimingPreSample(long struct) Unsafe version oftimingPreSample().static voidntimingPreSample(long struct, int value) Unsafe version oftimingPreSample.intlongperfCounterDeviceMemoryLimit(long value) Sets the specified value to theperfCounterDeviceMemoryLimitfield.longpNext()pNext(long value) Sets the specified value to thepNextfield.Sets the address of the specifiedVkGpaPerfCounterAMD.Bufferto thepPerfCountersfield.booleansampleInternalOperations(boolean value) Sets the specified value to thesampleInternalOperationsfield.intsampleType(int value) Sets the specified value to thesampleTypefield.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.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsqShaderMask(int value) Sets the specified value to thesqShaderMaskfield.booleansqShaderMaskEnable(boolean value) Sets the specified value to thesqShaderMaskEnablefield.longsqThreadTraceDeviceMemoryLimit(long value) Sets the specified value to thesqThreadTraceDeviceMemoryLimitfield.booleansqThreadTraceEnable(boolean value) Sets the specified value to thesqThreadTraceEnablefield.booleansqThreadTraceSuppressInstructionTokens(boolean value) Sets the specified value to thesqThreadTraceSuppressInstructionTokensfield.intstreamingPerfTraceSampleInterval(int value) Sets the specified value to thestreamingPerfTraceSampleIntervalfield.intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_GPA_SAMPLE_BEGIN_INFO_AMDvalue to thesTypefield.inttimingPostSample(int value) Sets the specified value to thetimingPostSamplefield.inttimingPreSample(int value) Sets the specified value to thetimingPreSamplefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
SAMPLETYPE
public static final int SAMPLETYPEThe struct member offsets. -
SAMPLEINTERNALOPERATIONS
public static final int SAMPLEINTERNALOPERATIONSThe struct member offsets. -
CACHEFLUSHONCOUNTERCOLLECTION
public static final int CACHEFLUSHONCOUNTERCOLLECTIONThe struct member offsets. -
SQSHADERMASKENABLE
public static final int SQSHADERMASKENABLEThe struct member offsets. -
SQSHADERMASK
public static final int SQSHADERMASKThe struct member offsets. -
PERFCOUNTERCOUNT
public static final int PERFCOUNTERCOUNTThe struct member offsets. -
PPERFCOUNTERS
public static final int PPERFCOUNTERSThe struct member offsets. -
STREAMINGPERFTRACESAMPLEINTERVAL
public static final int STREAMINGPERFTRACESAMPLEINTERVALThe struct member offsets. -
PERFCOUNTERDEVICEMEMORYLIMIT
public static final int PERFCOUNTERDEVICEMEMORYLIMITThe struct member offsets. -
SQTHREADTRACEENABLE
public static final int SQTHREADTRACEENABLEThe struct member offsets. -
SQTHREADTRACESUPPRESSINSTRUCTIONTOKENS
public static final int SQTHREADTRACESUPPRESSINSTRUCTIONTOKENSThe struct member offsets. -
SQTHREADTRACEDEVICEMEMORYLIMIT
public static final int SQTHREADTRACEDEVICEMEMORYLIMITThe struct member offsets. -
TIMINGPRESAMPLE
public static final int TIMINGPRESAMPLEThe struct member offsets. -
TIMINGPOSTSAMPLE
public static final int TIMINGPOSTSAMPLEThe struct member offsets.
-
-
Constructor Details
-
VkGpaSampleBeginInfoAMD
Creates aVkGpaSampleBeginInfoAMDinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkGpaSampleBeginInfoAMD>
-
sType
- Returns:
- the value of the
sTypefield.
-
pNext
- Returns:
- the value of the
pNextfield.
-
sampleType
- Returns:
- the value of the
sampleTypefield.
-
sampleInternalOperations
- Returns:
- the value of the
sampleInternalOperationsfield.
-
cacheFlushOnCounterCollection
- Returns:
- the value of the
cacheFlushOnCounterCollectionfield.
-
sqShaderMaskEnable
- Returns:
- the value of the
sqShaderMaskEnablefield.
-
sqShaderMask
- Returns:
- the value of the
sqShaderMaskfield.
-
perfCounterCount
- Returns:
- the value of the
perfCounterCountfield.
-
pPerfCounters
- Returns:
- a
VkGpaPerfCounterAMD.Bufferview of the struct array pointed to by thepPerfCountersfield.
-
streamingPerfTraceSampleInterval
- Returns:
- the value of the
streamingPerfTraceSampleIntervalfield.
-
perfCounterDeviceMemoryLimit
- Returns:
- the value of the
perfCounterDeviceMemoryLimitfield.
-
sqThreadTraceEnable
- Returns:
- the value of the
sqThreadTraceEnablefield.
-
sqThreadTraceSuppressInstructionTokens
- Returns:
- the value of the
sqThreadTraceSuppressInstructionTokensfield.
-
sqThreadTraceDeviceMemoryLimit
- Returns:
- the value of the
sqThreadTraceDeviceMemoryLimitfield.
-
timingPreSample
- Returns:
- the value of the
timingPreSamplefield.
-
timingPostSample
- Returns:
- the value of the
timingPostSamplefield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_GPA_SAMPLE_BEGIN_INFO_AMDvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
sampleType
Sets the specified value to thesampleTypefield. -
sampleInternalOperations
Sets the specified value to thesampleInternalOperationsfield. -
cacheFlushOnCounterCollection
Sets the specified value to thecacheFlushOnCounterCollectionfield. -
sqShaderMaskEnable
Sets the specified value to thesqShaderMaskEnablefield. -
sqShaderMask
Sets the specified value to thesqShaderMaskfield. -
pPerfCounters
public VkGpaSampleBeginInfoAMD pPerfCounters(@NativeType("VkGpaPerfCounterAMD const *") VkGpaPerfCounterAMD.Buffer value) Sets the address of the specifiedVkGpaPerfCounterAMD.Bufferto thepPerfCountersfield. -
streamingPerfTraceSampleInterval
Sets the specified value to thestreamingPerfTraceSampleIntervalfield. -
perfCounterDeviceMemoryLimit
Sets the specified value to theperfCounterDeviceMemoryLimitfield. -
sqThreadTraceEnable
Sets the specified value to thesqThreadTraceEnablefield. -
sqThreadTraceSuppressInstructionTokens
public VkGpaSampleBeginInfoAMD sqThreadTraceSuppressInstructionTokens(@NativeType("VkBool32") boolean value) Sets the specified value to thesqThreadTraceSuppressInstructionTokensfield. -
sqThreadTraceDeviceMemoryLimit
public VkGpaSampleBeginInfoAMD sqThreadTraceDeviceMemoryLimit(@NativeType("VkDeviceSize") long value) Sets the specified value to thesqThreadTraceDeviceMemoryLimitfield. -
timingPreSample
Sets the specified value to thetimingPreSamplefield. -
timingPostSample
Sets the specified value to thetimingPostSamplefield. -
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
Returns a newVkGpaSampleBeginInfoAMDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkGpaSampleBeginInfoAMDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkGpaSampleBeginInfoAMDinstance allocated withBufferUtils. -
create
Returns a newVkGpaSampleBeginInfoAMDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkGpaSampleBeginInfoAMD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkGpaSampleBeginInfoAMD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkGpaSampleBeginInfoAMD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkGpaSampleBeginInfoAMD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkGpaSampleBeginInfoAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkGpaSampleBeginInfoAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkGpaSampleBeginInfoAMD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkGpaSampleBeginInfoAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
nsampleType
public static int nsampleType(long struct) Unsafe version ofsampleType(). -
nsampleInternalOperations
public static int nsampleInternalOperations(long struct) Unsafe version ofsampleInternalOperations(). -
ncacheFlushOnCounterCollection
public static int ncacheFlushOnCounterCollection(long struct) Unsafe version ofcacheFlushOnCounterCollection(). -
nsqShaderMaskEnable
public static int nsqShaderMaskEnable(long struct) Unsafe version ofsqShaderMaskEnable(). -
nsqShaderMask
public static int nsqShaderMask(long struct) Unsafe version ofsqShaderMask(). -
nperfCounterCount
public static int nperfCounterCount(long struct) Unsafe version ofperfCounterCount(). -
npPerfCounters
Unsafe version ofpPerfCounters(). -
nstreamingPerfTraceSampleInterval
public static int nstreamingPerfTraceSampleInterval(long struct) Unsafe version ofstreamingPerfTraceSampleInterval(). -
nperfCounterDeviceMemoryLimit
public static long nperfCounterDeviceMemoryLimit(long struct) Unsafe version ofperfCounterDeviceMemoryLimit(). -
nsqThreadTraceEnable
public static int nsqThreadTraceEnable(long struct) Unsafe version ofsqThreadTraceEnable(). -
nsqThreadTraceSuppressInstructionTokens
public static int nsqThreadTraceSuppressInstructionTokens(long struct) Unsafe version ofsqThreadTraceSuppressInstructionTokens(). -
nsqThreadTraceDeviceMemoryLimit
public static long nsqThreadTraceDeviceMemoryLimit(long struct) Unsafe version ofsqThreadTraceDeviceMemoryLimit(). -
ntimingPreSample
public static int ntimingPreSample(long struct) Unsafe version oftimingPreSample(). -
ntimingPostSample
public static int ntimingPostSample(long struct) Unsafe version oftimingPostSample(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nsampleType
public static void nsampleType(long struct, int value) Unsafe version ofsampleType. -
nsampleInternalOperations
public static void nsampleInternalOperations(long struct, int value) Unsafe version ofsampleInternalOperations. -
ncacheFlushOnCounterCollection
public static void ncacheFlushOnCounterCollection(long struct, int value) Unsafe version ofcacheFlushOnCounterCollection. -
nsqShaderMaskEnable
public static void nsqShaderMaskEnable(long struct, int value) Unsafe version ofsqShaderMaskEnable. -
nsqShaderMask
public static void nsqShaderMask(long struct, int value) Unsafe version ofsqShaderMask. -
nperfCounterCount
public static void nperfCounterCount(long struct, int value) Sets the specified value to theperfCounterCountfield of the specifiedstruct. -
npPerfCounters
Unsafe version ofpPerfCounters. -
nstreamingPerfTraceSampleInterval
public static void nstreamingPerfTraceSampleInterval(long struct, int value) Unsafe version ofstreamingPerfTraceSampleInterval. -
nperfCounterDeviceMemoryLimit
public static void nperfCounterDeviceMemoryLimit(long struct, long value) Unsafe version ofperfCounterDeviceMemoryLimit. -
nsqThreadTraceEnable
public static void nsqThreadTraceEnable(long struct, int value) Unsafe version ofsqThreadTraceEnable. -
nsqThreadTraceSuppressInstructionTokens
public static void nsqThreadTraceSuppressInstructionTokens(long struct, int value) Unsafe version ofsqThreadTraceSuppressInstructionTokens. -
nsqThreadTraceDeviceMemoryLimit
public static void nsqThreadTraceDeviceMemoryLimit(long struct, long value) Unsafe version ofsqThreadTraceDeviceMemoryLimit. -
ntimingPreSample
public static void ntimingPreSample(long struct, int value) Unsafe version oftimingPreSample. -
ntimingPostSample
public static void ntimingPostSample(long struct, int value) Unsafe version oftimingPostSample. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-