public class VkVertexInputBindingDivisorDescriptionEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If this structure is not used to define a divisor value for an attribute then the divisor has a logical default value of 1.
binding must be less than VkPhysicalDeviceLimits::maxVertexInputBindingsvertexAttributeInstanceRateZeroDivisor feature is not enabled, divisor must not be 0vertexAttributeInstanceRateDivisor feature is not enabled, divisor must be 1divisor must be a value between 0 and VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT::maxVertexAttribDivisor, inclusive.VkVertexInputBindingDescription::inputRate must be of type VERTEX_INPUT_RATE_INSTANCE for this binding.VkPipelineVertexInputDivisorStateCreateInfoEXT
binding – the binding number for which the divisor is specified.divisor – the number of successive instances that will use the same value of the vertex attribute when instanced rendering is enabled. For example, if the divisor is N, the same vertex attribute will be applied to N successive instances before moving on to the next vertex attribute. The maximum value of divisor is implementation dependent and can be queried using VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT::maxVertexAttribDivisor. A value of 0 can be used for the divisor if the vertexAttributeInstanceRateZeroDivisor feature is enabled. In this case, the same vertex attribute will be applied to all instances.
struct VkVertexInputBindingDivisorDescriptionEXT {
uint32_t binding;
uint32_t divisor;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkVertexInputBindingDivisorDescriptionEXT.Buffer
An array of
VkVertexInputBindingDivisorDescriptionEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BINDING
The struct member offsets.
|
static int |
DIVISOR
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkVertexInputBindingDivisorDescriptionEXT(java.nio.ByteBuffer container)
Creates a
VkVertexInputBindingDivisorDescriptionEXT 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. |
VkVertexInputBindingDivisorDescriptionEXT |
binding(int value)
Sets the specified value to the
binding field. |
static VkVertexInputBindingDivisorDescriptionEXT |
calloc()
Returns a new
VkVertexInputBindingDivisorDescriptionEXT instance allocated with memCalloc. |
static VkVertexInputBindingDivisorDescriptionEXT.Buffer |
calloc(int capacity)
Returns a new
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance allocated with memCalloc. |
static VkVertexInputBindingDivisorDescriptionEXT |
callocStack()
Returns a new
VkVertexInputBindingDivisorDescriptionEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkVertexInputBindingDivisorDescriptionEXT.Buffer |
callocStack(int capacity)
Returns a new
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkVertexInputBindingDivisorDescriptionEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkVertexInputBindingDivisorDescriptionEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkVertexInputBindingDivisorDescriptionEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkVertexInputBindingDivisorDescriptionEXT |
create()
Returns a new
VkVertexInputBindingDivisorDescriptionEXT instance allocated with BufferUtils. |
static VkVertexInputBindingDivisorDescriptionEXT.Buffer |
create(int capacity)
Returns a new
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance allocated with BufferUtils. |
static VkVertexInputBindingDivisorDescriptionEXT |
create(long address)
Returns a new
VkVertexInputBindingDivisorDescriptionEXT instance for the specified memory address. |
static VkVertexInputBindingDivisorDescriptionEXT.Buffer |
create(long address,
int capacity)
Create a
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance at the specified memory. |
static VkVertexInputBindingDivisorDescriptionEXT |
createSafe(long address)
|
static VkVertexInputBindingDivisorDescriptionEXT.Buffer |
createSafe(long address,
int capacity)
|
int |
divisor()
Returns the value of the
divisor field. |
VkVertexInputBindingDivisorDescriptionEXT |
divisor(int value)
Sets the specified value to the
divisor field. |
static VkVertexInputBindingDivisorDescriptionEXT |
malloc()
Returns a new
VkVertexInputBindingDivisorDescriptionEXT instance allocated with memAlloc. |
static VkVertexInputBindingDivisorDescriptionEXT.Buffer |
malloc(int capacity)
Returns a new
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance allocated with memAlloc. |
static VkVertexInputBindingDivisorDescriptionEXT |
mallocStack()
Returns a new
VkVertexInputBindingDivisorDescriptionEXT instance allocated on the thread-local MemoryStack. |
static VkVertexInputBindingDivisorDescriptionEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkVertexInputBindingDivisorDescriptionEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance allocated on the specified MemoryStack. |
static VkVertexInputBindingDivisorDescriptionEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkVertexInputBindingDivisorDescriptionEXT 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 |
ndivisor(long struct)
Unsafe version of
divisor(). |
static void |
ndivisor(long struct,
int value)
Unsafe version of
divisor. |
VkVertexInputBindingDivisorDescriptionEXT |
set(int binding,
int divisor)
Initializes this struct with the specified values.
|
VkVertexInputBindingDivisorDescriptionEXT |
set(VkVertexInputBindingDivisorDescriptionEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BINDING
public static final int DIVISOR
public VkVertexInputBindingDivisorDescriptionEXT(java.nio.ByteBuffer container)
VkVertexInputBindingDivisorDescriptionEXT 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 divisor()
divisor field.public VkVertexInputBindingDivisorDescriptionEXT binding(int value)
binding field.public VkVertexInputBindingDivisorDescriptionEXT divisor(int value)
divisor field.public VkVertexInputBindingDivisorDescriptionEXT set(int binding, int divisor)
public VkVertexInputBindingDivisorDescriptionEXT set(VkVertexInputBindingDivisorDescriptionEXT src)
src - the source structpublic static VkVertexInputBindingDivisorDescriptionEXT malloc()
VkVertexInputBindingDivisorDescriptionEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkVertexInputBindingDivisorDescriptionEXT calloc()
VkVertexInputBindingDivisorDescriptionEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkVertexInputBindingDivisorDescriptionEXT create()
VkVertexInputBindingDivisorDescriptionEXT instance allocated with BufferUtils.public static VkVertexInputBindingDivisorDescriptionEXT create(long address)
VkVertexInputBindingDivisorDescriptionEXT instance for the specified memory address.@Nullable public static VkVertexInputBindingDivisorDescriptionEXT createSafe(long address)
public static VkVertexInputBindingDivisorDescriptionEXT.Buffer malloc(int capacity)
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkVertexInputBindingDivisorDescriptionEXT.Buffer calloc(int capacity)
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkVertexInputBindingDivisorDescriptionEXT.Buffer create(int capacity)
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkVertexInputBindingDivisorDescriptionEXT.Buffer create(long address, int capacity)
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkVertexInputBindingDivisorDescriptionEXT.Buffer createSafe(long address, int capacity)
public static VkVertexInputBindingDivisorDescriptionEXT mallocStack()
VkVertexInputBindingDivisorDescriptionEXT instance allocated on the thread-local MemoryStack.public static VkVertexInputBindingDivisorDescriptionEXT callocStack()
VkVertexInputBindingDivisorDescriptionEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkVertexInputBindingDivisorDescriptionEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkVertexInputBindingDivisorDescriptionEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkVertexInputBindingDivisorDescriptionEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkVertexInputBindingDivisorDescriptionEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkVertexInputBindingDivisorDescriptionEXT.Buffer mallocStack(int capacity)
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkVertexInputBindingDivisorDescriptionEXT.Buffer callocStack(int capacity)
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkVertexInputBindingDivisorDescriptionEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkVertexInputBindingDivisorDescriptionEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkVertexInputBindingDivisorDescriptionEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkVertexInputBindingDivisorDescriptionEXT.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 ndivisor(long struct)
divisor().public static void nbinding(long struct,
int value)
binding.public static void ndivisor(long struct,
int value)
divisor.Copyright LWJGL. All Rights Reserved. License terms.