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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The 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 aVkPerformanceCounterResultKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newVkPerformanceCounterResultKHR
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkPerformanceCounterResultKHR.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkPerformanceCounterResultKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newVkPerformanceCounterResultKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newVkPerformanceCounterResultKHR
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkPerformanceCounterResultKHR.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newVkPerformanceCounterResultKHR
instance for the specified memory address.create
(long address, int capacity) Create aVkPerformanceCounterResultKHR.Buffer
instance at the specified memory.static @Nullable VkPerformanceCounterResultKHR
createSafe
(long address) static @Nullable VkPerformanceCounterResultKHR.Buffer
createSafe
(long address, int capacity) float
float32()
float32
(float value) Sets the specified value to thefloat32
field.double
float64()
float64
(double value) Sets the specified value to thefloat64
field.int
int32()
int32
(int value) Sets the specified value to theint32
field.long
int64()
int64
(long value) Sets the specified value to theint64
field.malloc()
Returns a newVkPerformanceCounterResultKHR
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkPerformanceCounterResultKHR.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkPerformanceCounterResultKHR.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newVkPerformanceCounterResultKHR
instance allocated on the specifiedMemoryStack
.static float
nfloat32
(long struct) Unsafe version offloat32()
.static void
nfloat32
(long struct, float value) Unsafe version offloat32
.static double
nfloat64
(long struct) Unsafe version offloat64()
.static void
nfloat64
(long struct, double value) Unsafe version offloat64
.static int
nint32
(long struct) Unsafe version ofint32()
.static void
nint32
(long struct, int value) Unsafe version ofint32
.static long
nint64
(long struct) Unsafe version ofint64()
.static void
nint64
(long struct, long value) Unsafe version ofint64
.static int
nuint32
(long struct) Unsafe version ofuint32()
.static void
nuint32
(long struct, int value) Unsafe version ofuint32
.static long
nuint64
(long struct) Unsafe version ofuint64()
.static void
nuint64
(long struct, long value) Unsafe version ofuint64
.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
uint32()
uint32
(int value) Sets the specified value to theuint32
field.long
uint64()
uint64
(long value) Sets the specified value to theuint64
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aVkPerformanceCounterResultKHR
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkPerformanceCounterResultKHR>
-
int32
public int int32()- Returns:
- the value of the
int32
field.
-
int64
public long int64()- Returns:
- the value of the
int64
field.
-
uint32
public int uint32()- Returns:
- the value of the
uint32
field.
-
uint64
public long uint64()- Returns:
- the value of the
uint64
field.
-
float32
public float float32()- Returns:
- the value of the
float32
field.
-
float64
public double float64()- Returns:
- the value of the
float64
field.
-
int32
Sets the specified value to theint32
field. -
int64
Sets the specified value to theint64
field. -
uint32
Sets the specified value to theuint32
field. -
uint64
Sets the specified value to theuint64
field. -
float32
Sets the specified value to thefloat32
field. -
float64
Sets the specified value to thefloat64
field. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkPerformanceCounterResultKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkPerformanceCounterResultKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkPerformanceCounterResultKHR
instance allocated withBufferUtils
. -
create
Returns a newVkPerformanceCounterResultKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPerformanceCounterResultKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkPerformanceCounterResultKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkPerformanceCounterResultKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkPerformanceCounterResultKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkPerformanceCounterResultKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkPerformanceCounterResultKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkPerformanceCounterResultKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkPerformanceCounterResultKHR.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-