Class VkShaderInstrumentationMetricDataHeaderARM
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkShaderInstrumentationMetricDataHeaderARM>
org.lwjgl.vulkan.VkShaderInstrumentationMetricDataHeaderARM
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class VkShaderInstrumentationMetricDataHeaderARM
extends Struct<VkShaderInstrumentationMetricDataHeaderARM>
implements NativeResource
struct VkShaderInstrumentationMetricDataHeaderARM {
uint32_t resultIndex;
uint32_t resultSubIndex;
VkShaderStageFlags stages;
uint32_t basicBlockIndex;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkShaderInstrumentationMetricDataHeaderARMstructs.Nested 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.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkShaderInstrumentationMetricDataHeaderARMinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbasicBlockIndex(int value) Sets the specified value to thebasicBlockIndexfield.calloc()Returns a newVkShaderInstrumentationMetricDataHeaderARMinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkShaderInstrumentationMetricDataHeaderARM.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkShaderInstrumentationMetricDataHeaderARM.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkShaderInstrumentationMetricDataHeaderARMinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkShaderInstrumentationMetricDataHeaderARMinstance allocated withBufferUtils.create(int capacity) Returns a newVkShaderInstrumentationMetricDataHeaderARM.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkShaderInstrumentationMetricDataHeaderARMinstance for the specified memory address.create(long address, int capacity) Create aVkShaderInstrumentationMetricDataHeaderARM.Bufferinstance at the specified memory.static @Nullable VkShaderInstrumentationMetricDataHeaderARMcreateSafe(long address) static @Nullable VkShaderInstrumentationMetricDataHeaderARM.BuffercreateSafe(long address, int capacity) malloc()Returns a newVkShaderInstrumentationMetricDataHeaderARMinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkShaderInstrumentationMetricDataHeaderARM.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkShaderInstrumentationMetricDataHeaderARM.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkShaderInstrumentationMetricDataHeaderARMinstance allocated on the specifiedMemoryStack.static intnbasicBlockIndex(long struct) Unsafe version ofbasicBlockIndex().static voidnbasicBlockIndex(long struct, int value) Unsafe version ofbasicBlockIndex.static intnresultIndex(long struct) Unsafe version ofresultIndex().static voidnresultIndex(long struct, int value) Unsafe version ofresultIndex.static intnresultSubIndex(long struct) Unsafe version ofresultSubIndex().static voidnresultSubIndex(long struct, int value) Unsafe version ofresultSubIndex.static intnstages(long struct) Unsafe version ofstages().static voidnstages(long struct, int value) Unsafe version ofstages.intresultIndex(int value) Sets the specified value to theresultIndexfield.intresultSubIndex(int value) Sets the specified value to theresultSubIndexfield.set(int resultIndex, int resultSubIndex, int stages, int basicBlockIndex) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intstages()stages(int value) Sets the specified value to thestagesfield.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. -
RESULTINDEX
public static final int RESULTINDEXThe struct member offsets. -
RESULTSUBINDEX
public static final int RESULTSUBINDEXThe struct member offsets. -
STAGES
public static final int STAGESThe struct member offsets. -
BASICBLOCKINDEX
public static final int BASICBLOCKINDEXThe struct member offsets.
-
-
Constructor Details
-
VkShaderInstrumentationMetricDataHeaderARM
Creates aVkShaderInstrumentationMetricDataHeaderARMinstance 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<VkShaderInstrumentationMetricDataHeaderARM>
-
resultIndex
- Returns:
- the value of the
resultIndexfield.
-
resultSubIndex
- Returns:
- the value of the
resultSubIndexfield.
-
stages
- Returns:
- the value of the
stagesfield.
-
basicBlockIndex
- Returns:
- the value of the
basicBlockIndexfield.
-
resultIndex
Sets the specified value to theresultIndexfield. -
resultSubIndex
Sets the specified value to theresultSubIndexfield. -
stages
public VkShaderInstrumentationMetricDataHeaderARM stages(@NativeType("VkShaderStageFlags") int value) Sets the specified value to thestagesfield. -
basicBlockIndex
public VkShaderInstrumentationMetricDataHeaderARM basicBlockIndex(@NativeType("uint32_t") int value) Sets the specified value to thebasicBlockIndexfield. -
set
public VkShaderInstrumentationMetricDataHeaderARM set(int resultIndex, int resultSubIndex, int stages, int basicBlockIndex) Initializes this struct with the specified values. -
set
public VkShaderInstrumentationMetricDataHeaderARM set(VkShaderInstrumentationMetricDataHeaderARM src) Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkShaderInstrumentationMetricDataHeaderARMinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkShaderInstrumentationMetricDataHeaderARMinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkShaderInstrumentationMetricDataHeaderARMinstance allocated withBufferUtils. -
create
Returns a newVkShaderInstrumentationMetricDataHeaderARMinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkShaderInstrumentationMetricDataHeaderARM.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkShaderInstrumentationMetricDataHeaderARM.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkShaderInstrumentationMetricDataHeaderARM.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkShaderInstrumentationMetricDataHeaderARM.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkShaderInstrumentationMetricDataHeaderARM.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkShaderInstrumentationMetricDataHeaderARMinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkShaderInstrumentationMetricDataHeaderARMinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkShaderInstrumentationMetricDataHeaderARM.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkShaderInstrumentationMetricDataHeaderARM.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkShaderInstrumentationMetricDataHeaderARM.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkShaderInstrumentationMetricDataHeaderARM.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nresultIndex
public static int nresultIndex(long struct) Unsafe version ofresultIndex(). -
nresultSubIndex
public static int nresultSubIndex(long struct) Unsafe version ofresultSubIndex(). -
nstages
public static int nstages(long struct) Unsafe version ofstages(). -
nbasicBlockIndex
public static int nbasicBlockIndex(long struct) Unsafe version ofbasicBlockIndex(). -
nresultIndex
public static void nresultIndex(long struct, int value) Unsafe version ofresultIndex. -
nresultSubIndex
public static void nresultSubIndex(long struct, int value) Unsafe version ofresultSubIndex. -
nstages
public static void nstages(long struct, int value) Unsafe version ofstages. -
nbasicBlockIndex
public static void nbasicBlockIndex(long struct, int value) Unsafe version ofbasicBlockIndex.
-