public class VkVertexInputBindingDescription
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
binding must be less than VkPhysicalDeviceLimits::maxVertexInputBindingsstride must be less than or equal to VkPhysicalDeviceLimits::maxVertexInputBindingStrideinputRate must be a valid VkVertexInputRate valueVkPipelineVertexInputStateCreateInfo
binding – the binding number that this structure describes.stride – the distance in bytes between two consecutive elements within the buffer.inputRate – a VkVertexInputRate value specifying whether vertex attribute addressing is a function of the vertex index or of the instance index.
struct VkVertexInputBindingDescription {
uint32_t binding;
uint32_t stride;
VkVertexInputRate inputRate;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkVertexInputBindingDescription.Buffer
An array of
VkVertexInputBindingDescription structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BINDING
The struct member offsets.
|
static int |
INPUTRATE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STRIDE
The struct member offsets.
|
| Constructor and Description |
|---|
VkVertexInputBindingDescription(java.nio.ByteBuffer container)
Creates a
VkVertexInputBindingDescription instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
binding()
Returns the value of the
binding field. |
VkVertexInputBindingDescription |
binding(int value)
Sets the specified value to the
binding field. |
static VkVertexInputBindingDescription |
calloc()
Returns a new
VkVertexInputBindingDescription instance allocated with memCalloc. |
static VkVertexInputBindingDescription.Buffer |
calloc(int capacity)
Returns a new
VkVertexInputBindingDescription.Buffer instance allocated with memCalloc. |
static VkVertexInputBindingDescription |
callocStack()
Returns a new
VkVertexInputBindingDescription instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkVertexInputBindingDescription.Buffer |
callocStack(int capacity)
Returns a new
VkVertexInputBindingDescription.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkVertexInputBindingDescription.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkVertexInputBindingDescription.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkVertexInputBindingDescription |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkVertexInputBindingDescription instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkVertexInputBindingDescription |
create()
Returns a new
VkVertexInputBindingDescription instance allocated with BufferUtils. |
static VkVertexInputBindingDescription.Buffer |
create(int capacity)
Returns a new
VkVertexInputBindingDescription.Buffer instance allocated with BufferUtils. |
static VkVertexInputBindingDescription |
create(long address)
Returns a new
VkVertexInputBindingDescription instance for the specified memory address. |
static VkVertexInputBindingDescription.Buffer |
create(long address,
int capacity)
Create a
VkVertexInputBindingDescription.Buffer instance at the specified memory. |
static VkVertexInputBindingDescription |
createSafe(long address)
|
static VkVertexInputBindingDescription.Buffer |
createSafe(long address,
int capacity)
|
int |
inputRate()
Returns the value of the
inputRate field. |
VkVertexInputBindingDescription |
inputRate(int value)
Sets the specified value to the
inputRate field. |
static VkVertexInputBindingDescription |
malloc()
Returns a new
VkVertexInputBindingDescription instance allocated with memAlloc. |
static VkVertexInputBindingDescription.Buffer |
malloc(int capacity)
Returns a new
VkVertexInputBindingDescription.Buffer instance allocated with memAlloc. |
static VkVertexInputBindingDescription |
mallocStack()
Returns a new
VkVertexInputBindingDescription instance allocated on the thread-local MemoryStack. |
static VkVertexInputBindingDescription.Buffer |
mallocStack(int capacity)
Returns a new
VkVertexInputBindingDescription.Buffer instance allocated on the thread-local MemoryStack. |
static VkVertexInputBindingDescription.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkVertexInputBindingDescription.Buffer instance allocated on the specified MemoryStack. |
static VkVertexInputBindingDescription |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkVertexInputBindingDescription instance allocated on the specified MemoryStack. |
static int |
nbinding(long struct)
Unsafe version of
binding(). |
static void |
nbinding(long struct,
int value)
Unsafe version of
binding. |
static int |
ninputRate(long struct)
Unsafe version of
inputRate(). |
static void |
ninputRate(long struct,
int value)
Unsafe version of
inputRate. |
static int |
nstride(long struct)
Unsafe version of
stride(). |
static void |
nstride(long struct,
int value)
Unsafe version of
stride. |
VkVertexInputBindingDescription |
set(int binding,
int stride,
int inputRate)
Initializes this struct with the specified values.
|
VkVertexInputBindingDescription |
set(VkVertexInputBindingDescription src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
stride()
Returns the value of the
stride field. |
VkVertexInputBindingDescription |
stride(int value)
Sets the specified value to the
stride field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BINDING
public static final int STRIDE
public static final int INPUTRATE
public VkVertexInputBindingDescription(java.nio.ByteBuffer container)
VkVertexInputBindingDescription instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int binding()
binding field.public int stride()
stride field.public int inputRate()
inputRate field.public VkVertexInputBindingDescription binding(int value)
binding field.public VkVertexInputBindingDescription stride(int value)
stride field.public VkVertexInputBindingDescription inputRate(int value)
inputRate field.public VkVertexInputBindingDescription set(int binding, int stride, int inputRate)
public VkVertexInputBindingDescription set(VkVertexInputBindingDescription src)
src - the source structpublic static VkVertexInputBindingDescription malloc()
VkVertexInputBindingDescription instance allocated with memAlloc. The instance must be explicitly freed.public static VkVertexInputBindingDescription calloc()
VkVertexInputBindingDescription instance allocated with memCalloc. The instance must be explicitly freed.public static VkVertexInputBindingDescription create()
VkVertexInputBindingDescription instance allocated with BufferUtils.public static VkVertexInputBindingDescription create(long address)
VkVertexInputBindingDescription instance for the specified memory address.@Nullable public static VkVertexInputBindingDescription createSafe(long address)
public static VkVertexInputBindingDescription.Buffer malloc(int capacity)
VkVertexInputBindingDescription.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkVertexInputBindingDescription.Buffer calloc(int capacity)
VkVertexInputBindingDescription.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkVertexInputBindingDescription.Buffer create(int capacity)
VkVertexInputBindingDescription.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkVertexInputBindingDescription.Buffer create(long address, int capacity)
VkVertexInputBindingDescription.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkVertexInputBindingDescription.Buffer createSafe(long address, int capacity)
public static VkVertexInputBindingDescription mallocStack()
VkVertexInputBindingDescription instance allocated on the thread-local MemoryStack.public static VkVertexInputBindingDescription callocStack()
VkVertexInputBindingDescription instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkVertexInputBindingDescription mallocStack(org.lwjgl.system.MemoryStack stack)
VkVertexInputBindingDescription instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkVertexInputBindingDescription callocStack(org.lwjgl.system.MemoryStack stack)
VkVertexInputBindingDescription instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkVertexInputBindingDescription.Buffer mallocStack(int capacity)
VkVertexInputBindingDescription.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkVertexInputBindingDescription.Buffer callocStack(int capacity)
VkVertexInputBindingDescription.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkVertexInputBindingDescription.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkVertexInputBindingDescription.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkVertexInputBindingDescription.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkVertexInputBindingDescription.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nbinding(long struct)
binding().public static int nstride(long struct)
stride().public static int ninputRate(long struct)
inputRate().public static void nbinding(long struct,
int value)
binding.public static void nstride(long struct,
int value)
stride.public static void ninputRate(long struct,
int value)
inputRate.Copyright LWJGL. All Rights Reserved. License terms.