Package org.lwjgl.vulkan
Class VkVertexInputBindingDescription
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVertexInputBindingDescription
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkVertexInputBindingDescription extends Struct
Khronos Reference Page
Vulkan SpecificationDescribes a vertex input binding.
Valid Usage
inputRatemust be a validVkVertexInputRatevaluebindingmust be less thanVkPhysicalDeviceLimits::maxVertexInputBindingsstridemust be less than or equal toVkPhysicalDeviceLimits::maxVertexInputBindingStride
Member documentation
binding– the binding number that this structure describesstride– the distance in bytes between two consecutive elements within the bufferinputRate– aVkVertexInputRatevalue that specifies whether vertex attribute addressing is a function of the vertex index or of the instance index. One of:VERTEX_INPUT_RATE_INSTANCEVERTEX_INPUT_RATE_VERTEX
Layout
struct VkVertexInputBindingDescription { uint32_t binding; uint32_t stride; VkVertexInputRate inputRate; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkVertexInputBindingDescription.BufferAn array ofVkVertexInputBindingDescriptionstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkVertexInputBindingDescription(java.nio.ByteBuffer container)Creates aVkVertexInputBindingDescriptioninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intbinding()Returns the value of thebindingfield.VkVertexInputBindingDescriptionbinding(int value)Sets the specified value to thebindingfield.static VkVertexInputBindingDescriptioncalloc()Returns a newVkVertexInputBindingDescriptioninstance allocated withmemCalloc.static VkVertexInputBindingDescription.Buffercalloc(int capacity)Returns a newVkVertexInputBindingDescription.Bufferinstance allocated withmemCalloc.static VkVertexInputBindingDescriptioncallocStack()Returns a newVkVertexInputBindingDescriptioninstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkVertexInputBindingDescription.BuffercallocStack(int capacity)Returns a newVkVertexInputBindingDescription.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkVertexInputBindingDescription.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkVertexInputBindingDescription.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVertexInputBindingDescriptioncallocStack(MemoryStack stack)Returns a newVkVertexInputBindingDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVertexInputBindingDescriptioncreate()Returns a newVkVertexInputBindingDescriptioninstance allocated withBufferUtils.static VkVertexInputBindingDescription.Buffercreate(int capacity)Returns a newVkVertexInputBindingDescription.Bufferinstance allocated withBufferUtils.static VkVertexInputBindingDescriptioncreate(long address)Returns a newVkVertexInputBindingDescriptioninstance for the specified memory address ornullif the address isNULL.static VkVertexInputBindingDescription.Buffercreate(long address, int capacity)Create aVkVertexInputBindingDescription.Bufferinstance at the specified memory.intinputRate()Returns the value of theinputRatefield.VkVertexInputBindingDescriptioninputRate(int value)Sets the specified value to theinputRatefield.static VkVertexInputBindingDescriptionmalloc()Returns a newVkVertexInputBindingDescriptioninstance allocated withmemAlloc.static VkVertexInputBindingDescription.Buffermalloc(int capacity)Returns a newVkVertexInputBindingDescription.Bufferinstance allocated withmemAlloc.static VkVertexInputBindingDescriptionmallocStack()Returns a newVkVertexInputBindingDescriptioninstance allocated on the thread-localMemoryStack.static VkVertexInputBindingDescription.BuffermallocStack(int capacity)Returns a newVkVertexInputBindingDescription.Bufferinstance allocated on the thread-localMemoryStack.static VkVertexInputBindingDescription.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkVertexInputBindingDescription.Bufferinstance allocated on the specifiedMemoryStack.static VkVertexInputBindingDescriptionmallocStack(MemoryStack stack)Returns a newVkVertexInputBindingDescriptioninstance allocated on the specifiedMemoryStack.VkVertexInputBindingDescriptionnset(long struct)Unsafe version ofset.VkVertexInputBindingDescriptionset(int binding, int stride, int inputRate)Initializes this struct with the specified values.VkVertexInputBindingDescriptionset(VkVertexInputBindingDescription src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intstride()Returns the value of thestridefield.VkVertexInputBindingDescriptionstride(int value)Sets the specified value to thestridefield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkVertexInputBindingDescription
public VkVertexInputBindingDescription(java.nio.ByteBuffer container)
Creates aVkVertexInputBindingDescriptioninstance 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()
Description copied from class:StructReturns thesizeof(struct).
-
binding
public int binding()
Returns the value of thebindingfield.
-
stride
public int stride()
Returns the value of thestridefield.
-
inputRate
public int inputRate()
Returns the value of theinputRatefield.
-
binding
public VkVertexInputBindingDescription binding(int value)
Sets the specified value to thebindingfield.
-
stride
public VkVertexInputBindingDescription stride(int value)
Sets the specified value to thestridefield.
-
inputRate
public VkVertexInputBindingDescription inputRate(int value)
Sets the specified value to theinputRatefield.
-
set
public VkVertexInputBindingDescription set(int binding, int stride, int inputRate)
Initializes this struct with the specified values.
-
nset
public VkVertexInputBindingDescription nset(long struct)
Unsafe version ofset.
-
set
public VkVertexInputBindingDescription set(VkVertexInputBindingDescription src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVertexInputBindingDescription malloc()
Returns a newVkVertexInputBindingDescriptioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVertexInputBindingDescription calloc()
Returns a newVkVertexInputBindingDescriptioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVertexInputBindingDescription create()
Returns a newVkVertexInputBindingDescriptioninstance allocated withBufferUtils.
-
create
public static VkVertexInputBindingDescription create(long address)
Returns a newVkVertexInputBindingDescriptioninstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkVertexInputBindingDescription.Buffer malloc(int capacity)
Returns a newVkVertexInputBindingDescription.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVertexInputBindingDescription.Buffer calloc(int capacity)
Returns a newVkVertexInputBindingDescription.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVertexInputBindingDescription.Buffer create(int capacity)
Returns a newVkVertexInputBindingDescription.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVertexInputBindingDescription.Buffer create(long address, int capacity)
Create aVkVertexInputBindingDescription.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkVertexInputBindingDescription mallocStack()
Returns a newVkVertexInputBindingDescriptioninstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkVertexInputBindingDescription callocStack()
Returns a newVkVertexInputBindingDescriptioninstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkVertexInputBindingDescription mallocStack(MemoryStack stack)
Returns a newVkVertexInputBindingDescriptioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkVertexInputBindingDescription callocStack(MemoryStack stack)
Returns a newVkVertexInputBindingDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkVertexInputBindingDescription.Buffer mallocStack(int capacity)
Returns a newVkVertexInputBindingDescription.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkVertexInputBindingDescription.Buffer callocStack(int capacity)
Returns a newVkVertexInputBindingDescription.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkVertexInputBindingDescription.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkVertexInputBindingDescription.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkVertexInputBindingDescription.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkVertexInputBindingDescription.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-