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.NativeResource
Parameters of an object table vertex buffer entry.Valid Usage
type
must beOBJECT_ENTRY_TYPE_VERTEX_BUFFER_NVX
Valid Usage (Implicit)
type
must be a validVkObjectEntryTypeNVX
valueflags
must be a valid combination ofVkObjectEntryUsageFlagBitsNVX
valuesflags
must not be 0buffer
must be a validVkBuffer
handle
Member documentation
buffer
– specifies theVkBuffer
that 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 class
VkObjectTableVertexBufferEntryNVX.Buffer
An array ofVkObjectTableVertexBufferEntryNVX
structs.
-
Constructor Summary
Constructors Constructor Description VkObjectTableVertexBufferEntryNVX(java.nio.ByteBuffer container)
Creates aVkObjectTableVertexBufferEntryNVX
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.VkObjectTableVertexBufferEntryNVX
buffer(long value)
Sets the specified value to thebuffer
field.static VkObjectTableVertexBufferEntryNVX
calloc()
Returns a newVkObjectTableVertexBufferEntryNVX
instance allocated withmemCalloc
.static VkObjectTableVertexBufferEntryNVX.Buffer
calloc(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Buffer
instance allocated withmemCalloc
.static VkObjectTableVertexBufferEntryNVX
callocStack()
Returns a newVkObjectTableVertexBufferEntryNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkObjectTableVertexBufferEntryNVX.Buffer
callocStack(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkObjectTableVertexBufferEntryNVX.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableVertexBufferEntryNVX.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkObjectTableVertexBufferEntryNVX
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableVertexBufferEntryNVX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkObjectTableVertexBufferEntryNVX
create()
Returns a newVkObjectTableVertexBufferEntryNVX
instance allocated withBufferUtils
.static VkObjectTableVertexBufferEntryNVX.Buffer
create(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Buffer
instance allocated withBufferUtils
.static VkObjectTableVertexBufferEntryNVX
create(long address)
Returns a newVkObjectTableVertexBufferEntryNVX
instance for the specified memory address.static VkObjectTableVertexBufferEntryNVX.Buffer
create(long address, int capacity)
Create aVkObjectTableVertexBufferEntryNVX.Buffer
instance at the specified memory.static VkObjectTableVertexBufferEntryNVX
createSafe(long address)
static VkObjectTableVertexBufferEntryNVX.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkObjectTableVertexBufferEntryNVX
flags(int value)
Sets the specified value to theflags
field.static VkObjectTableVertexBufferEntryNVX
malloc()
Returns a newVkObjectTableVertexBufferEntryNVX
instance allocated withmemAlloc
.static VkObjectTableVertexBufferEntryNVX.Buffer
malloc(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Buffer
instance allocated withmemAlloc
.static VkObjectTableVertexBufferEntryNVX
mallocStack()
Returns a newVkObjectTableVertexBufferEntryNVX
instance allocated on the thread-localMemoryStack
.static VkObjectTableVertexBufferEntryNVX.Buffer
mallocStack(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
.static VkObjectTableVertexBufferEntryNVX.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableVertexBufferEntryNVX.Buffer
instance allocated on the specifiedMemoryStack
.static VkObjectTableVertexBufferEntryNVX
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableVertexBufferEntryNVX
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
ntype(long struct)
Unsafe version oftype()
.static void
ntype(long struct, int value)
Unsafe version oftype
.VkObjectTableVertexBufferEntryNVX
set(int type, int flags, long buffer)
Initializes this struct with the specified values.VkObjectTableVertexBufferEntryNVX
set(VkObjectTableVertexBufferEntryNVX src)
Copies the specified struct data to this struct.int
sizeof()
int
type()
Returns the value of thetype
field.VkObjectTableVertexBufferEntryNVX
type(int value)
Sets the specified value to thetype
field.
-
-
-
Constructor Detail
-
VkObjectTableVertexBufferEntryNVX
public VkObjectTableVertexBufferEntryNVX(java.nio.ByteBuffer container)
Creates aVkObjectTableVertexBufferEntryNVX
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.
-
type
public VkObjectTableVertexBufferEntryNVX type(int value)
Sets the specified value to thetype
field.
-
flags
public VkObjectTableVertexBufferEntryNVX flags(int value)
Sets the specified value to theflags
field.
-
buffer
public VkObjectTableVertexBufferEntryNVX buffer(long value)
Sets the specified value to thebuffer
field.
-
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 newVkObjectTableVertexBufferEntryNVX
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkObjectTableVertexBufferEntryNVX calloc()
Returns a newVkObjectTableVertexBufferEntryNVX
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkObjectTableVertexBufferEntryNVX create()
Returns a newVkObjectTableVertexBufferEntryNVX
instance allocated withBufferUtils
.
-
create
public static VkObjectTableVertexBufferEntryNVX create(long address)
Returns a newVkObjectTableVertexBufferEntryNVX
instance for the specified memory address.
-
createSafe
@Nullable public static VkObjectTableVertexBufferEntryNVX createSafe(long address)
-
malloc
public static VkObjectTableVertexBufferEntryNVX.Buffer malloc(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkObjectTableVertexBufferEntryNVX.Buffer calloc(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkObjectTableVertexBufferEntryNVX.Buffer create(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkObjectTableVertexBufferEntryNVX.Buffer create(long address, int capacity)
Create aVkObjectTableVertexBufferEntryNVX.Buffer
instance 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 newVkObjectTableVertexBufferEntryNVX
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkObjectTableVertexBufferEntryNVX callocStack()
Returns a newVkObjectTableVertexBufferEntryNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkObjectTableVertexBufferEntryNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableVertexBufferEntryNVX
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkObjectTableVertexBufferEntryNVX callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkObjectTableVertexBufferEntryNVX
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkObjectTableVertexBufferEntryNVX.Buffer callocStack(int capacity)
Returns a newVkObjectTableVertexBufferEntryNVX.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.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()
.
-
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
.
-
-