Package org.lwjgl.vulkan
Class VkPerformanceValueDataINTEL
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkPerformanceValueDataINTEL
extends Struct<VkPerformanceValueDataINTEL>
implements NativeResource
union VkPerformanceValueDataINTEL {
uint32_t value32;
uint64_t value64;
float valueFloat;
VkBool32 valueBool;
char const * valueString;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkPerformanceValueDataINTEL(ByteBuffer container) Creates aVkPerformanceValueDataINTELinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPerformanceValueDataINTELcalloc()Returns a newVkPerformanceValueDataINTELinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPerformanceValueDataINTELcalloc(MemoryStack stack) Returns a newVkPerformanceValueDataINTELinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPerformanceValueDataINTELDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, MemoryStack stack) Deprecated.static VkPerformanceValueDataINTELcallocStack(MemoryStack stack) Deprecated.static VkPerformanceValueDataINTELcreate()Returns a newVkPerformanceValueDataINTELinstance allocated withBufferUtils.create(int capacity) Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated withBufferUtils.static VkPerformanceValueDataINTELcreate(long address) Returns a newVkPerformanceValueDataINTELinstance for the specified memory address.create(long address, int capacity) Create aVkPerformanceValueDataINTEL.Bufferinstance at the specified memory.static @Nullable VkPerformanceValueDataINTELcreateSafe(long address) static @Nullable VkPerformanceValueDataINTEL.BuffercreateSafe(long address, int capacity) static VkPerformanceValueDataINTELmalloc()Returns a newVkPerformanceValueDataINTELinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated on the specifiedMemoryStack.static VkPerformanceValueDataINTELmalloc(MemoryStack stack) Returns a newVkPerformanceValueDataINTELinstance allocated on the specifiedMemoryStack.static VkPerformanceValueDataINTELDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, MemoryStack stack) Deprecated.static VkPerformanceValueDataINTELmallocStack(MemoryStack stack) Deprecated.static intnvalue32(long struct) Unsafe version ofvalue32().static voidnvalue32(long struct, int value) Unsafe version ofvalue32.static longnvalue64(long struct) Unsafe version ofvalue64().static voidnvalue64(long struct, long value) Unsafe version ofvalue64.static intnvalueBool(long struct) Unsafe version ofvalueBool().static voidnvalueBool(long struct, int value) Unsafe version ofvalueBool.static floatnvalueFloat(long struct) Unsafe version ofvalueFloat().static voidnvalueFloat(long struct, float value) Unsafe version ofvalueFloat.static ByteBuffernvalueString(long struct) Unsafe version ofvalueString().static voidnvalueString(long struct, ByteBuffer value) Unsafe version ofvalueString.static StringnvalueStringString(long struct) Unsafe version ofvalueStringString().Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intvalue32()value32(int value) Sets the specified value to thevalue32field.longvalue64()value64(long value) Sets the specified value to thevalue64field.booleanvalueBool(boolean value) Sets the specified value to thevalueBoolfield.floatvalueFloat(float value) Sets the specified value to thevalueFloatfield.valueString(ByteBuffer value) Sets the address of the specified encoded string to thevalueStringfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.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. -
VALUE32
public static final int VALUE32The struct member offsets. -
VALUE64
public static final int VALUE64The struct member offsets. -
VALUEFLOAT
public static final int VALUEFLOATThe struct member offsets. -
VALUEBOOL
public static final int VALUEBOOLThe struct member offsets. -
VALUESTRING
public static final int VALUESTRINGThe struct member offsets.
-
-
Constructor Details
-
VkPerformanceValueDataINTEL
Creates aVkPerformanceValueDataINTELinstance 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<VkPerformanceValueDataINTEL>
-
value32
public int value32()- Returns:
- the value of the
value32field.
-
value64
public long value64()- Returns:
- the value of the
value64field.
-
valueFloat
public float valueFloat()- Returns:
- the value of the
valueFloatfield.
-
valueBool
public boolean valueBool()- Returns:
- the value of the
valueBoolfield.
-
valueString
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thevalueStringfield.
-
valueStringString
- Returns:
- the null-terminated string pointed to by the
valueStringfield.
-
value32
Sets the specified value to thevalue32field. -
value64
Sets the specified value to thevalue64field. -
valueFloat
Sets the specified value to thevalueFloatfield. -
valueBool
Sets the specified value to thevalueBoolfield. -
valueString
Sets the address of the specified encoded string to thevalueStringfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkPerformanceValueDataINTELinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkPerformanceValueDataINTELinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkPerformanceValueDataINTELinstance allocated withBufferUtils. -
create
Returns a newVkPerformanceValueDataINTELinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkPerformanceValueDataINTEL.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static VkPerformanceValueDataINTEL.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static VkPerformanceValueDataINTEL.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkPerformanceValueDataINTELinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkPerformanceValueDataINTELinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nvalue32
public static int nvalue32(long struct) Unsafe version ofvalue32(). -
nvalue64
public static long nvalue64(long struct) Unsafe version ofvalue64(). -
nvalueFloat
public static float nvalueFloat(long struct) Unsafe version ofvalueFloat(). -
nvalueBool
public static int nvalueBool(long struct) Unsafe version ofvalueBool(). -
nvalueString
Unsafe version ofvalueString(). -
nvalueStringString
Unsafe version ofvalueStringString(). -
nvalue32
public static void nvalue32(long struct, int value) Unsafe version ofvalue32. -
nvalue64
public static void nvalue64(long struct, long value) Unsafe version ofvalue64. -
nvalueFloat
public static void nvalueFloat(long struct, float value) Unsafe version ofvalueFloat. -
nvalueBool
public static void nvalueBool(long struct, int value) Unsafe version ofvalueBool. -
nvalueString
Unsafe version ofvalueString.
-