public class VkPerformanceValueDataINTEL
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The correct member of the union is determined by the associated VkPerformanceValueTypeINTEL value.
valueString must be a valid pointer to a valid
union VkPerformanceValueDataINTEL {
uint32_t value32;
uint64_t value64;
float valueFloat;
VkBool32 valueBool;
char const * valueString;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPerformanceValueDataINTEL.Buffer
An array of
VkPerformanceValueDataINTEL structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VALUE32
The struct member offsets.
|
static int |
VALUE64
The struct member offsets.
|
static int |
VALUEBOOL
The struct member offsets.
|
static int |
VALUEFLOAT
The struct member offsets.
|
static int |
VALUESTRING
The struct member offsets.
|
| Constructor and Description |
|---|
VkPerformanceValueDataINTEL(java.nio.ByteBuffer container)
Creates a
VkPerformanceValueDataINTEL instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPerformanceValueDataINTEL |
calloc()
Returns a new
VkPerformanceValueDataINTEL instance allocated with memCalloc. |
static VkPerformanceValueDataINTEL.Buffer |
calloc(int capacity)
Returns a new
VkPerformanceValueDataINTEL.Buffer instance allocated with memCalloc. |
static VkPerformanceValueDataINTEL |
callocStack()
Returns a new
VkPerformanceValueDataINTEL instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPerformanceValueDataINTEL.Buffer |
callocStack(int capacity)
Returns a new
VkPerformanceValueDataINTEL.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPerformanceValueDataINTEL.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceValueDataINTEL.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPerformanceValueDataINTEL |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceValueDataINTEL instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPerformanceValueDataINTEL |
create()
Returns a new
VkPerformanceValueDataINTEL instance allocated with BufferUtils. |
static VkPerformanceValueDataINTEL.Buffer |
create(int capacity)
Returns a new
VkPerformanceValueDataINTEL.Buffer instance allocated with BufferUtils. |
static VkPerformanceValueDataINTEL |
create(long address)
Returns a new
VkPerformanceValueDataINTEL instance for the specified memory address. |
static VkPerformanceValueDataINTEL.Buffer |
create(long address,
int capacity)
Create a
VkPerformanceValueDataINTEL.Buffer instance at the specified memory. |
static VkPerformanceValueDataINTEL |
createSafe(long address)
|
static VkPerformanceValueDataINTEL.Buffer |
createSafe(long address,
int capacity)
|
static VkPerformanceValueDataINTEL |
malloc()
Returns a new
VkPerformanceValueDataINTEL instance allocated with memAlloc. |
static VkPerformanceValueDataINTEL.Buffer |
malloc(int capacity)
Returns a new
VkPerformanceValueDataINTEL.Buffer instance allocated with memAlloc. |
static VkPerformanceValueDataINTEL |
mallocStack()
Returns a new
VkPerformanceValueDataINTEL instance allocated on the thread-local MemoryStack. |
static VkPerformanceValueDataINTEL.Buffer |
mallocStack(int capacity)
Returns a new
VkPerformanceValueDataINTEL.Buffer instance allocated on the thread-local MemoryStack. |
static VkPerformanceValueDataINTEL.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceValueDataINTEL.Buffer instance allocated on the specified MemoryStack. |
static VkPerformanceValueDataINTEL |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceValueDataINTEL instance allocated on the specified MemoryStack. |
static int |
nvalue32(long struct)
Unsafe version of
value32(). |
static void |
nvalue32(long struct,
int value)
Unsafe version of
value32. |
static long |
nvalue64(long struct)
Unsafe version of
value64(). |
static void |
nvalue64(long struct,
long value)
Unsafe version of
value64. |
static int |
nvalueBool(long struct)
Unsafe version of
valueBool(). |
static void |
nvalueBool(long struct,
int value)
Unsafe version of
valueBool. |
static float |
nvalueFloat(long struct)
Unsafe version of
valueFloat(). |
static void |
nvalueFloat(long struct,
float value)
Unsafe version of
valueFloat. |
static void |
nvalueString(long struct,
java.nio.ByteBuffer value)
Unsafe version of
valueString. |
static java.nio.ByteBuffer |
nvalueString(long struct,
int capacity)
Unsafe version of
valueString. |
VkPerformanceValueDataINTEL |
set(VkPerformanceValueDataINTEL src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
value32()
Returns the value of the
value32 field. |
VkPerformanceValueDataINTEL |
value32(int value)
Sets the specified value to the
value32 field. |
long |
value64()
Returns the value of the
value64 field. |
VkPerformanceValueDataINTEL |
value64(long value)
Sets the specified value to the
value64 field. |
boolean |
valueBool()
Returns the value of the
valueBool field. |
VkPerformanceValueDataINTEL |
valueBool(boolean value)
Sets the specified value to the
valueBool field. |
float |
valueFloat()
Returns the value of the
valueFloat field. |
VkPerformanceValueDataINTEL |
valueFloat(float value)
Sets the specified value to the
valueFloat field. |
VkPerformanceValueDataINTEL |
valueString(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the valueString field. |
java.nio.ByteBuffer |
valueString(int capacity)
Returns a
ByteBuffer view of the data pointed to by the valueString field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int VALUE32
public static final int VALUE64
public static final int VALUEFLOAT
public static final int VALUEBOOL
public static final int VALUESTRING
public VkPerformanceValueDataINTEL(java.nio.ByteBuffer container)
VkPerformanceValueDataINTEL instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int value32()
value32 field.public long value64()
value64 field.public float valueFloat()
valueFloat field.public boolean valueBool()
valueBool field.public java.nio.ByteBuffer valueString(int capacity)
ByteBuffer view of the data pointed to by the valueString field.capacity - the number of elements in the returned bufferpublic VkPerformanceValueDataINTEL value32(int value)
value32 field.public VkPerformanceValueDataINTEL value64(long value)
value64 field.public VkPerformanceValueDataINTEL valueFloat(float value)
valueFloat field.public VkPerformanceValueDataINTEL valueBool(boolean value)
valueBool field.public VkPerformanceValueDataINTEL valueString(java.nio.ByteBuffer value)
ByteBuffer to the valueString field.public VkPerformanceValueDataINTEL set(VkPerformanceValueDataINTEL src)
src - the source structpublic static VkPerformanceValueDataINTEL malloc()
VkPerformanceValueDataINTEL instance allocated with memAlloc. The instance must be explicitly freed.public static VkPerformanceValueDataINTEL calloc()
VkPerformanceValueDataINTEL instance allocated with memCalloc. The instance must be explicitly freed.public static VkPerformanceValueDataINTEL create()
VkPerformanceValueDataINTEL instance allocated with BufferUtils.public static VkPerformanceValueDataINTEL create(long address)
VkPerformanceValueDataINTEL instance for the specified memory address.@Nullable public static VkPerformanceValueDataINTEL createSafe(long address)
public static VkPerformanceValueDataINTEL.Buffer malloc(int capacity)
VkPerformanceValueDataINTEL.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPerformanceValueDataINTEL.Buffer calloc(int capacity)
VkPerformanceValueDataINTEL.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPerformanceValueDataINTEL.Buffer create(int capacity)
VkPerformanceValueDataINTEL.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPerformanceValueDataINTEL.Buffer create(long address, int capacity)
VkPerformanceValueDataINTEL.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPerformanceValueDataINTEL.Buffer createSafe(long address, int capacity)
public static VkPerformanceValueDataINTEL mallocStack()
VkPerformanceValueDataINTEL instance allocated on the thread-local MemoryStack.public static VkPerformanceValueDataINTEL callocStack()
VkPerformanceValueDataINTEL instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPerformanceValueDataINTEL mallocStack(org.lwjgl.system.MemoryStack stack)
VkPerformanceValueDataINTEL instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPerformanceValueDataINTEL callocStack(org.lwjgl.system.MemoryStack stack)
VkPerformanceValueDataINTEL instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPerformanceValueDataINTEL.Buffer mallocStack(int capacity)
VkPerformanceValueDataINTEL.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPerformanceValueDataINTEL.Buffer callocStack(int capacity)
VkPerformanceValueDataINTEL.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPerformanceValueDataINTEL.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPerformanceValueDataINTEL.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPerformanceValueDataINTEL.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPerformanceValueDataINTEL.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nvalue32(long struct)
value32().public static long nvalue64(long struct)
value64().public static float nvalueFloat(long struct)
valueFloat().public static int nvalueBool(long struct)
valueBool().public static java.nio.ByteBuffer nvalueString(long struct,
int capacity)
valueString.public static void nvalue32(long struct,
int value)
value32.public static void nvalue64(long struct,
long value)
value64.public static void nvalueFloat(long struct,
float value)
valueFloat.public static void nvalueBool(long struct,
int value)
valueBool.public static void nvalueString(long struct,
java.nio.ByteBuffer value)
valueString.Copyright LWJGL. All Rights Reserved. License terms.