Class VkGpaPerfBlockPropertiesAMD
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class VkGpaPerfBlockPropertiesAMD
extends Struct<VkGpaPerfBlockPropertiesAMD>
implements NativeResource
struct VkGpaPerfBlockPropertiesAMD {
VkGpaPerfBlockAMD blockType;
VkGpaPerfBlockPropertiesFlagsAMD flags;
uint32_t instanceCount;
uint32_t maxEventID;
uint32_t maxGlobalOnlyCounters;
uint32_t maxGlobalSharedCounters;
uint32_t maxStreamingCounters;
}-
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.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkGpaPerfBlockPropertiesAMD(ByteBuffer container) Creates aVkGpaPerfBlockPropertiesAMDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintblockType(int value) Sets the specified value to theblockTypefield.static VkGpaPerfBlockPropertiesAMDcalloc()Returns a newVkGpaPerfBlockPropertiesAMDinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkGpaPerfBlockPropertiesAMD.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkGpaPerfBlockPropertiesAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGpaPerfBlockPropertiesAMDcalloc(MemoryStack stack) Returns a newVkGpaPerfBlockPropertiesAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGpaPerfBlockPropertiesAMDcreate()Returns a newVkGpaPerfBlockPropertiesAMDinstance allocated withBufferUtils.create(int capacity) Returns a newVkGpaPerfBlockPropertiesAMD.Bufferinstance allocated withBufferUtils.static VkGpaPerfBlockPropertiesAMDcreate(long address) Returns a newVkGpaPerfBlockPropertiesAMDinstance for the specified memory address.create(long address, int capacity) Create aVkGpaPerfBlockPropertiesAMD.Bufferinstance at the specified memory.static @Nullable VkGpaPerfBlockPropertiesAMDcreateSafe(long address) static @Nullable VkGpaPerfBlockPropertiesAMD.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.intinstanceCount(int value) Sets the specified value to theinstanceCountfield.static VkGpaPerfBlockPropertiesAMDmalloc()Returns a newVkGpaPerfBlockPropertiesAMDinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkGpaPerfBlockPropertiesAMD.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkGpaPerfBlockPropertiesAMD.Bufferinstance allocated on the specifiedMemoryStack.static VkGpaPerfBlockPropertiesAMDmalloc(MemoryStack stack) Returns a newVkGpaPerfBlockPropertiesAMDinstance allocated on the specifiedMemoryStack.intmaxEventID(int value) Sets the specified value to themaxEventIDfield.intmaxGlobalOnlyCounters(int value) Sets the specified value to themaxGlobalOnlyCountersfield.intmaxGlobalSharedCounters(int value) Sets the specified value to themaxGlobalSharedCountersfield.intmaxStreamingCounters(int value) Sets the specified value to themaxStreamingCountersfield.static intnblockType(long struct) Unsafe version ofblockType().static voidnblockType(long struct, int value) Unsafe version ofblockType.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intninstanceCount(long struct) Unsafe version ofinstanceCount().static voidninstanceCount(long struct, int value) Unsafe version ofinstanceCount.static intnmaxEventID(long struct) Unsafe version ofmaxEventID().static voidnmaxEventID(long struct, int value) Unsafe version ofmaxEventID.static intnmaxGlobalOnlyCounters(long struct) Unsafe version ofmaxGlobalOnlyCounters().static voidnmaxGlobalOnlyCounters(long struct, int value) Unsafe version ofmaxGlobalOnlyCounters.static intnmaxGlobalSharedCounters(long struct) Unsafe version ofmaxGlobalSharedCounters().static voidnmaxGlobalSharedCounters(long struct, int value) Unsafe version ofmaxGlobalSharedCounters.static intnmaxStreamingCounters(long struct) Unsafe version ofmaxStreamingCounters().static voidnmaxStreamingCounters(long struct, int value) Unsafe version ofmaxStreamingCounters.set(int blockType, int flags, int instanceCount, int maxEventID, int maxGlobalOnlyCounters, int maxGlobalSharedCounters, int maxStreamingCounters) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
BLOCKTYPE
public static final int BLOCKTYPEThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
INSTANCECOUNT
public static final int INSTANCECOUNTThe struct member offsets. -
MAXEVENTID
public static final int MAXEVENTIDThe struct member offsets. -
MAXGLOBALONLYCOUNTERS
public static final int MAXGLOBALONLYCOUNTERSThe struct member offsets. -
MAXGLOBALSHAREDCOUNTERS
public static final int MAXGLOBALSHAREDCOUNTERSThe struct member offsets. -
MAXSTREAMINGCOUNTERS
public static final int MAXSTREAMINGCOUNTERSThe struct member offsets.
-
-
Constructor Details
-
VkGpaPerfBlockPropertiesAMD
Creates aVkGpaPerfBlockPropertiesAMDinstance 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<VkGpaPerfBlockPropertiesAMD>
-
blockType
- Returns:
- the value of the
blockTypefield.
-
flags
- Returns:
- the value of the
flagsfield.
-
instanceCount
- Returns:
- the value of the
instanceCountfield.
-
maxEventID
- Returns:
- the value of the
maxEventIDfield.
-
maxGlobalOnlyCounters
- Returns:
- the value of the
maxGlobalOnlyCountersfield.
-
maxStreamingCounters
- Returns:
- the value of the
maxStreamingCountersfield.
-
blockType
Sets the specified value to theblockTypefield. -
flags
Sets the specified value to theflagsfield. -
instanceCount
Sets the specified value to theinstanceCountfield. -
maxEventID
Sets the specified value to themaxEventIDfield. -
maxGlobalOnlyCounters
Sets the specified value to themaxGlobalOnlyCountersfield. -
maxStreamingCounters
Sets the specified value to themaxStreamingCountersfield. -
set
public VkGpaPerfBlockPropertiesAMD set(int blockType, int flags, int instanceCount, int maxEventID, int maxGlobalOnlyCounters, int maxGlobalSharedCounters, int maxStreamingCounters) 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 newVkGpaPerfBlockPropertiesAMDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkGpaPerfBlockPropertiesAMDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkGpaPerfBlockPropertiesAMDinstance allocated withBufferUtils. -
create
Returns a newVkGpaPerfBlockPropertiesAMDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkGpaPerfBlockPropertiesAMD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkGpaPerfBlockPropertiesAMD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkGpaPerfBlockPropertiesAMD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkGpaPerfBlockPropertiesAMD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkGpaPerfBlockPropertiesAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkGpaPerfBlockPropertiesAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkGpaPerfBlockPropertiesAMD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkGpaPerfBlockPropertiesAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nblockType
public static int nblockType(long struct) Unsafe version ofblockType(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
ninstanceCount
public static int ninstanceCount(long struct) Unsafe version ofinstanceCount(). -
nmaxEventID
public static int nmaxEventID(long struct) Unsafe version ofmaxEventID(). -
nmaxGlobalOnlyCounters
public static int nmaxGlobalOnlyCounters(long struct) Unsafe version ofmaxGlobalOnlyCounters(). -
nmaxStreamingCounters
public static int nmaxStreamingCounters(long struct) Unsafe version ofmaxStreamingCounters(). -
nblockType
public static void nblockType(long struct, int value) Unsafe version ofblockType. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
ninstanceCount
public static void ninstanceCount(long struct, int value) Unsafe version ofinstanceCount. -
nmaxEventID
public static void nmaxEventID(long struct, int value) Unsafe version ofmaxEventID. -
nmaxGlobalOnlyCounters
public static void nmaxGlobalOnlyCounters(long struct, int value) Unsafe version ofmaxGlobalOnlyCounters. -
nmaxStreamingCounters
public static void nmaxStreamingCounters(long struct, int value) Unsafe version ofmaxStreamingCounters.
-