Package org.lwjgl.vulkan
Class VkPerformanceValueDataINTEL
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPerformanceValueDataINTEL
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPerformanceValueDataINTEL extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Values returned for the parameters.Description
The correct member of the union is determined by the associated
VkPerformanceValueTypeINTEL
value.Valid Usage (Implicit)
valueString
must be a valid pointer to a valid
See Also
Layout
union VkPerformanceValueDataINTEL { uint32_t value32; uint64_t value64; float valueFloat; VkBool32 valueBool; char const * valueString; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPerformanceValueDataINTEL.Buffer
An array ofVkPerformanceValueDataINTEL
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
SIZEOF
The struct size in bytes.static int
VALUE32
VALUE64
VALUEBOOL
VALUEFLOAT
VALUESTRINGThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPerformanceValueDataINTEL(java.nio.ByteBuffer container)
Creates aVkPerformanceValueDataINTEL
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPerformanceValueDataINTEL
calloc()
Returns a newVkPerformanceValueDataINTEL
instance allocated withmemCalloc
.static VkPerformanceValueDataINTEL.Buffer
calloc(int capacity)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated withmemCalloc
.static VkPerformanceValueDataINTEL
callocStack()
Returns a newVkPerformanceValueDataINTEL
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPerformanceValueDataINTEL.Buffer
callocStack(int capacity)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPerformanceValueDataINTEL.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPerformanceValueDataINTEL
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueDataINTEL
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPerformanceValueDataINTEL
create()
Returns a newVkPerformanceValueDataINTEL
instance allocated withBufferUtils
.static VkPerformanceValueDataINTEL.Buffer
create(int capacity)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated withBufferUtils
.static VkPerformanceValueDataINTEL
create(long address)
Returns a newVkPerformanceValueDataINTEL
instance for the specified memory address.static VkPerformanceValueDataINTEL.Buffer
create(long address, int capacity)
Create aVkPerformanceValueDataINTEL.Buffer
instance at the specified memory.static VkPerformanceValueDataINTEL
createSafe(long address)
static VkPerformanceValueDataINTEL.Buffer
createSafe(long address, int capacity)
static VkPerformanceValueDataINTEL
malloc()
Returns a newVkPerformanceValueDataINTEL
instance allocated withmemAlloc
.static VkPerformanceValueDataINTEL.Buffer
malloc(int capacity)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated withmemAlloc
.static VkPerformanceValueDataINTEL
mallocStack()
Returns a newVkPerformanceValueDataINTEL
instance allocated on the thread-localMemoryStack
.static VkPerformanceValueDataINTEL.Buffer
mallocStack(int capacity)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated on the thread-localMemoryStack
.static VkPerformanceValueDataINTEL.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated on the specifiedMemoryStack
.static VkPerformanceValueDataINTEL
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueDataINTEL
instance allocated on the specifiedMemoryStack
.static int
nvalue32(long struct)
Unsafe version ofvalue32()
.static void
nvalue32(long struct, int value)
Unsafe version ofvalue32
.static long
nvalue64(long struct)
Unsafe version ofvalue64()
.static void
nvalue64(long struct, long value)
Unsafe version ofvalue64
.static int
nvalueBool(long struct)
Unsafe version ofvalueBool()
.static void
nvalueBool(long struct, int value)
Unsafe version ofvalueBool
.static float
nvalueFloat(long struct)
Unsafe version ofvalueFloat()
.static void
nvalueFloat(long struct, float value)
Unsafe version ofvalueFloat
.static java.nio.ByteBuffer
nvalueString(long struct, int capacity)
Unsafe version ofvalueString
.static void
nvalueString(long struct, java.nio.ByteBuffer value)
Unsafe version ofvalueString
.VkPerformanceValueDataINTEL
set(VkPerformanceValueDataINTEL src)
Copies the specified struct data to this struct.int
sizeof()
int
value32()
Returns the value of thevalue32
field.VkPerformanceValueDataINTEL
value32(int value)
Sets the specified value to thevalue32
field.long
value64()
Returns the value of thevalue64
field.VkPerformanceValueDataINTEL
value64(long value)
Sets the specified value to thevalue64
field.boolean
valueBool()
Returns the value of thevalueBool
field.VkPerformanceValueDataINTEL
valueBool(boolean value)
Sets the specified value to thevalueBool
field.float
valueFloat()
Returns the value of thevalueFloat
field.VkPerformanceValueDataINTEL
valueFloat(float value)
Sets the specified value to thevalueFloat
field.java.nio.ByteBuffer
valueString(int capacity)
Returns aByteBuffer
view of the data pointed to by thevalueString
field.VkPerformanceValueDataINTEL
valueString(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thevalueString
field.
-
-
-
Constructor Detail
-
VkPerformanceValueDataINTEL
public VkPerformanceValueDataINTEL(java.nio.ByteBuffer container)
Creates aVkPerformanceValueDataINTEL
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
value32
public int value32()
Returns the value of thevalue32
field.
-
value64
public long value64()
Returns the value of thevalue64
field.
-
valueFloat
public float valueFloat()
Returns the value of thevalueFloat
field.
-
valueBool
public boolean valueBool()
Returns the value of thevalueBool
field.
-
valueString
public java.nio.ByteBuffer valueString(int capacity)
Returns aByteBuffer
view of the data pointed to by thevalueString
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
value32
public VkPerformanceValueDataINTEL value32(int value)
Sets the specified value to thevalue32
field.
-
value64
public VkPerformanceValueDataINTEL value64(long value)
Sets the specified value to thevalue64
field.
-
valueFloat
public VkPerformanceValueDataINTEL valueFloat(float value)
Sets the specified value to thevalueFloat
field.
-
valueBool
public VkPerformanceValueDataINTEL valueBool(boolean value)
Sets the specified value to thevalueBool
field.
-
valueString
public VkPerformanceValueDataINTEL valueString(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thevalueString
field.
-
set
public VkPerformanceValueDataINTEL set(VkPerformanceValueDataINTEL src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPerformanceValueDataINTEL malloc()
Returns a newVkPerformanceValueDataINTEL
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPerformanceValueDataINTEL calloc()
Returns a newVkPerformanceValueDataINTEL
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPerformanceValueDataINTEL create()
Returns a newVkPerformanceValueDataINTEL
instance allocated withBufferUtils
.
-
create
public static VkPerformanceValueDataINTEL create(long address)
Returns a newVkPerformanceValueDataINTEL
instance for the specified memory address.
-
createSafe
@Nullable public static VkPerformanceValueDataINTEL createSafe(long address)
-
malloc
public static VkPerformanceValueDataINTEL.Buffer malloc(int capacity)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPerformanceValueDataINTEL.Buffer calloc(int capacity)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPerformanceValueDataINTEL.Buffer create(int capacity)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPerformanceValueDataINTEL.Buffer create(long address, int capacity)
Create aVkPerformanceValueDataINTEL.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPerformanceValueDataINTEL.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPerformanceValueDataINTEL mallocStack()
Returns a newVkPerformanceValueDataINTEL
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPerformanceValueDataINTEL callocStack()
Returns a newVkPerformanceValueDataINTEL
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPerformanceValueDataINTEL mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueDataINTEL
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPerformanceValueDataINTEL callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueDataINTEL
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPerformanceValueDataINTEL.Buffer mallocStack(int capacity)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPerformanceValueDataINTEL.Buffer callocStack(int capacity)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPerformanceValueDataINTEL.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPerformanceValueDataINTEL.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueDataINTEL.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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
public static java.nio.ByteBuffer nvalueString(long struct, int capacity)
Unsafe version ofvalueString
.
-
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
public static void nvalueString(long struct, java.nio.ByteBuffer value)
Unsafe version ofvalueString
.
-
-