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.NativeResourceContainer for value and types of parameters that can be queried.Valid Usage (Implicit)
typemust be a validVkPerformanceValueTypeINTELvaluedatamust be a validVkPerformanceValueDataINTELunion
See Also
VkPerformanceValueDataINTEL,GetPerformanceParameterINTELMember documentation
type– anVkPerformanceValueTypeINTELvalue specifying the type of the returned data.data– anVkPerformanceValueDataINTELunion specifying the value of the returned data.
Layout
struct VkPerformanceValueINTEL { VkPerformanceValueTypeINTEL type;VkPerformanceValueDataINTELdata; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPerformanceValueINTEL.BufferAn array ofVkPerformanceValueINTELstructs.
-
Constructor Summary
Constructors Constructor Description VkPerformanceValueINTEL(java.nio.ByteBuffer container)Creates aVkPerformanceValueINTELinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPerformanceValueINTELcalloc()Returns a newVkPerformanceValueINTELinstance allocated withmemCalloc.static VkPerformanceValueINTEL.Buffercalloc(int capacity)Returns a newVkPerformanceValueINTEL.Bufferinstance allocated withmemCalloc.static VkPerformanceValueINTELcallocStack()Returns a newVkPerformanceValueINTELinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPerformanceValueINTEL.BuffercallocStack(int capacity)Returns a newVkPerformanceValueINTEL.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPerformanceValueINTEL.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceValueINTEL.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPerformanceValueINTELcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceValueINTELinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPerformanceValueINTELcreate()Returns a newVkPerformanceValueINTELinstance allocated withBufferUtils.static VkPerformanceValueINTEL.Buffercreate(int capacity)Returns a newVkPerformanceValueINTEL.Bufferinstance allocated withBufferUtils.static VkPerformanceValueINTELcreate(long address)Returns a newVkPerformanceValueINTELinstance for the specified memory address.static VkPerformanceValueINTEL.Buffercreate(long address, int capacity)Create aVkPerformanceValueINTEL.Bufferinstance at the specified memory.static VkPerformanceValueINTELcreateSafe(long address)static VkPerformanceValueINTEL.BuffercreateSafe(long address, int capacity)VkPerformanceValueDataINTELdata()Returns aVkPerformanceValueDataINTELview of thedatafield.VkPerformanceValueINTELdata(java.util.function.Consumer<VkPerformanceValueDataINTEL> consumer)Passes thedatafield to the specifiedConsumer.VkPerformanceValueINTELdata(VkPerformanceValueDataINTEL value)Copies the specifiedVkPerformanceValueDataINTELto thedatafield.static VkPerformanceValueINTELmalloc()Returns a newVkPerformanceValueINTELinstance allocated withmemAlloc.static VkPerformanceValueINTEL.Buffermalloc(int capacity)Returns a newVkPerformanceValueINTEL.Bufferinstance allocated withmemAlloc.static VkPerformanceValueINTELmallocStack()Returns a newVkPerformanceValueINTELinstance allocated on the thread-localMemoryStack.static VkPerformanceValueINTEL.BuffermallocStack(int capacity)Returns a newVkPerformanceValueINTEL.Bufferinstance allocated on the thread-localMemoryStack.static VkPerformanceValueINTEL.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceValueINTEL.Bufferinstance allocated on the specifiedMemoryStack.static VkPerformanceValueINTELmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceValueINTELinstance allocated on the specifiedMemoryStack.static VkPerformanceValueDataINTELndata(long struct)Unsafe version ofdata().static voidndata(long struct, VkPerformanceValueDataINTEL value)Unsafe version ofdata.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.VkPerformanceValueINTELset(int type, VkPerformanceValueDataINTEL data)Initializes this struct with the specified values.VkPerformanceValueINTELset(VkPerformanceValueINTEL src)Copies the specified struct data to this struct.intsizeof()inttype()Returns the value of thetypefield.VkPerformanceValueINTELtype(int value)Sets the specified value to thetypefield.
-
-
-
Constructor Detail
-
VkPerformanceValueINTEL
public VkPerformanceValueINTEL(java.nio.ByteBuffer container)
Creates aVkPerformanceValueINTELinstance 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
-
type
public int type()
Returns the value of thetypefield.
-
data
public VkPerformanceValueDataINTEL data()
Returns aVkPerformanceValueDataINTELview of thedatafield.
-
type
public VkPerformanceValueINTEL type(int value)
Sets the specified value to thetypefield.
-
data
public VkPerformanceValueINTEL data(VkPerformanceValueDataINTEL value)
Copies the specifiedVkPerformanceValueDataINTELto thedatafield.
-
data
public VkPerformanceValueINTEL data(java.util.function.Consumer<VkPerformanceValueDataINTEL> consumer)
Passes thedatafield 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 newVkPerformanceValueINTELinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPerformanceValueINTEL calloc()
Returns a newVkPerformanceValueINTELinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPerformanceValueINTEL create()
Returns a newVkPerformanceValueINTELinstance allocated withBufferUtils.
-
create
public static VkPerformanceValueINTEL create(long address)
Returns a newVkPerformanceValueINTELinstance for the specified memory address.
-
createSafe
@Nullable public static VkPerformanceValueINTEL createSafe(long address)
-
malloc
public static VkPerformanceValueINTEL.Buffer malloc(int capacity)
Returns a newVkPerformanceValueINTEL.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPerformanceValueINTEL.Buffer calloc(int capacity)
Returns a newVkPerformanceValueINTEL.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPerformanceValueINTEL.Buffer create(int capacity)
Returns a newVkPerformanceValueINTEL.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPerformanceValueINTEL.Buffer create(long address, int capacity)
Create aVkPerformanceValueINTEL.Bufferinstance 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 newVkPerformanceValueINTELinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPerformanceValueINTEL callocStack()
Returns a newVkPerformanceValueINTELinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPerformanceValueINTEL mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueINTELinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPerformanceValueINTEL callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceValueINTELinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPerformanceValueINTEL.Buffer callocStack(int capacity)
Returns a newVkPerformanceValueINTEL.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-