Package org.lwjgl.vulkan
Class VkObjectTableIndexBufferEntryNVX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkObjectTableIndexBufferEntryNVX
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkObjectTableIndexBufferEntryNVX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Parameters of an object table index buffer entry.Valid Usage
type
must beOBJECT_ENTRY_TYPE_INDEX_BUFFER_NVX
indexType
must beINDEX_TYPE_UINT16
, orINDEX_TYPE_UINT32
Valid Usage (Implicit)
type
must be a validVkObjectEntryTypeNVX
valueflags
must be a valid combination ofVkObjectEntryUsageFlagBitsNVX
valuesflags
must not be 0buffer
must be a validVkBuffer
handleindexType
must be a validVkIndexType
value
Member documentation
buffer
– specifies theVkBuffer
that can be bound as index bufferindexType
– specifies theVkIndexType
used with this index buffer
Layout
struct VkObjectTableIndexBufferEntryNVX { VkObjectEntryTypeNVX type; VkObjectEntryUsageFlagsNVX flags; VkBuffer buffer; VkIndexType indexType; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkObjectTableIndexBufferEntryNVX.Buffer
An array ofVkObjectTableIndexBufferEntryNVX
structs.
-
Constructor Summary
Constructors Constructor Description VkObjectTableIndexBufferEntryNVX(java.nio.ByteBuffer container)
Creates aVkObjectTableIndexBufferEntryNVX
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
buffer()
Returns the value of thebuffer
field.VkObjectTableIndexBufferEntryNVX
buffer(long value)
Sets the specified value to thebuffer
field.static VkObjectTableIndexBufferEntryNVX
calloc()
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated withmemCalloc
.static VkObjectTableIndexBufferEntryNVX.Buffer
calloc(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Buffer
instance allocated withmemCalloc
.static VkObjectTableIndexBufferEntryNVX
callocStack()
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkObjectTableIndexBufferEntryNVX.Buffer
callocStack(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkObjectTableIndexBufferEntryNVX.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableIndexBufferEntryNVX.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkObjectTableIndexBufferEntryNVX
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkObjectTableIndexBufferEntryNVX
create()
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated withBufferUtils
.static VkObjectTableIndexBufferEntryNVX.Buffer
create(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Buffer
instance allocated withBufferUtils
.static VkObjectTableIndexBufferEntryNVX
create(long address)
Returns a newVkObjectTableIndexBufferEntryNVX
instance for the specified memory address.static VkObjectTableIndexBufferEntryNVX.Buffer
create(long address, int capacity)
Create aVkObjectTableIndexBufferEntryNVX.Buffer
instance at the specified memory.static VkObjectTableIndexBufferEntryNVX
createSafe(long address)
static VkObjectTableIndexBufferEntryNVX.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkObjectTableIndexBufferEntryNVX
flags(int value)
Sets the specified value to theflags
field.int
indexType()
Returns the value of theindexType
field.VkObjectTableIndexBufferEntryNVX
indexType(int value)
Sets the specified value to theindexType
field.static VkObjectTableIndexBufferEntryNVX
malloc()
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated withmemAlloc
.static VkObjectTableIndexBufferEntryNVX.Buffer
malloc(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Buffer
instance allocated withmemAlloc
.static VkObjectTableIndexBufferEntryNVX
mallocStack()
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated on the thread-localMemoryStack
.static VkObjectTableIndexBufferEntryNVX.Buffer
mallocStack(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
.static VkObjectTableIndexBufferEntryNVX.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableIndexBufferEntryNVX.Buffer
instance allocated on the specifiedMemoryStack
.static VkObjectTableIndexBufferEntryNVX
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated on the specifiedMemoryStack
.static long
nbuffer(long struct)
Unsafe version ofbuffer()
.static void
nbuffer(long struct, long value)
Unsafe version ofbuffer
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static int
nindexType(long struct)
Unsafe version ofindexType()
.static void
nindexType(long struct, int value)
Unsafe version ofindexType
.static int
ntype(long struct)
Unsafe version oftype()
.static void
ntype(long struct, int value)
Unsafe version oftype
.VkObjectTableIndexBufferEntryNVX
set(int type, int flags, long buffer, int indexType)
Initializes this struct with the specified values.VkObjectTableIndexBufferEntryNVX
set(VkObjectTableIndexBufferEntryNVX src)
Copies the specified struct data to this struct.int
sizeof()
int
type()
Returns the value of thetype
field.VkObjectTableIndexBufferEntryNVX
type(int value)
Sets the specified value to thetype
field.
-
-
-
Constructor Detail
-
VkObjectTableIndexBufferEntryNVX
public VkObjectTableIndexBufferEntryNVX(java.nio.ByteBuffer container)
Creates aVkObjectTableIndexBufferEntryNVX
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.
-
buffer
public long buffer()
Returns the value of thebuffer
field.
-
indexType
public int indexType()
Returns the value of theindexType
field.
-
type
public VkObjectTableIndexBufferEntryNVX type(int value)
Sets the specified value to thetype
field.
-
flags
public VkObjectTableIndexBufferEntryNVX flags(int value)
Sets the specified value to theflags
field.
-
buffer
public VkObjectTableIndexBufferEntryNVX buffer(long value)
Sets the specified value to thebuffer
field.
-
indexType
public VkObjectTableIndexBufferEntryNVX indexType(int value)
Sets the specified value to theindexType
field.
-
set
public VkObjectTableIndexBufferEntryNVX set(int type, int flags, long buffer, int indexType)
Initializes this struct with the specified values.
-
set
public VkObjectTableIndexBufferEntryNVX set(VkObjectTableIndexBufferEntryNVX src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkObjectTableIndexBufferEntryNVX malloc()
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkObjectTableIndexBufferEntryNVX calloc()
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkObjectTableIndexBufferEntryNVX create()
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated withBufferUtils
.
-
create
public static VkObjectTableIndexBufferEntryNVX create(long address)
Returns a newVkObjectTableIndexBufferEntryNVX
instance for the specified memory address.
-
createSafe
@Nullable public static VkObjectTableIndexBufferEntryNVX createSafe(long address)
-
malloc
public static VkObjectTableIndexBufferEntryNVX.Buffer malloc(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkObjectTableIndexBufferEntryNVX.Buffer calloc(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkObjectTableIndexBufferEntryNVX.Buffer create(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkObjectTableIndexBufferEntryNVX.Buffer create(long address, int capacity)
Create aVkObjectTableIndexBufferEntryNVX.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkObjectTableIndexBufferEntryNVX.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkObjectTableIndexBufferEntryNVX mallocStack()
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkObjectTableIndexBufferEntryNVX callocStack()
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkObjectTableIndexBufferEntryNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkObjectTableIndexBufferEntryNVX callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableIndexBufferEntryNVX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkObjectTableIndexBufferEntryNVX.Buffer mallocStack(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkObjectTableIndexBufferEntryNVX.Buffer callocStack(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkObjectTableIndexBufferEntryNVX.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableIndexBufferEntryNVX.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkObjectTableIndexBufferEntryNVX.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableIndexBufferEntryNVX.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()
.
-
nbuffer
public static long nbuffer(long struct)
Unsafe version ofbuffer()
.
-
nindexType
public static int nindexType(long struct)
Unsafe version ofindexType()
.
-
ntype
public static void ntype(long struct, int value)
Unsafe version oftype
.
-
nflags
public static void nflags(long struct, int value)
Unsafe version offlags
.
-
nbuffer
public static void nbuffer(long struct, long value)
Unsafe version ofbuffer
.
-
nindexType
public static void nindexType(long struct, int value)
Unsafe version ofindexType
.
-
-