Package org.lwjgl.vulkan
Class VkObjectTableEntryNVX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkObjectTableEntryNVX
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkObjectTableEntryNVX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Common parameters of an object table resource entry.Valid Usage
- If the
VkDeviceGeneratedCommandsFeaturesNVX
::computeBindingPointSupport
feature is not enabled,flags
must not containOBJECT_ENTRY_USAGE_COMPUTE_BIT_NVX
Valid Usage (Implicit)
type
must be a validVkObjectEntryTypeNVX
valueflags
must be a valid combination ofVkObjectEntryUsageFlagBitsNVX
valuesflags
must not be 0
See Also
Member documentation
type
– defines the entry typeflags
– defines whichVkPipelineBindPoint
the resource can be used with. Some entry types allow only a single flag to be set.
Layout
struct VkObjectTableEntryNVX { VkObjectEntryTypeNVX type; VkObjectEntryUsageFlagsNVX flags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkObjectTableEntryNVX.Buffer
An array ofVkObjectTableEntryNVX
structs.
-
Constructor Summary
Constructors Constructor Description VkObjectTableEntryNVX(java.nio.ByteBuffer container)
Creates aVkObjectTableEntryNVX
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 VkObjectTableEntryNVX
calloc()
Returns a newVkObjectTableEntryNVX
instance allocated withmemCalloc
.static VkObjectTableEntryNVX.Buffer
calloc(int capacity)
Returns a newVkObjectTableEntryNVX.Buffer
instance allocated withmemCalloc
.static VkObjectTableEntryNVX
callocStack()
Returns a newVkObjectTableEntryNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkObjectTableEntryNVX.Buffer
callocStack(int capacity)
Returns a newVkObjectTableEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkObjectTableEntryNVX.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableEntryNVX.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkObjectTableEntryNVX
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableEntryNVX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkObjectTableEntryNVX
create()
Returns a newVkObjectTableEntryNVX
instance allocated withBufferUtils
.static VkObjectTableEntryNVX.Buffer
create(int capacity)
Returns a newVkObjectTableEntryNVX.Buffer
instance allocated withBufferUtils
.static VkObjectTableEntryNVX
create(long address)
Returns a newVkObjectTableEntryNVX
instance for the specified memory address.static VkObjectTableEntryNVX.Buffer
create(long address, int capacity)
Create aVkObjectTableEntryNVX.Buffer
instance at the specified memory.static VkObjectTableEntryNVX
createSafe(long address)
static VkObjectTableEntryNVX.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkObjectTableEntryNVX
flags(int value)
Sets the specified value to theflags
field.static VkObjectTableEntryNVX
malloc()
Returns a newVkObjectTableEntryNVX
instance allocated withmemAlloc
.static VkObjectTableEntryNVX.Buffer
malloc(int capacity)
Returns a newVkObjectTableEntryNVX.Buffer
instance allocated withmemAlloc
.static VkObjectTableEntryNVX
mallocStack()
Returns a newVkObjectTableEntryNVX
instance allocated on the thread-localMemoryStack
.static VkObjectTableEntryNVX.Buffer
mallocStack(int capacity)
Returns a newVkObjectTableEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
.static VkObjectTableEntryNVX.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableEntryNVX.Buffer
instance allocated on the specifiedMemoryStack
.static VkObjectTableEntryNVX
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableEntryNVX
instance allocated on the specifiedMemoryStack
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static int
ntype(long struct)
Unsafe version oftype()
.static void
ntype(long struct, int value)
Unsafe version oftype
.VkObjectTableEntryNVX
set(int type, int flags)
Initializes this struct with the specified values.VkObjectTableEntryNVX
set(VkObjectTableEntryNVX src)
Copies the specified struct data to this struct.int
sizeof()
int
type()
Returns the value of thetype
field.VkObjectTableEntryNVX
type(int value)
Sets the specified value to thetype
field.
-
-
-
Constructor Detail
-
VkObjectTableEntryNVX
public VkObjectTableEntryNVX(java.nio.ByteBuffer container)
Creates aVkObjectTableEntryNVX
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.
-
flags
public int flags()
Returns the value of theflags
field.
-
type
public VkObjectTableEntryNVX type(int value)
Sets the specified value to thetype
field.
-
flags
public VkObjectTableEntryNVX flags(int value)
Sets the specified value to theflags
field.
-
set
public VkObjectTableEntryNVX set(int type, int flags)
Initializes this struct with the specified values.
-
set
public VkObjectTableEntryNVX set(VkObjectTableEntryNVX src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkObjectTableEntryNVX malloc()
Returns a newVkObjectTableEntryNVX
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkObjectTableEntryNVX calloc()
Returns a newVkObjectTableEntryNVX
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkObjectTableEntryNVX create()
Returns a newVkObjectTableEntryNVX
instance allocated withBufferUtils
.
-
create
public static VkObjectTableEntryNVX create(long address)
Returns a newVkObjectTableEntryNVX
instance for the specified memory address.
-
createSafe
@Nullable public static VkObjectTableEntryNVX createSafe(long address)
-
malloc
public static VkObjectTableEntryNVX.Buffer malloc(int capacity)
Returns a newVkObjectTableEntryNVX.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkObjectTableEntryNVX.Buffer calloc(int capacity)
Returns a newVkObjectTableEntryNVX.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkObjectTableEntryNVX.Buffer create(int capacity)
Returns a newVkObjectTableEntryNVX.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkObjectTableEntryNVX.Buffer create(long address, int capacity)
Create aVkObjectTableEntryNVX.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkObjectTableEntryNVX.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkObjectTableEntryNVX mallocStack()
Returns a newVkObjectTableEntryNVX
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkObjectTableEntryNVX callocStack()
Returns a newVkObjectTableEntryNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkObjectTableEntryNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableEntryNVX
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkObjectTableEntryNVX callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableEntryNVX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkObjectTableEntryNVX.Buffer mallocStack(int capacity)
Returns a newVkObjectTableEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkObjectTableEntryNVX.Buffer callocStack(int capacity)
Returns a newVkObjectTableEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkObjectTableEntryNVX.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableEntryNVX.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkObjectTableEntryNVX.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableEntryNVX.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()
.
-
nflags
public static int nflags(long struct)
Unsafe version offlags()
.
-
ntype
public static void ntype(long struct, int value)
Unsafe version oftype
.
-
nflags
public static void nflags(long struct, int value)
Unsafe version offlags
.
-
-