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.NativeResourceValues returned for the parameters.Description
The correct member of the union is determined by the associated
VkPerformanceValueTypeINTELvalue.Valid Usage (Implicit)
valueStringmust 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 classVkPerformanceValueDataINTEL.BufferAn array ofVkPerformanceValueDataINTELstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intSIZEOFThe struct size in bytes.static intVALUE32
VALUE64
VALUEBOOL
VALUEFLOAT
VALUESTRINGThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPerformanceValueDataINTEL(java.nio.ByteBuffer container)Creates aVkPerformanceValueDataINTELinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPerformanceValueDataINTELcalloc()Returns a newVkPerformanceValueDataINTELinstance allocated withmemCalloc.static VkPerformanceValueDataINTEL.Buffercalloc(int capacity)Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated withmemCalloc.static VkPerformanceValueDataINTELcallocStack()Returns a newVkPerformanceValueDataINTELinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPerformanceValueDataINTEL.BuffercallocStack(int capacity)Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPerformanceValueDataINTEL.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPerformanceValueDataINTELcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceValueDataINTELinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPerformanceValueDataINTELcreate()Returns a newVkPerformanceValueDataINTELinstance allocated withBufferUtils.static VkPerformanceValueDataINTEL.Buffercreate(int capacity)Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated withBufferUtils.static VkPerformanceValueDataINTELcreate(long address)Returns a newVkPerformanceValueDataINTELinstance for the specified memory address.static VkPerformanceValueDataINTEL.Buffercreate(long address, int capacity)Create aVkPerformanceValueDataINTEL.Bufferinstance at the specified memory.static VkPerformanceValueDataINTELcreateSafe(long address)static VkPerformanceValueDataINTEL.BuffercreateSafe(long address, int capacity)static VkPerformanceValueDataINTELmalloc()Returns a newVkPerformanceValueDataINTELinstance allocated withmemAlloc.static VkPerformanceValueDataINTEL.Buffermalloc(int capacity)Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated withmemAlloc.static VkPerformanceValueDataINTELmallocStack()Returns a newVkPerformanceValueDataINTELinstance allocated on the thread-localMemoryStack.static VkPerformanceValueDataINTEL.BuffermallocStack(int capacity)Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated on the thread-localMemoryStack.static VkPerformanceValueDataINTEL.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated on the specifiedMemoryStack.static VkPerformanceValueDataINTELmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceValueDataINTELinstance allocated on the specifiedMemoryStack.static intnvalue32(long struct)Unsafe version ofvalue32().static voidnvalue32(long struct, int value)Unsafe version ofvalue32.static longnvalue64(long struct)Unsafe version ofvalue64().static voidnvalue64(long struct, long value)Unsafe version ofvalue64.static intnvalueBool(long struct)Unsafe version ofvalueBool().static voidnvalueBool(long struct, int value)Unsafe version ofvalueBool.static floatnvalueFloat(long struct)Unsafe version ofvalueFloat().static voidnvalueFloat(long struct, float value)Unsafe version ofvalueFloat.static java.nio.ByteBuffernvalueString(long struct, int capacity)Unsafe version ofvalueString.static voidnvalueString(long struct, java.nio.ByteBuffer value)Unsafe version ofvalueString.VkPerformanceValueDataINTELset(VkPerformanceValueDataINTEL src)Copies the specified struct data to this struct.intsizeof()intvalue32()Returns the value of thevalue32field.VkPerformanceValueDataINTELvalue32(int value)Sets the specified value to thevalue32field.longvalue64()Returns the value of thevalue64field.VkPerformanceValueDataINTELvalue64(long value)Sets the specified value to thevalue64field.booleanvalueBool()Returns the value of thevalueBoolfield.VkPerformanceValueDataINTELvalueBool(boolean value)Sets the specified value to thevalueBoolfield.floatvalueFloat()Returns the value of thevalueFloatfield.VkPerformanceValueDataINTELvalueFloat(float value)Sets the specified value to thevalueFloatfield.java.nio.ByteBuffervalueString(int capacity)Returns aByteBufferview of the data pointed to by thevalueStringfield.VkPerformanceValueDataINTELvalueString(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thevalueStringfield.
-
-
-
Constructor Detail
-
VkPerformanceValueDataINTEL
public VkPerformanceValueDataINTEL(java.nio.ByteBuffer container)
Creates aVkPerformanceValueDataINTELinstance 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
-
value32
public int value32()
Returns the value of thevalue32field.
-
value64
public long value64()
Returns the value of thevalue64field.
-
valueFloat
public float valueFloat()
Returns the value of thevalueFloatfield.
-
valueBool
public boolean valueBool()
Returns the value of thevalueBoolfield.
-
valueString
public java.nio.ByteBuffer valueString(int capacity)
Returns aByteBufferview of the data pointed to by thevalueStringfield.- Parameters:
capacity- the number of elements in the returned buffer
-
value32
public VkPerformanceValueDataINTEL value32(int value)
Sets the specified value to thevalue32field.
-
value64
public VkPerformanceValueDataINTEL value64(long value)
Sets the specified value to thevalue64field.
-
valueFloat
public VkPerformanceValueDataINTEL valueFloat(float value)
Sets the specified value to thevalueFloatfield.
-
valueBool
public VkPerformanceValueDataINTEL valueBool(boolean value)
Sets the specified value to thevalueBoolfield.
-
valueString
public VkPerformanceValueDataINTEL valueString(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thevalueStringfield.
-
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 newVkPerformanceValueDataINTELinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPerformanceValueDataINTEL calloc()
Returns a newVkPerformanceValueDataINTELinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPerformanceValueDataINTEL create()
Returns a newVkPerformanceValueDataINTELinstance allocated withBufferUtils.
-
create
public static VkPerformanceValueDataINTEL create(long address)
Returns a newVkPerformanceValueDataINTELinstance for the specified memory address.
-
createSafe
@Nullable public static VkPerformanceValueDataINTEL createSafe(long address)
-
malloc
public static VkPerformanceValueDataINTEL.Buffer malloc(int capacity)
Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPerformanceValueDataINTEL.Buffer calloc(int capacity)
Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPerformanceValueDataINTEL.Buffer create(int capacity)
Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPerformanceValueDataINTEL.Buffer create(long address, int capacity)
Create aVkPerformanceValueDataINTEL.Bufferinstance 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 newVkPerformanceValueDataINTELinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPerformanceValueDataINTEL callocStack()
Returns a newVkPerformanceValueDataINTELinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPerformanceValueDataINTEL mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueDataINTELinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPerformanceValueDataINTEL callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueDataINTELinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPerformanceValueDataINTEL.Buffer callocStack(int capacity)
Returns a newVkPerformanceValueDataINTEL.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-