Package org.lwjgl.vulkan
Class VkPerformanceCounterResultKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPerformanceCounterResultKHR>
org.lwjgl.vulkan.VkPerformanceCounterResultKHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkPerformanceCounterResultKHR
extends Struct<VkPerformanceCounterResultKHR>
implements NativeResource
union VkPerformanceCounterResultKHR {
int32_t int32;
int64_t int64;
uint32_t uint32;
uint64_t uint64;
float float32;
double float64;
}-
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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkPerformanceCounterResultKHR(ByteBuffer container) Creates aVkPerformanceCounterResultKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkPerformanceCounterResultKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkPerformanceCounterResultKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkPerformanceCounterResultKHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkPerformanceCounterResultKHRinstance for the specified memory address.create(long address, int capacity) Create aVkPerformanceCounterResultKHR.Bufferinstance at the specified memory.static @Nullable VkPerformanceCounterResultKHRcreateSafe(long address) static @Nullable VkPerformanceCounterResultKHR.BuffercreateSafe(long address, int capacity) floatfloat32()float32(float value) Sets the specified value to thefloat32field.doublefloat64()float64(double value) Sets the specified value to thefloat64field.intint32()int32(int value) Sets the specified value to theint32field.longint64()int64(long value) Sets the specified value to theint64field.malloc()Returns a newVkPerformanceCounterResultKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkPerformanceCounterResultKHRinstance allocated on the specifiedMemoryStack.static floatnfloat32(long struct) Unsafe version offloat32().static voidnfloat32(long struct, float value) Unsafe version offloat32.static doublenfloat64(long struct) Unsafe version offloat64().static voidnfloat64(long struct, double value) Unsafe version offloat64.static intnint32(long struct) Unsafe version ofint32().static voidnint32(long struct, int value) Unsafe version ofint32.static longnint64(long struct) Unsafe version ofint64().static voidnint64(long struct, long value) Unsafe version ofint64.static intnuint32(long struct) Unsafe version ofuint32().static voidnuint32(long struct, int value) Unsafe version ofuint32.static longnuint64(long struct) Unsafe version ofuint64().static voidnuint64(long struct, long value) Unsafe version ofuint64.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intuint32()uint32(int value) Sets the specified value to theuint32field.longuint64()uint64(long value) Sets the specified value to theuint64field.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. -
INT32
public static final int INT32The struct member offsets. -
INT64
public static final int INT64The struct member offsets. -
UINT32
public static final int UINT32The struct member offsets. -
UINT64
public static final int UINT64The struct member offsets. -
FLOAT32
public static final int FLOAT32The struct member offsets. -
FLOAT64
public static final int FLOAT64The struct member offsets.
-
-
Constructor Details
-
VkPerformanceCounterResultKHR
Creates aVkPerformanceCounterResultKHRinstance 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<VkPerformanceCounterResultKHR>
-
int32
public int int32()- Returns:
- the value of the
int32field.
-
int64
public long int64()- Returns:
- the value of the
int64field.
-
uint32
public int uint32()- Returns:
- the value of the
uint32field.
-
uint64
public long uint64()- Returns:
- the value of the
uint64field.
-
float32
public float float32()- Returns:
- the value of the
float32field.
-
float64
public double float64()- Returns:
- the value of the
float64field.
-
int32
Sets the specified value to theint32field. -
int64
Sets the specified value to theint64field. -
uint32
Sets the specified value to theuint32field. -
uint64
Sets the specified value to theuint64field. -
float32
Sets the specified value to thefloat32field. -
float64
Sets the specified value to thefloat64field. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkPerformanceCounterResultKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkPerformanceCounterResultKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkPerformanceCounterResultKHRinstance allocated withBufferUtils. -
create
Returns a newVkPerformanceCounterResultKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkPerformanceCounterResultKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkPerformanceCounterResultKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkPerformanceCounterResultKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nint32
public static int nint32(long struct) Unsafe version ofint32(). -
nint64
public static long nint64(long struct) Unsafe version ofint64(). -
nuint32
public static int nuint32(long struct) Unsafe version ofuint32(). -
nuint64
public static long nuint64(long struct) Unsafe version ofuint64(). -
nfloat32
public static float nfloat32(long struct) Unsafe version offloat32(). -
nfloat64
public static double nfloat64(long struct) Unsafe version offloat64(). -
nint32
public static void nint32(long struct, int value) Unsafe version ofint32. -
nint64
public static void nint64(long struct, long value) Unsafe version ofint64. -
nuint32
public static void nuint32(long struct, int value) Unsafe version ofuint32. -
nuint64
public static void nuint64(long struct, long value) Unsafe version ofuint64. -
nfloat32
public static void nfloat32(long struct, float value) Unsafe version offloat32. -
nfloat64
public static void nfloat64(long struct, double value) Unsafe version offloat64.
-