public class VkVertexInputAttributeDescription
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
location must be less than VkPhysicalDeviceLimits::maxVertexInputAttributesbinding must be less than VkPhysicalDeviceLimits::maxVertexInputBindingsoffset must be less than or equal to VkPhysicalDeviceLimits::maxVertexInputAttributeOffsetformat must be allowed as a vertex buffer format, as specified by the FORMAT_FEATURE_VERTEX_BUFFER_BIT flag in VkFormatProperties::bufferFeatures returned by vkGetPhysicalDeviceFormatPropertiesformat must be a valid VkFormat valueVkPipelineVertexInputStateCreateInfo
location – the shader binding location number for this attribute.binding – the binding number which this attribute takes its data from.format – the size and type of the vertex attribute data.offset – a byte offset of this attribute relative to the start of an element in the vertex input binding.
struct VkVertexInputAttributeDescription {
uint32_t location;
uint32_t binding;
VkFormat format;
uint32_t offset;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkVertexInputAttributeDescription.Buffer
An array of
VkVertexInputAttributeDescription structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BINDING
The struct member offsets.
|
static int |
FORMAT
The struct member offsets.
|
static int |
LOCATION
The struct member offsets.
|
static int |
OFFSET
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkVertexInputAttributeDescription(java.nio.ByteBuffer container)
Creates a
VkVertexInputAttributeDescription 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. |
VkVertexInputAttributeDescription |
binding(int value)
Sets the specified value to the
binding field. |
static VkVertexInputAttributeDescription |
calloc()
Returns a new
VkVertexInputAttributeDescription instance allocated with memCalloc. |
static VkVertexInputAttributeDescription.Buffer |
calloc(int capacity)
Returns a new
VkVertexInputAttributeDescription.Buffer instance allocated with memCalloc. |
static VkVertexInputAttributeDescription |
callocStack()
Returns a new
VkVertexInputAttributeDescription instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkVertexInputAttributeDescription.Buffer |
callocStack(int capacity)
Returns a new
VkVertexInputAttributeDescription.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkVertexInputAttributeDescription.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkVertexInputAttributeDescription.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkVertexInputAttributeDescription |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkVertexInputAttributeDescription instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkVertexInputAttributeDescription |
create()
Returns a new
VkVertexInputAttributeDescription instance allocated with BufferUtils. |
static VkVertexInputAttributeDescription.Buffer |
create(int capacity)
Returns a new
VkVertexInputAttributeDescription.Buffer instance allocated with BufferUtils. |
static VkVertexInputAttributeDescription |
create(long address)
Returns a new
VkVertexInputAttributeDescription instance for the specified memory address. |
static VkVertexInputAttributeDescription.Buffer |
create(long address,
int capacity)
Create a
VkVertexInputAttributeDescription.Buffer instance at the specified memory. |
static VkVertexInputAttributeDescription |
createSafe(long address)
|
static VkVertexInputAttributeDescription.Buffer |
createSafe(long address,
int capacity)
|
int |
format()
Returns the value of the
format field. |
VkVertexInputAttributeDescription |
format(int value)
Sets the specified value to the
format field. |
int |
location()
Returns the value of the
location field. |
VkVertexInputAttributeDescription |
location(int value)
Sets the specified value to the
location field. |
static VkVertexInputAttributeDescription |
malloc()
Returns a new
VkVertexInputAttributeDescription instance allocated with memAlloc. |
static VkVertexInputAttributeDescription.Buffer |
malloc(int capacity)
Returns a new
VkVertexInputAttributeDescription.Buffer instance allocated with memAlloc. |
static VkVertexInputAttributeDescription |
mallocStack()
Returns a new
VkVertexInputAttributeDescription instance allocated on the thread-local MemoryStack. |
static VkVertexInputAttributeDescription.Buffer |
mallocStack(int capacity)
Returns a new
VkVertexInputAttributeDescription.Buffer instance allocated on the thread-local MemoryStack. |
static VkVertexInputAttributeDescription.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkVertexInputAttributeDescription.Buffer instance allocated on the specified MemoryStack. |
static VkVertexInputAttributeDescription |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkVertexInputAttributeDescription 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 |
nformat(long struct)
Unsafe version of
format(). |
static void |
nformat(long struct,
int value)
Unsafe version of
format. |
static int |
nlocation(long struct)
Unsafe version of
location(). |
static void |
nlocation(long struct,
int value)
Unsafe version of
location. |
static int |
noffset(long struct)
Unsafe version of
offset(). |
static void |
noffset(long struct,
int value)
Unsafe version of
offset. |
int |
offset()
Returns the value of the
offset field. |
VkVertexInputAttributeDescription |
offset(int value)
Sets the specified value to the
offset field. |
VkVertexInputAttributeDescription |
set(int location,
int binding,
int format,
int offset)
Initializes this struct with the specified values.
|
VkVertexInputAttributeDescription |
set(VkVertexInputAttributeDescription 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 LOCATION
public static final int BINDING
public static final int FORMAT
public static final int OFFSET
public VkVertexInputAttributeDescription(java.nio.ByteBuffer container)
VkVertexInputAttributeDescription 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 location()
location field.public int binding()
binding field.public int format()
format field.public int offset()
offset field.public VkVertexInputAttributeDescription location(int value)
location field.public VkVertexInputAttributeDescription binding(int value)
binding field.public VkVertexInputAttributeDescription format(int value)
format field.public VkVertexInputAttributeDescription offset(int value)
offset field.public VkVertexInputAttributeDescription set(int location, int binding, int format, int offset)
public VkVertexInputAttributeDescription set(VkVertexInputAttributeDescription src)
src - the source structpublic static VkVertexInputAttributeDescription malloc()
VkVertexInputAttributeDescription instance allocated with memAlloc. The instance must be explicitly freed.public static VkVertexInputAttributeDescription calloc()
VkVertexInputAttributeDescription instance allocated with memCalloc. The instance must be explicitly freed.public static VkVertexInputAttributeDescription create()
VkVertexInputAttributeDescription instance allocated with BufferUtils.public static VkVertexInputAttributeDescription create(long address)
VkVertexInputAttributeDescription instance for the specified memory address.@Nullable public static VkVertexInputAttributeDescription createSafe(long address)
public static VkVertexInputAttributeDescription.Buffer malloc(int capacity)
VkVertexInputAttributeDescription.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkVertexInputAttributeDescription.Buffer calloc(int capacity)
VkVertexInputAttributeDescription.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkVertexInputAttributeDescription.Buffer create(int capacity)
VkVertexInputAttributeDescription.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkVertexInputAttributeDescription.Buffer create(long address, int capacity)
VkVertexInputAttributeDescription.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkVertexInputAttributeDescription.Buffer createSafe(long address, int capacity)
public static VkVertexInputAttributeDescription mallocStack()
VkVertexInputAttributeDescription instance allocated on the thread-local MemoryStack.public static VkVertexInputAttributeDescription callocStack()
VkVertexInputAttributeDescription instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkVertexInputAttributeDescription mallocStack(org.lwjgl.system.MemoryStack stack)
VkVertexInputAttributeDescription instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkVertexInputAttributeDescription callocStack(org.lwjgl.system.MemoryStack stack)
VkVertexInputAttributeDescription instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkVertexInputAttributeDescription.Buffer mallocStack(int capacity)
VkVertexInputAttributeDescription.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkVertexInputAttributeDescription.Buffer callocStack(int capacity)
VkVertexInputAttributeDescription.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkVertexInputAttributeDescription.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkVertexInputAttributeDescription.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkVertexInputAttributeDescription.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkVertexInputAttributeDescription.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 nlocation(long struct)
location().public static int nbinding(long struct)
binding().public static int nformat(long struct)
format().public static int noffset(long struct)
offset().public static void nlocation(long struct,
int value)
location.public static void nbinding(long struct,
int value)
binding.public static void nformat(long struct,
int value)
format.public static void noffset(long struct,
int value)
offset.Copyright LWJGL. All Rights Reserved. License terms.