Package org.lwjgl.vulkan
Class VkObjectTableVertexBufferEntryNVX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkObjectTableVertexBufferEntryNVX
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkObjectTableVertexBufferEntryNVX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceParameters of an object table vertex buffer entry.Valid Usage
typemust beOBJECT_ENTRY_TYPE_VERTEX_BUFFER_NVX
Valid Usage (Implicit)
typemust be a validVkObjectEntryTypeNVXvalueflagsmust be a valid combination ofVkObjectEntryUsageFlagBitsNVXvaluesflagsmust not be 0buffermust be a validVkBufferhandle
Member documentation
buffer– specifies theVkBufferthat can be bound as vertex bufer
Layout
struct VkObjectTableVertexBufferEntryNVX { VkObjectEntryTypeNVX type; VkObjectEntryUsageFlagsNVX flags; VkBuffer buffer; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkObjectTableVertexBufferEntryNVX.BufferAn array ofVkObjectTableVertexBufferEntryNVXstructs.
-
Constructor Summary
Constructors Constructor Description VkObjectTableVertexBufferEntryNVX(java.nio.ByteBuffer container)Creates aVkObjectTableVertexBufferEntryNVXinstance 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.VkObjectTableVertexBufferEntryNVXbuffer(long value)Sets the specified value to thebufferfield.static VkObjectTableVertexBufferEntryNVXcalloc()Returns a newVkObjectTableVertexBufferEntryNVXinstance allocated withmemCalloc.static VkObjectTableVertexBufferEntryNVX.Buffercalloc(int capacity)Returns a newVkObjectTableVertexBufferEntryNVX.Bufferinstance allocated withmemCalloc.static VkObjectTableVertexBufferEntryNVXcallocStack()Returns a newVkObjectTableVertexBufferEntryNVXinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkObjectTableVertexBufferEntryNVX.BuffercallocStack(int capacity)Returns a newVkObjectTableVertexBufferEntryNVX.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkObjectTableVertexBufferEntryNVX.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkObjectTableVertexBufferEntryNVX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkObjectTableVertexBufferEntryNVXcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkObjectTableVertexBufferEntryNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkObjectTableVertexBufferEntryNVXcreate()Returns a newVkObjectTableVertexBufferEntryNVXinstance allocated withBufferUtils.static VkObjectTableVertexBufferEntryNVX.Buffercreate(int capacity)Returns a newVkObjectTableVertexBufferEntryNVX.Bufferinstance allocated withBufferUtils.static VkObjectTableVertexBufferEntryNVXcreate(long address)Returns a newVkObjectTableVertexBufferEntryNVXinstance for the specified memory address.static VkObjectTableVertexBufferEntryNVX.Buffercreate(long address, int capacity)Create aVkObjectTableVertexBufferEntryNVX.Bufferinstance at the specified memory.static VkObjectTableVertexBufferEntryNVXcreateSafe(long address)static VkObjectTableVertexBufferEntryNVX.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.VkObjectTableVertexBufferEntryNVXflags(int value)Sets the specified value to theflagsfield.static VkObjectTableVertexBufferEntryNVXmalloc()Returns a newVkObjectTableVertexBufferEntryNVXinstance allocated withmemAlloc.static VkObjectTableVertexBufferEntryNVX.Buffermalloc(int capacity)Returns a newVkObjectTableVertexBufferEntryNVX.Bufferinstance allocated withmemAlloc.static VkObjectTableVertexBufferEntryNVXmallocStack()Returns a newVkObjectTableVertexBufferEntryNVXinstance allocated on the thread-localMemoryStack.static VkObjectTableVertexBufferEntryNVX.BuffermallocStack(int capacity)Returns a newVkObjectTableVertexBufferEntryNVX.Bufferinstance allocated on the thread-localMemoryStack.static VkObjectTableVertexBufferEntryNVX.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkObjectTableVertexBufferEntryNVX.Bufferinstance allocated on the specifiedMemoryStack.static VkObjectTableVertexBufferEntryNVXmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkObjectTableVertexBufferEntryNVXinstance 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 intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.VkObjectTableVertexBufferEntryNVXset(int type, int flags, long buffer)Initializes this struct with the specified values.VkObjectTableVertexBufferEntryNVXset(VkObjectTableVertexBufferEntryNVX src)Copies the specified struct data to this struct.intsizeof()inttype()Returns the value of thetypefield.VkObjectTableVertexBufferEntryNVXtype(int value)Sets the specified value to thetypefield.
-
-
-
Constructor Detail
-
VkObjectTableVertexBufferEntryNVX
public VkObjectTableVertexBufferEntryNVX(java.nio.ByteBuffer container)
Creates aVkObjectTableVertexBufferEntryNVXinstance 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.
-
type
public VkObjectTableVertexBufferEntryNVX type(int value)
Sets the specified value to thetypefield.
-
flags
public VkObjectTableVertexBufferEntryNVX flags(int value)
Sets the specified value to theflagsfield.
-
buffer
public VkObjectTableVertexBufferEntryNVX buffer(long value)
Sets the specified value to thebufferfield.
-
set
public VkObjectTableVertexBufferEntryNVX set(int type, int flags, long buffer)
Initializes this struct with the specified values.
-
set
public VkObjectTableVertexBufferEntryNVX set(VkObjectTableVertexBufferEntryNVX src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkObjectTableVertexBufferEntryNVX malloc()
Returns a newVkObjectTableVertexBufferEntryNVXinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkObjectTableVertexBufferEntryNVX calloc()
Returns a newVkObjectTableVertexBufferEntryNVXinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkObjectTableVertexBufferEntryNVX create()
Returns a newVkObjectTableVertexBufferEntryNVXinstance allocated withBufferUtils.
-
create
public static VkObjectTableVertexBufferEntryNVX create(long address)
Returns a newVkObjectTableVertexBufferEntryNVXinstance for the specified memory address.
-
createSafe
@Nullable public static VkObjectTableVertexBufferEntryNVX createSafe(long address)
-
malloc
public static VkObjectTableVertexBufferEntryNVX.Buffer malloc(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkObjectTableVertexBufferEntryNVX.Buffer calloc(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkObjectTableVertexBufferEntryNVX.Buffer create(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkObjectTableVertexBufferEntryNVX.Buffer create(long address, int capacity)
Create aVkObjectTableVertexBufferEntryNVX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkObjectTableVertexBufferEntryNVX.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkObjectTableVertexBufferEntryNVX mallocStack()
Returns a newVkObjectTableVertexBufferEntryNVXinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkObjectTableVertexBufferEntryNVX callocStack()
Returns a newVkObjectTableVertexBufferEntryNVXinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkObjectTableVertexBufferEntryNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableVertexBufferEntryNVXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkObjectTableVertexBufferEntryNVX callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableVertexBufferEntryNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkObjectTableVertexBufferEntryNVX.Buffer mallocStack(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkObjectTableVertexBufferEntryNVX.Buffer callocStack(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkObjectTableVertexBufferEntryNVX.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableVertexBufferEntryNVX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkObjectTableVertexBufferEntryNVX.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableVertexBufferEntryNVX.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().
-
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.
-
-