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.NativeResourceParameters of an object table index buffer entry.Valid Usage
typemust beOBJECT_ENTRY_TYPE_INDEX_BUFFER_NVXindexTypemust beINDEX_TYPE_UINT16, orINDEX_TYPE_UINT32
Valid Usage (Implicit)
typemust be a validVkObjectEntryTypeNVXvalueflagsmust be a valid combination ofVkObjectEntryUsageFlagBitsNVXvaluesflagsmust not be 0buffermust be a validVkBufferhandleindexTypemust be a validVkIndexTypevalue
Member documentation
buffer– specifies theVkBufferthat can be bound as index bufferindexType– specifies theVkIndexTypeused 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 classVkObjectTableIndexBufferEntryNVX.BufferAn array ofVkObjectTableIndexBufferEntryNVXstructs.
-
Constructor Summary
Constructors Constructor Description VkObjectTableIndexBufferEntryNVX(java.nio.ByteBuffer container)Creates aVkObjectTableIndexBufferEntryNVXinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longbuffer()Returns the value of thebufferfield.VkObjectTableIndexBufferEntryNVXbuffer(long value)Sets the specified value to thebufferfield.static VkObjectTableIndexBufferEntryNVXcalloc()Returns a newVkObjectTableIndexBufferEntryNVXinstance allocated withmemCalloc.static VkObjectTableIndexBufferEntryNVX.Buffercalloc(int capacity)Returns a newVkObjectTableIndexBufferEntryNVX.Bufferinstance allocated withmemCalloc.static VkObjectTableIndexBufferEntryNVXcallocStack()Returns a newVkObjectTableIndexBufferEntryNVXinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkObjectTableIndexBufferEntryNVX.BuffercallocStack(int capacity)Returns a newVkObjectTableIndexBufferEntryNVX.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkObjectTableIndexBufferEntryNVX.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkObjectTableIndexBufferEntryNVX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkObjectTableIndexBufferEntryNVXcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkObjectTableIndexBufferEntryNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkObjectTableIndexBufferEntryNVXcreate()Returns a newVkObjectTableIndexBufferEntryNVXinstance allocated withBufferUtils.static VkObjectTableIndexBufferEntryNVX.Buffercreate(int capacity)Returns a newVkObjectTableIndexBufferEntryNVX.Bufferinstance allocated withBufferUtils.static VkObjectTableIndexBufferEntryNVXcreate(long address)Returns a newVkObjectTableIndexBufferEntryNVXinstance for the specified memory address.static VkObjectTableIndexBufferEntryNVX.Buffercreate(long address, int capacity)Create aVkObjectTableIndexBufferEntryNVX.Bufferinstance at the specified memory.static VkObjectTableIndexBufferEntryNVXcreateSafe(long address)static VkObjectTableIndexBufferEntryNVX.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.VkObjectTableIndexBufferEntryNVXflags(int value)Sets the specified value to theflagsfield.intindexType()Returns the value of theindexTypefield.VkObjectTableIndexBufferEntryNVXindexType(int value)Sets the specified value to theindexTypefield.static VkObjectTableIndexBufferEntryNVXmalloc()Returns a newVkObjectTableIndexBufferEntryNVXinstance allocated withmemAlloc.static VkObjectTableIndexBufferEntryNVX.Buffermalloc(int capacity)Returns a newVkObjectTableIndexBufferEntryNVX.Bufferinstance allocated withmemAlloc.static VkObjectTableIndexBufferEntryNVXmallocStack()Returns a newVkObjectTableIndexBufferEntryNVXinstance allocated on the thread-localMemoryStack.static VkObjectTableIndexBufferEntryNVX.BuffermallocStack(int capacity)Returns a newVkObjectTableIndexBufferEntryNVX.Bufferinstance allocated on the thread-localMemoryStack.static VkObjectTableIndexBufferEntryNVX.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkObjectTableIndexBufferEntryNVX.Bufferinstance allocated on the specifiedMemoryStack.static VkObjectTableIndexBufferEntryNVXmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkObjectTableIndexBufferEntryNVXinstance allocated on the specifiedMemoryStack.static longnbuffer(long struct)Unsafe version ofbuffer().static voidnbuffer(long struct, long value)Unsafe version ofbuffer.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intnindexType(long struct)Unsafe version ofindexType().static voidnindexType(long struct, int value)Unsafe version ofindexType.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.VkObjectTableIndexBufferEntryNVXset(int type, int flags, long buffer, int indexType)Initializes this struct with the specified values.VkObjectTableIndexBufferEntryNVXset(VkObjectTableIndexBufferEntryNVX src)Copies the specified struct data to this struct.intsizeof()inttype()Returns the value of thetypefield.VkObjectTableIndexBufferEntryNVXtype(int value)Sets the specified value to thetypefield.
-
-
-
Constructor Detail
-
VkObjectTableIndexBufferEntryNVX
public VkObjectTableIndexBufferEntryNVX(java.nio.ByteBuffer container)
Creates aVkObjectTableIndexBufferEntryNVXinstance 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.
-
flags
public int flags()
Returns the value of theflagsfield.
-
buffer
public long buffer()
Returns the value of thebufferfield.
-
indexType
public int indexType()
Returns the value of theindexTypefield.
-
type
public VkObjectTableIndexBufferEntryNVX type(int value)
Sets the specified value to thetypefield.
-
flags
public VkObjectTableIndexBufferEntryNVX flags(int value)
Sets the specified value to theflagsfield.
-
buffer
public VkObjectTableIndexBufferEntryNVX buffer(long value)
Sets the specified value to thebufferfield.
-
indexType
public VkObjectTableIndexBufferEntryNVX indexType(int value)
Sets the specified value to theindexTypefield.
-
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 newVkObjectTableIndexBufferEntryNVXinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkObjectTableIndexBufferEntryNVX calloc()
Returns a newVkObjectTableIndexBufferEntryNVXinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkObjectTableIndexBufferEntryNVX create()
Returns a newVkObjectTableIndexBufferEntryNVXinstance allocated withBufferUtils.
-
create
public static VkObjectTableIndexBufferEntryNVX create(long address)
Returns a newVkObjectTableIndexBufferEntryNVXinstance for the specified memory address.
-
createSafe
@Nullable public static VkObjectTableIndexBufferEntryNVX createSafe(long address)
-
malloc
public static VkObjectTableIndexBufferEntryNVX.Buffer malloc(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkObjectTableIndexBufferEntryNVX.Buffer calloc(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkObjectTableIndexBufferEntryNVX.Buffer create(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkObjectTableIndexBufferEntryNVX.Buffer create(long address, int capacity)
Create aVkObjectTableIndexBufferEntryNVX.Bufferinstance 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 newVkObjectTableIndexBufferEntryNVXinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkObjectTableIndexBufferEntryNVX callocStack()
Returns a newVkObjectTableIndexBufferEntryNVXinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkObjectTableIndexBufferEntryNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableIndexBufferEntryNVXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkObjectTableIndexBufferEntryNVX callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableIndexBufferEntryNVXinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkObjectTableIndexBufferEntryNVX.Buffer callocStack(int capacity)
Returns a newVkObjectTableIndexBufferEntryNVX.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.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().
-
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.
-
-