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- If the
VK_KHR_portability_subsetextension is enabled,stridemust be a multiple of, and at least as large as,VkPhysicalDevicePortabilitySubsetPropertiesKHR::minVertexInputBindingStrideAlignment
Valid Usage (Implicit)
inputRatemust be a validVkVertexInputRatevalue
See Also
VkPipelineVertexInputStateCreateInfoLayout
struct VkVertexInputBindingDescription { uint32_tbinding(); uint32_tstride(); VkVertexInputRateinputRate(); }
-
-
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 Deprecated Methods Modifier and Type Method Description intbinding()the binding number that this structure describes.VkVertexInputBindingDescriptionbinding(int value)Sets the specified value to thebinding()field.static VkVertexInputBindingDescriptioncalloc()Returns a newVkVertexInputBindingDescriptioninstance allocated withmemCalloc.static VkVertexInputBindingDescription.Buffercalloc(int capacity)Returns a newVkVertexInputBindingDescription.Bufferinstance allocated withmemCalloc.static VkVertexInputBindingDescription.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVertexInputBindingDescription.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVertexInputBindingDescriptioncalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVertexInputBindingDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVertexInputBindingDescriptioncallocStack()Deprecated.static VkVertexInputBindingDescription.BuffercallocStack(int capacity)Deprecated.static VkVertexInputBindingDescription.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkVertexInputBindingDescriptioncallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()aVkVertexInputRatevalue specifying whether vertex attribute addressing is a function of the vertex index or of the instance index.VkVertexInputBindingDescriptioninputRate(int value)Sets the specified value to theinputRate()field.static VkVertexInputBindingDescriptionmalloc()Returns a newVkVertexInputBindingDescriptioninstance allocated withmemAlloc.static VkVertexInputBindingDescription.Buffermalloc(int capacity)Returns a newVkVertexInputBindingDescription.Bufferinstance allocated withmemAlloc.static VkVertexInputBindingDescription.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVertexInputBindingDescription.Bufferinstance allocated on the specifiedMemoryStack.static VkVertexInputBindingDescriptionmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVertexInputBindingDescriptioninstance allocated on the specifiedMemoryStack.static VkVertexInputBindingDescriptionmallocStack()Deprecated.static VkVertexInputBindingDescription.BuffermallocStack(int capacity)Deprecated.static VkVertexInputBindingDescription.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkVertexInputBindingDescriptionmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()the byte stride between consecutive elements within the buffer.VkVertexInputBindingDescriptionstride(int value)Sets the specified value to thestride()field.
-
-
-
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()
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.
-
binding
public VkVertexInputBindingDescription binding(int value)
Sets the specified value to thebinding()field.
-
stride
public VkVertexInputBindingDescription stride(int value)
Sets the specified value to thestride()field.
-
inputRate
public VkVertexInputBindingDescription inputRate(int value)
Sets the specified value to theinputRate()field.
-
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
@Deprecated public static VkVertexInputBindingDescription mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkVertexInputBindingDescription callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkVertexInputBindingDescription mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkVertexInputBindingDescription callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkVertexInputBindingDescription.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkVertexInputBindingDescription.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkVertexInputBindingDescription.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkVertexInputBindingDescription.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkVertexInputBindingDescription malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVertexInputBindingDescriptioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVertexInputBindingDescription calloc(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
-
malloc
public static VkVertexInputBindingDescription.Buffer malloc(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
-
calloc
public static VkVertexInputBindingDescription.Buffer calloc(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.
-
-