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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVertexInputBindingDescription extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying vertex input binding description.Valid Usage
bindingmust be less thanVkPhysicalDeviceLimits::maxVertexInputBindingsstridemust be less than or equal toVkPhysicalDeviceLimits::maxVertexInputBindingStride
Valid Usage (Implicit)
inputRatemust be a validVkVertexInputRatevalue
See Also
VkPipelineVertexInputStateCreateInfoMember documentation
binding– the binding number that this structure describes.stride– the distance in bytes between two consecutive elements within the buffer.inputRate– aVkVertexInputRatevalue specifying whether vertex attribute addressing is a function of the vertex index or of the instance index.
Layout
struct VkVertexInputBindingDescription { uint32_t binding; uint32_t stride; VkVertexInputRate inputRate; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVertexInputBindingDescription.BufferAn array ofVkVertexInputBindingDescriptionstructs.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)Returns a newVkVertexInputBindingDescription.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVertexInputBindingDescriptioncallocStack(org.lwjgl.system.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.static VkVertexInputBindingDescription.Buffercreate(long address, int capacity)Create aVkVertexInputBindingDescription.Bufferinstance at the specified memory.static VkVertexInputBindingDescriptioncreateSafe(long address)static VkVertexInputBindingDescription.BuffercreateSafe(long address, int capacity)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, org.lwjgl.system.MemoryStack stack)Returns a newVkVertexInputBindingDescription.Bufferinstance allocated on the specifiedMemoryStack.static VkVertexInputBindingDescriptionmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkVertexInputBindingDescriptioninstance allocated on the specifiedMemoryStack.static intnbinding(long struct)Unsafe version ofbinding().static voidnbinding(long struct, int value)Unsafe version ofbinding.static intninputRate(long struct)Unsafe version ofinputRate().static voidninputRate(long struct, int value)Unsafe version ofinputRate.static intnstride(long struct)Unsafe version ofstride().static voidnstride(long struct, int value)Unsafe version ofstride.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()intstride()Returns the value of thestridefield.VkVertexInputBindingDescriptionstride(int value)Sets the specified value to thestridefield.
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.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.
-
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.
-
createSafe
@Nullable public static VkVertexInputBindingDescription createSafe(long address)
-
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
-
createSafe
@Nullable public static VkVertexInputBindingDescription.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newVkVertexInputBindingDescriptioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkVertexInputBindingDescription callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
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().
-
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.
-
-