location must be less than VkPhysicalDeviceLimits::maxVertexInputAttributesbinding must be less than VkPhysicalDeviceLimits::maxVertexInputBindingsoffset must be less than or equal to VkPhysicalDeviceLimits::maxVertexInputAttributeOffsetformat must contain FORMAT_FEATURE_VERTEX_BUFFER_BITVK_KHR_portability_subset extension is enabled, and VkPhysicalDevicePortabilitySubsetFeaturesKHR::vertexAttributeAccessBeyondStride is FALSE, the sum of offset plus the size of the vertex attribute data described by format must not be greater than stride in the VkVertexInputBindingDescription referenced in bindingformat must be a valid VkFormat valueVkPipelineVertexInputStateCreateInfo
struct VkVertexInputAttributeDescription {
uint32_t location;
uint32_t binding;
VkFormat format;
uint32_t offset;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkVertexInputAttributeDescription.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BINDING
The struct member offsets. |
| public static final int | FORMAT
The struct member offsets. |
| public static final int | LOCATION
The struct member offsets. |
| public static final int | OFFSET
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkVertexInputAttributeDescription(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public VkVertexInputAttributeDescription | |
| public static VkVertexInputAttributeDescription | |
| public static VkVertexInputAttributeDescription. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkVertexInputAttributeDescription | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkVertexInputAttributeDescription. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkVertexInputAttributeDescription | |
| public static VkVertexInputAttributeDescription | |
| public static VkVertexInputAttributeDescription. | |
| public static VkVertexInputAttributeDescription. | |
| protected VkVertexInputAttributeDescription | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkVertexInputAttributeDescription | |
| public static VkVertexInputAttributeDescription | create(long address)
Returns a new |
| public static VkVertexInputAttributeDescription. | create(int
the buffer capacity capacity)Returns a new |
| public static VkVertexInputAttributeDescription. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkVertexInputAttributeDescription | |
| public static VkVertexInputAttributeDescription. | |
| public int | |
| public VkVertexInputAttributeDescription | |
| public int | |
| public VkVertexInputAttributeDescription | |
| public static VkVertexInputAttributeDescription | |
| public static VkVertexInputAttributeDescription. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkVertexInputAttributeDescription | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkVertexInputAttributeDescription. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkVertexInputAttributeDescription | |
| public static VkVertexInputAttributeDescription | |
| public static VkVertexInputAttributeDescription. | |
| public static VkVertexInputAttributeDescription. | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public int | offset()
a byte offset of this attribute relative to the start of an element in the vertex input binding. |
| public VkVertexInputAttributeDescription | |
| public VkVertexInputAttributeDescription | set(int location, int binding, int format, int offset)
Initializes this struct with the specified values. |
| public VkVertexInputAttributeDescription | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| BINDING | back to summary |
|---|---|
| public static final int BINDING The struct member offsets. | |
| FORMAT | back to summary |
|---|---|
| public static final int FORMAT The struct member offsets. | |
| LOCATION | back to summary |
|---|---|
| public static final int LOCATION The struct member offsets. | |
| OFFSET | back to summary |
|---|---|
| public static final int OFFSET The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VkVertexInputAttributeDescription | back to summary |
|---|---|
| protected VkVertexInputAttributeDescription(long address, ByteBuffer container) | |
| VkVertexInputAttributeDescription | back to summary |
|---|---|
| public VkVertexInputAttributeDescription(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| binding | back to summary |
|---|---|
| public int binding() the binding number which this attribute takes its data from.
| |
| binding | back to summary |
|---|---|
| public VkVertexInputAttributeDescription binding(int value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkVertexInputAttributeDescription create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription. Like
| |
| format | back to summary |
|---|---|
| public int format() the size and type of the vertex attribute data.
| |
| format | back to summary |
|---|---|
| public VkVertexInputAttributeDescription format(int value) Sets the specified value to the | |
| location | back to summary |
|---|---|
| public int location() the shader input location number for this attribute.
| |
| location | back to summary |
|---|---|
| public VkVertexInputAttributeDescription location(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkVertexInputAttributeDescription. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nbinding | back to summary |
|---|---|
| public static int nbinding(long struct) Unsafe version of | |
| nbinding | back to summary |
|---|---|
| public static void nbinding(long struct, int value) Unsafe version of | |
| nformat | back to summary |
|---|---|
| public static int nformat(long struct) Unsafe version of | |
| nformat | back to summary |
|---|---|
| public static void nformat(long struct, int value) Unsafe version of | |
| nlocation | back to summary |
|---|---|
| public static int nlocation(long struct) Unsafe version of | |
| nlocation | back to summary |
|---|---|
| public static void nlocation(long struct, int value) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static int noffset(long struct) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static void noffset(long struct, int value) Unsafe version of | |
| offset | back to summary |
|---|---|
| public int offset() a byte offset of this attribute relative to the start of an element in the vertex input binding.
| |
| offset | back to summary |
|---|---|
| public VkVertexInputAttributeDescription offset(int value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkVertexInputAttributeDescription set(int location, int binding, int format, int offset) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkVertexInputAttributeDescription set(VkVertexInputAttributeDescription src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
VkVertexInputAttributeDescription structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkVertexInputAttributeDescription |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public VkVertexInputAttributeDescription. | |
| public int | |
| public VkVertexInputAttributeDescription. | |
| protected VkVertexInputAttributeDescription | |
| public int | |
| public VkVertexInputAttributeDescription. | location(int value)
Sets the specified value to the |
| public int | |
| public VkVertexInputAttributeDescription. | |
| protected VkVertexInputAttributeDescription. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkVertexInputAttributeDescription ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| binding | back to summary |
|---|---|
public int binding()
| |
| binding | back to summary |
|---|---|
| public VkVertexInputAttributeDescription. Sets the specified value to the | |
| format | back to summary |
|---|---|
public int format()
| |
| format | back to summary |
|---|---|
| public VkVertexInputAttributeDescription. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkVertexInputAttributeDescription getElementFactory() Implements abstract org.
| |
| location | back to summary |
|---|---|
public int location()
| |
| location | back to summary |
|---|---|
| public VkVertexInputAttributeDescription. Sets the specified value to the | |
| offset | back to summary |
|---|---|
public int offset()
| |
| offset | back to summary |
|---|---|
| public VkVertexInputAttributeDescription. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkVertexInputAttributeDescription. Implements abstract org.
| |