Class VkGpaPerfCounterAMD
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct VkGpaPerfCounterAMD {
VkGpaPerfBlockAMD blockType;
uint32_t blockInstance;
uint32_t eventID;
}-
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 size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkGpaPerfCounterAMD(ByteBuffer container) Creates aVkGpaPerfCounterAMDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintblockInstance(int value) Sets the specified value to theblockInstancefield.intblockType(int value) Sets the specified value to theblockTypefield.static VkGpaPerfCounterAMDcalloc()Returns a newVkGpaPerfCounterAMDinstance allocated withmemCalloc.static VkGpaPerfCounterAMD.Buffercalloc(int capacity) Returns a newVkGpaPerfCounterAMD.Bufferinstance allocated withmemCalloc.static VkGpaPerfCounterAMD.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkGpaPerfCounterAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGpaPerfCounterAMDcalloc(MemoryStack stack) Returns a newVkGpaPerfCounterAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGpaPerfCounterAMDcreate()Returns a newVkGpaPerfCounterAMDinstance allocated withBufferUtils.static VkGpaPerfCounterAMD.Buffercreate(int capacity) Returns a newVkGpaPerfCounterAMD.Bufferinstance allocated withBufferUtils.static VkGpaPerfCounterAMDcreate(long address) Returns a newVkGpaPerfCounterAMDinstance for the specified memory address.static VkGpaPerfCounterAMD.Buffercreate(long address, int capacity) Create aVkGpaPerfCounterAMD.Bufferinstance at the specified memory.static @Nullable VkGpaPerfCounterAMDcreateSafe(long address) static @Nullable VkGpaPerfCounterAMD.BuffercreateSafe(long address, int capacity) inteventID()eventID(int value) Sets the specified value to theeventIDfield.static VkGpaPerfCounterAMDmalloc()Returns a newVkGpaPerfCounterAMDinstance allocated withmemAlloc.static VkGpaPerfCounterAMD.Buffermalloc(int capacity) Returns a newVkGpaPerfCounterAMD.Bufferinstance allocated withmemAlloc.static VkGpaPerfCounterAMD.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkGpaPerfCounterAMD.Bufferinstance allocated on the specifiedMemoryStack.static VkGpaPerfCounterAMDmalloc(MemoryStack stack) Returns a newVkGpaPerfCounterAMDinstance allocated on the specifiedMemoryStack.static intnblockInstance(long struct) Unsafe version ofblockInstance().static voidnblockInstance(long struct, int value) Unsafe version ofblockInstance.static intnblockType(long struct) Unsafe version ofblockType().static voidnblockType(long struct, int value) Unsafe version ofblockType.static intneventID(long struct) Unsafe version ofeventID().static voidneventID(long struct, int value) Unsafe version ofeventID.set(int blockType, int blockInstance, int eventID) Initializes this struct with the specified values.set(VkGpaPerfCounterAMD src) 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. -
BLOCKINSTANCE
public static final int BLOCKINSTANCEThe struct member offsets. -
EVENTID
public static final int EVENTIDThe struct member offsets.
-
-
Constructor Details
-
VkGpaPerfCounterAMD
Creates aVkGpaPerfCounterAMDinstance 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<VkGpaPerfCounterAMD>
-
blockType
- Returns:
- the value of the
blockTypefield.
-
blockInstance
- Returns:
- the value of the
blockInstancefield.
-
eventID
- Returns:
- the value of the
eventIDfield.
-
blockType
Sets the specified value to theblockTypefield. -
blockInstance
Sets the specified value to theblockInstancefield. -
eventID
Sets the specified value to theeventIDfield. -
set
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 newVkGpaPerfCounterAMDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkGpaPerfCounterAMDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkGpaPerfCounterAMDinstance allocated withBufferUtils. -
create
Returns a newVkGpaPerfCounterAMDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkGpaPerfCounterAMD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkGpaPerfCounterAMD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkGpaPerfCounterAMD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkGpaPerfCounterAMD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkGpaPerfCounterAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkGpaPerfCounterAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkGpaPerfCounterAMD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkGpaPerfCounterAMD.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(). -
nblockInstance
public static int nblockInstance(long struct) Unsafe version ofblockInstance(). -
neventID
public static int neventID(long struct) Unsafe version ofeventID(). -
nblockType
public static void nblockType(long struct, int value) Unsafe version ofblockType. -
nblockInstance
public static void nblockInstance(long struct, int value) Unsafe version ofblockInstance. -
neventID
public static void neventID(long struct, int value) Unsafe version ofeventID.
-