Package org.lwjgl.vulkan
Class VkPerformanceCounterResultKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPerformanceCounterResultKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPerformanceCounterResultKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceUnion containing a performance counter result.Layout
union VkPerformanceCounterResultKHR { int32_t int32; int64_t int64; uint32_t uint32; uint64_t uint64; float float32; double float64; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPerformanceCounterResultKHR.BufferAn array ofVkPerformanceCounterResultKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkPerformanceCounterResultKHR(java.nio.ByteBuffer container)Creates aVkPerformanceCounterResultKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPerformanceCounterResultKHRcalloc()Returns a newVkPerformanceCounterResultKHRinstance allocated withmemCalloc.static VkPerformanceCounterResultKHR.Buffercalloc(int capacity)Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated withmemCalloc.static VkPerformanceCounterResultKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPerformanceCounterResultKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceCounterResultKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPerformanceCounterResultKHRcreate()Returns a newVkPerformanceCounterResultKHRinstance allocated withBufferUtils.static VkPerformanceCounterResultKHR.Buffercreate(int capacity)Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated withBufferUtils.static VkPerformanceCounterResultKHRcreate(long address)Returns a newVkPerformanceCounterResultKHRinstance for the specified memory address.static VkPerformanceCounterResultKHR.Buffercreate(long address, int capacity)Create aVkPerformanceCounterResultKHR.Bufferinstance at the specified memory.static VkPerformanceCounterResultKHRcreateSafe(long address)static VkPerformanceCounterResultKHR.BuffercreateSafe(long address, int capacity)floatfloat32()VkPerformanceCounterResultKHRfloat32(float value)Sets the specified value to thefloat32field.doublefloat64()VkPerformanceCounterResultKHRfloat64(double value)Sets the specified value to thefloat64field.intint32()VkPerformanceCounterResultKHRint32(int value)Sets the specified value to theint32field.longint64()VkPerformanceCounterResultKHRint64(long value)Sets the specified value to theint64field.static VkPerformanceCounterResultKHRmalloc()Returns a newVkPerformanceCounterResultKHRinstance allocated withmemAlloc.static VkPerformanceCounterResultKHR.Buffermalloc(int capacity)Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated withmemAlloc.static VkPerformanceCounterResultKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPerformanceCounterResultKHRmalloc(org.lwjgl.system.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.VkPerformanceCounterResultKHRset(VkPerformanceCounterResultKHR src)Copies the specified struct data to this struct.intsizeof()intuint32()VkPerformanceCounterResultKHRuint32(int value)Sets the specified value to theuint32field.longuint64()VkPerformanceCounterResultKHRuint64(long value)Sets the specified value to theuint64field.
-
-
-
Constructor Detail
-
VkPerformanceCounterResultKHR
public VkPerformanceCounterResultKHR(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public VkPerformanceCounterResultKHR int32(int value)
Sets the specified value to theint32field.
-
int64
public VkPerformanceCounterResultKHR int64(long value)
Sets the specified value to theint64field.
-
uint32
public VkPerformanceCounterResultKHR uint32(int value)
Sets the specified value to theuint32field.
-
uint64
public VkPerformanceCounterResultKHR uint64(long value)
Sets the specified value to theuint64field.
-
float32
public VkPerformanceCounterResultKHR float32(float value)
Sets the specified value to thefloat32field.
-
float64
public VkPerformanceCounterResultKHR float64(double value)
Sets the specified value to thefloat64field.
-
set
public VkPerformanceCounterResultKHR set(VkPerformanceCounterResultKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPerformanceCounterResultKHR malloc()
Returns a newVkPerformanceCounterResultKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPerformanceCounterResultKHR calloc()
Returns a newVkPerformanceCounterResultKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPerformanceCounterResultKHR create()
Returns a newVkPerformanceCounterResultKHRinstance allocated withBufferUtils.
-
create
public static VkPerformanceCounterResultKHR create(long address)
Returns a newVkPerformanceCounterResultKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPerformanceCounterResultKHR createSafe(long address)
-
malloc
public static VkPerformanceCounterResultKHR.Buffer malloc(int capacity)
Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPerformanceCounterResultKHR.Buffer calloc(int capacity)
Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPerformanceCounterResultKHR.Buffer create(int capacity)
Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPerformanceCounterResultKHR.Buffer create(long address, int capacity)
Create aVkPerformanceCounterResultKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPerformanceCounterResultKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPerformanceCounterResultKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceCounterResultKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPerformanceCounterResultKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceCounterResultKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPerformanceCounterResultKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPerformanceCounterResultKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceCounterResultKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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.
-
-