Package org.lwjgl.vulkan
Class VkPerformanceValueINTEL
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPerformanceValueINTEL
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPerformanceValueINTEL extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Container for value and types of parameters that can be queried.Valid Usage (Implicit)
type
must be a validVkPerformanceValueTypeINTEL
valuedata
must be a validVkPerformanceValueDataINTEL
union
See Also
VkPerformanceValueDataINTEL
,GetPerformanceParameterINTEL
Member documentation
type
– anVkPerformanceValueTypeINTEL
value specifying the type of the returned data.data
– anVkPerformanceValueDataINTEL
union specifying the value of the returned data.
Layout
struct VkPerformanceValueINTEL { VkPerformanceValueTypeINTEL type;
VkPerformanceValueDataINTEL
data; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPerformanceValueINTEL.Buffer
An array ofVkPerformanceValueINTEL
structs.
-
Constructor Summary
Constructors Constructor Description VkPerformanceValueINTEL(java.nio.ByteBuffer container)
Creates aVkPerformanceValueINTEL
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 VkPerformanceValueINTEL
calloc()
Returns a newVkPerformanceValueINTEL
instance allocated withmemCalloc
.static VkPerformanceValueINTEL.Buffer
calloc(int capacity)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated withmemCalloc
.static VkPerformanceValueINTEL
callocStack()
Returns a newVkPerformanceValueINTEL
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPerformanceValueINTEL.Buffer
callocStack(int capacity)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPerformanceValueINTEL.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPerformanceValueINTEL
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueINTEL
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPerformanceValueINTEL
create()
Returns a newVkPerformanceValueINTEL
instance allocated withBufferUtils
.static VkPerformanceValueINTEL.Buffer
create(int capacity)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated withBufferUtils
.static VkPerformanceValueINTEL
create(long address)
Returns a newVkPerformanceValueINTEL
instance for the specified memory address.static VkPerformanceValueINTEL.Buffer
create(long address, int capacity)
Create aVkPerformanceValueINTEL.Buffer
instance at the specified memory.static VkPerformanceValueINTEL
createSafe(long address)
static VkPerformanceValueINTEL.Buffer
createSafe(long address, int capacity)
VkPerformanceValueDataINTEL
data()
Returns aVkPerformanceValueDataINTEL
view of thedata
field.VkPerformanceValueINTEL
data(java.util.function.Consumer<VkPerformanceValueDataINTEL> consumer)
Passes thedata
field to the specifiedConsumer
.VkPerformanceValueINTEL
data(VkPerformanceValueDataINTEL value)
Copies the specifiedVkPerformanceValueDataINTEL
to thedata
field.static VkPerformanceValueINTEL
malloc()
Returns a newVkPerformanceValueINTEL
instance allocated withmemAlloc
.static VkPerformanceValueINTEL.Buffer
malloc(int capacity)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated withmemAlloc
.static VkPerformanceValueINTEL
mallocStack()
Returns a newVkPerformanceValueINTEL
instance allocated on the thread-localMemoryStack
.static VkPerformanceValueINTEL.Buffer
mallocStack(int capacity)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated on the thread-localMemoryStack
.static VkPerformanceValueINTEL.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated on the specifiedMemoryStack
.static VkPerformanceValueINTEL
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueINTEL
instance allocated on the specifiedMemoryStack
.static VkPerformanceValueDataINTEL
ndata(long struct)
Unsafe version ofdata()
.static void
ndata(long struct, VkPerformanceValueDataINTEL value)
Unsafe version ofdata
.static int
ntype(long struct)
Unsafe version oftype()
.static void
ntype(long struct, int value)
Unsafe version oftype
.VkPerformanceValueINTEL
set(int type, VkPerformanceValueDataINTEL data)
Initializes this struct with the specified values.VkPerformanceValueINTEL
set(VkPerformanceValueINTEL src)
Copies the specified struct data to this struct.int
sizeof()
int
type()
Returns the value of thetype
field.VkPerformanceValueINTEL
type(int value)
Sets the specified value to thetype
field.
-
-
-
Constructor Detail
-
VkPerformanceValueINTEL
public VkPerformanceValueINTEL(java.nio.ByteBuffer container)
Creates aVkPerformanceValueINTEL
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
-
type
public int type()
Returns the value of thetype
field.
-
data
public VkPerformanceValueDataINTEL data()
Returns aVkPerformanceValueDataINTEL
view of thedata
field.
-
type
public VkPerformanceValueINTEL type(int value)
Sets the specified value to thetype
field.
-
data
public VkPerformanceValueINTEL data(VkPerformanceValueDataINTEL value)
Copies the specifiedVkPerformanceValueDataINTEL
to thedata
field.
-
data
public VkPerformanceValueINTEL data(java.util.function.Consumer<VkPerformanceValueDataINTEL> consumer)
Passes thedata
field to the specifiedConsumer
.
-
set
public VkPerformanceValueINTEL set(int type, VkPerformanceValueDataINTEL data)
Initializes this struct with the specified values.
-
set
public VkPerformanceValueINTEL set(VkPerformanceValueINTEL src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPerformanceValueINTEL malloc()
Returns a newVkPerformanceValueINTEL
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPerformanceValueINTEL calloc()
Returns a newVkPerformanceValueINTEL
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPerformanceValueINTEL create()
Returns a newVkPerformanceValueINTEL
instance allocated withBufferUtils
.
-
create
public static VkPerformanceValueINTEL create(long address)
Returns a newVkPerformanceValueINTEL
instance for the specified memory address.
-
createSafe
@Nullable public static VkPerformanceValueINTEL createSafe(long address)
-
malloc
public static VkPerformanceValueINTEL.Buffer malloc(int capacity)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPerformanceValueINTEL.Buffer calloc(int capacity)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPerformanceValueINTEL.Buffer create(int capacity)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPerformanceValueINTEL.Buffer create(long address, int capacity)
Create aVkPerformanceValueINTEL.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPerformanceValueINTEL.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPerformanceValueINTEL mallocStack()
Returns a newVkPerformanceValueINTEL
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPerformanceValueINTEL callocStack()
Returns a newVkPerformanceValueINTEL
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPerformanceValueINTEL mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueINTEL
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPerformanceValueINTEL callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueINTEL
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPerformanceValueINTEL.Buffer mallocStack(int capacity)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPerformanceValueINTEL.Buffer callocStack(int capacity)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPerformanceValueINTEL.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPerformanceValueINTEL.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueINTEL.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype()
.
-
ndata
public static VkPerformanceValueDataINTEL ndata(long struct)
Unsafe version ofdata()
.
-
ntype
public static void ntype(long struct, int value)
Unsafe version oftype
.
-
ndata
public static void ndata(long struct, VkPerformanceValueDataINTEL value)
Unsafe version ofdata
.
-
-