Package org.lwjgl.vulkan
Class VkVertexInputBindingDescription2EXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVertexInputBindingDescription2EXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVertexInputBindingDescription2EXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the extended vertex input binding description.Valid Usage
bindingmust be less thanVkPhysicalDeviceLimits::maxVertexInputBindingsstridemust be less than or equal toVkPhysicalDeviceLimits::maxVertexInputBindingStride- If the vertexAttributeInstanceRateZeroDivisor feature is not enabled,
divisormust not be 0 - If the vertexAttributeInstanceRateDivisor feature is not enabled,
divisormust be 1 divisormust be a value between 0 andVkPhysicalDeviceVertexAttributeDivisorPropertiesEXT::maxVertexAttribDivisor, inclusive- If
divisoris not 1 theninputRatemust be of typeVERTEX_INPUT_RATE_INSTANCE
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VERTEX_INPUT_BINDING_DESCRIPTION_2_EXTinputRatemust be a validVkVertexInputRatevalue
See Also
Layout
struct VkVertexInputBindingDescription2EXT { VkStructureTypesType(); void *pNext(); uint32_tbinding(); uint32_tstride(); VkVertexInputRateinputRate(); uint32_tdivisor(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVertexInputBindingDescription2EXT.BufferAn array ofVkVertexInputBindingDescription2EXTstructs.
-
Constructor Summary
Constructors Constructor Description VkVertexInputBindingDescription2EXT(java.nio.ByteBuffer container)Creates aVkVertexInputBindingDescription2EXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbinding()the binding number that this structure describes.VkVertexInputBindingDescription2EXTbinding(int value)Sets the specified value to thebinding()field.static VkVertexInputBindingDescription2EXTcalloc()Returns a newVkVertexInputBindingDescription2EXTinstance allocated withmemCalloc.static VkVertexInputBindingDescription2EXT.Buffercalloc(int capacity)Returns a newVkVertexInputBindingDescription2EXT.Bufferinstance allocated withmemCalloc.static VkVertexInputBindingDescription2EXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVertexInputBindingDescription2EXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVertexInputBindingDescription2EXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVertexInputBindingDescription2EXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVertexInputBindingDescription2EXTcreate()Returns a newVkVertexInputBindingDescription2EXTinstance allocated withBufferUtils.static VkVertexInputBindingDescription2EXT.Buffercreate(int capacity)Returns a newVkVertexInputBindingDescription2EXT.Bufferinstance allocated withBufferUtils.static VkVertexInputBindingDescription2EXTcreate(long address)Returns a newVkVertexInputBindingDescription2EXTinstance for the specified memory address.static VkVertexInputBindingDescription2EXT.Buffercreate(long address, int capacity)Create aVkVertexInputBindingDescription2EXT.Bufferinstance at the specified memory.static VkVertexInputBindingDescription2EXTcreateSafe(long address)static VkVertexInputBindingDescription2EXT.BuffercreateSafe(long address, int capacity)intdivisor()the number of successive instances that will use the same value of the vertex attribute when instanced rendering is enabled.VkVertexInputBindingDescription2EXTdivisor(int value)Sets the specified value to thedivisor()field.intinputRate()aVkVertexInputRatevalue specifying whether vertex attribute addressing is a function of the vertex index or of the instance index.VkVertexInputBindingDescription2EXTinputRate(int value)Sets the specified value to theinputRate()field.static VkVertexInputBindingDescription2EXTmalloc()Returns a newVkVertexInputBindingDescription2EXTinstance allocated withmemAlloc.static VkVertexInputBindingDescription2EXT.Buffermalloc(int capacity)Returns a newVkVertexInputBindingDescription2EXT.Bufferinstance allocated withmemAlloc.static VkVertexInputBindingDescription2EXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVertexInputBindingDescription2EXT.Bufferinstance allocated on the specifiedMemoryStack.static VkVertexInputBindingDescription2EXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVertexInputBindingDescription2EXTinstance allocated on the specifiedMemoryStack.static intnbinding(long struct)Unsafe version ofbinding().static voidnbinding(long struct, int value)Unsafe version ofbinding.static intndivisor(long struct)Unsafe version ofdivisor().static voidndivisor(long struct, int value)Unsafe version ofdivisor.static intninputRate(long struct)Unsafe version ofinputRate().static voidninputRate(long struct, int value)Unsafe version ofinputRate.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnstride(long struct)Unsafe version ofstride().static voidnstride(long struct, int value)Unsafe version ofstride.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkVertexInputBindingDescription2EXTpNext(long value)Sets the specified value to thepNext()field.VkVertexInputBindingDescription2EXTset(int sType, long pNext, int binding, int stride, int inputRate, int divisor)Initializes this struct with the specified values.VkVertexInputBindingDescription2EXTset(VkVertexInputBindingDescription2EXT src)Copies the specified struct data to this struct.intsizeof()intstride()the byte stride between consecutive elements within the buffer.VkVertexInputBindingDescription2EXTstride(int value)Sets the specified value to thestride()field.intsType()the type of this structure.VkVertexInputBindingDescription2EXTsType(int value)Sets the specified value to thesType()field.VkVertexInputBindingDescription2EXTsType$Default()Sets theSTRUCTURE_TYPE_VERTEX_INPUT_BINDING_DESCRIPTION_2_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkVertexInputBindingDescription2EXT
public VkVertexInputBindingDescription2EXT(java.nio.ByteBuffer container)
Creates aVkVertexInputBindingDescription2EXTinstance 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
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
binding
public int binding()
the binding number that this structure describes.
-
stride
public int stride()
the byte stride between consecutive elements within the buffer.
-
inputRate
public int inputRate()
aVkVertexInputRatevalue specifying whether vertex attribute addressing is a function of the vertex index or of the instance index.
-
divisor
public int divisor()
the number of successive instances that will use the same value of the vertex attribute when instanced rendering is enabled. This member can be set to a value other than 1 if the vertexAttributeInstanceRateDivisor feature 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 ofdivisoris implementation-dependent and can be queried usingVkPhysicalDeviceVertexAttributeDivisorPropertiesEXT::maxVertexAttribDivisor. A value of 0 can be used for the divisor if thevertexAttributeInstanceRateZeroDivisorfeature is enabled. In this case, the same vertex attribute will be applied to all instances.
-
sType
public VkVertexInputBindingDescription2EXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVertexInputBindingDescription2EXT sType$Default()
Sets theSTRUCTURE_TYPE_VERTEX_INPUT_BINDING_DESCRIPTION_2_EXTvalue to thesType()field.
-
pNext
public VkVertexInputBindingDescription2EXT pNext(long value)
Sets the specified value to thepNext()field.
-
binding
public VkVertexInputBindingDescription2EXT binding(int value)
Sets the specified value to thebinding()field.
-
stride
public VkVertexInputBindingDescription2EXT stride(int value)
Sets the specified value to thestride()field.
-
inputRate
public VkVertexInputBindingDescription2EXT inputRate(int value)
Sets the specified value to theinputRate()field.
-
divisor
public VkVertexInputBindingDescription2EXT divisor(int value)
Sets the specified value to thedivisor()field.
-
set
public VkVertexInputBindingDescription2EXT set(int sType, long pNext, int binding, int stride, int inputRate, int divisor)
Initializes this struct with the specified values.
-
set
public VkVertexInputBindingDescription2EXT set(VkVertexInputBindingDescription2EXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVertexInputBindingDescription2EXT malloc()
Returns a newVkVertexInputBindingDescription2EXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVertexInputBindingDescription2EXT calloc()
Returns a newVkVertexInputBindingDescription2EXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVertexInputBindingDescription2EXT create()
Returns a newVkVertexInputBindingDescription2EXTinstance allocated withBufferUtils.
-
create
public static VkVertexInputBindingDescription2EXT create(long address)
Returns a newVkVertexInputBindingDescription2EXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkVertexInputBindingDescription2EXT createSafe(long address)
-
malloc
public static VkVertexInputBindingDescription2EXT.Buffer malloc(int capacity)
Returns a newVkVertexInputBindingDescription2EXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVertexInputBindingDescription2EXT.Buffer calloc(int capacity)
Returns a newVkVertexInputBindingDescription2EXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVertexInputBindingDescription2EXT.Buffer create(int capacity)
Returns a newVkVertexInputBindingDescription2EXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVertexInputBindingDescription2EXT.Buffer create(long address, int capacity)
Create aVkVertexInputBindingDescription2EXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVertexInputBindingDescription2EXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVertexInputBindingDescription2EXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVertexInputBindingDescription2EXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVertexInputBindingDescription2EXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVertexInputBindingDescription2EXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVertexInputBindingDescription2EXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVertexInputBindingDescription2EXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVertexInputBindingDescription2EXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVertexInputBindingDescription2EXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nbinding
public static int nbinding(long struct)
Unsafe version ofbinding().
-
nstride
public static int nstride(long struct)
Unsafe version ofstride().
-
ninputRate
public static int ninputRate(long struct)
Unsafe version ofinputRate().
-
ndivisor
public static int ndivisor(long struct)
Unsafe version ofdivisor().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nbinding
public static void nbinding(long struct, int value)Unsafe version ofbinding.
-
nstride
public static void nstride(long struct, int value)Unsafe version ofstride.
-
ninputRate
public static void ninputRate(long struct, int value)Unsafe version ofinputRate.
-
ndivisor
public static void ndivisor(long struct, int value)Unsafe version ofdivisor.
-
-