public class VkPipelineVertexInputStateCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
vertexBindingDescriptionCount must be less than or equal to VkPhysicalDeviceLimits::maxVertexInputBindingsvertexAttributeDescriptionCount must be less than or equal to VkPhysicalDeviceLimits::maxVertexInputAttributesbinding specified by each element of pVertexAttributeDescriptions, a VkVertexInputBindingDescription must exist in pVertexBindingDescriptions with the same value of bindingpVertexBindingDescriptions must describe distinct binding numberspVertexAttributeDescriptions must describe distinct attribute locationssType must be STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFOpNext must be NULL or a pointer to a valid instance of VkPipelineVertexInputDivisorStateCreateInfoEXTflags must be 0vertexBindingDescriptionCount is not 0, pVertexBindingDescriptions must be a valid pointer to an array of vertexBindingDescriptionCount valid VkVertexInputBindingDescription structuresvertexAttributeDescriptionCount is not 0, pVertexAttributeDescriptions must be a valid pointer to an array of vertexAttributeDescriptionCount valid VkVertexInputAttributeDescription structuresVkGraphicsPipelineCreateInfo, VkVertexInputAttributeDescription, VkVertexInputBindingDescription
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.vertexBindingDescriptionCount – the number of vertex binding descriptions provided in pVertexBindingDescriptions.pVertexBindingDescriptions – a pointer to an array of VkVertexInputBindingDescription structures.vertexAttributeDescriptionCount – the number of vertex attribute descriptions provided in pVertexAttributeDescriptions.pVertexAttributeDescriptions – a pointer to an array of VkVertexInputAttributeDescription structures.
struct VkPipelineVertexInputStateCreateInfo {
VkStructureType sType;
void const * pNext;
VkPipelineVertexInputStateCreateFlags flags;
uint32_t vertexBindingDescriptionCount;
VkVertexInputBindingDescription const * pVertexBindingDescriptions;
uint32_t vertexAttributeDescriptionCount;
VkVertexInputAttributeDescription const * pVertexAttributeDescriptions;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPipelineVertexInputStateCreateInfo.Buffer
An array of
VkPipelineVertexInputStateCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PVERTEXATTRIBUTEDESCRIPTIONS
The struct member offsets.
|
static int |
PVERTEXBINDINGDESCRIPTIONS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
VERTEXATTRIBUTEDESCRIPTIONCOUNT
The struct member offsets.
|
static int |
VERTEXBINDINGDESCRIPTIONCOUNT
The struct member offsets.
|
| Constructor and Description |
|---|
VkPipelineVertexInputStateCreateInfo(java.nio.ByteBuffer container)
Creates a
VkPipelineVertexInputStateCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPipelineVertexInputStateCreateInfo |
calloc()
Returns a new
VkPipelineVertexInputStateCreateInfo instance allocated with memCalloc. |
static VkPipelineVertexInputStateCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkPipelineVertexInputStateCreateInfo.Buffer instance allocated with memCalloc. |
static VkPipelineVertexInputStateCreateInfo |
callocStack()
Returns a new
VkPipelineVertexInputStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineVertexInputStateCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkPipelineVertexInputStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineVertexInputStateCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineVertexInputStateCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineVertexInputStateCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineVertexInputStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineVertexInputStateCreateInfo |
create()
Returns a new
VkPipelineVertexInputStateCreateInfo instance allocated with BufferUtils. |
static VkPipelineVertexInputStateCreateInfo.Buffer |
create(int capacity)
Returns a new
VkPipelineVertexInputStateCreateInfo.Buffer instance allocated with BufferUtils. |
static VkPipelineVertexInputStateCreateInfo |
create(long address)
Returns a new
VkPipelineVertexInputStateCreateInfo instance for the specified memory address. |
static VkPipelineVertexInputStateCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkPipelineVertexInputStateCreateInfo.Buffer instance at the specified memory. |
static VkPipelineVertexInputStateCreateInfo |
createSafe(long address)
|
static VkPipelineVertexInputStateCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkPipelineVertexInputStateCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
static VkPipelineVertexInputStateCreateInfo |
malloc()
Returns a new
VkPipelineVertexInputStateCreateInfo instance allocated with memAlloc. |
static VkPipelineVertexInputStateCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkPipelineVertexInputStateCreateInfo.Buffer instance allocated with memAlloc. |
static VkPipelineVertexInputStateCreateInfo |
mallocStack()
Returns a new
VkPipelineVertexInputStateCreateInfo instance allocated on the thread-local MemoryStack. |
static VkPipelineVertexInputStateCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkPipelineVertexInputStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkPipelineVertexInputStateCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineVertexInputStateCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkPipelineVertexInputStateCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineVertexInputStateCreateInfo instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static VkVertexInputAttributeDescription.Buffer |
npVertexAttributeDescriptions(long struct)
Unsafe version of
pVertexAttributeDescriptions(). |
static void |
npVertexAttributeDescriptions(long struct,
VkVertexInputAttributeDescription.Buffer value)
Unsafe version of
pVertexAttributeDescriptions. |
static VkVertexInputBindingDescription.Buffer |
npVertexBindingDescriptions(long struct)
Unsafe version of
pVertexBindingDescriptions(). |
static void |
npVertexBindingDescriptions(long struct,
VkVertexInputBindingDescription.Buffer value)
Unsafe version of
pVertexBindingDescriptions. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nvertexAttributeDescriptionCount(long struct)
Unsafe version of
vertexAttributeDescriptionCount(). |
static void |
nvertexAttributeDescriptionCount(long struct,
int value)
Sets the specified value to the
vertexAttributeDescriptionCount field of the specified struct. |
static int |
nvertexBindingDescriptionCount(long struct)
Unsafe version of
vertexBindingDescriptionCount(). |
static void |
nvertexBindingDescriptionCount(long struct,
int value)
Sets the specified value to the
vertexBindingDescriptionCount field of the specified struct. |
long |
pNext()
Returns the value of the
pNext field. |
VkPipelineVertexInputStateCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkVertexInputAttributeDescription.Buffer |
pVertexAttributeDescriptions()
Returns a
VkVertexInputAttributeDescription.Buffer view of the struct array pointed to by the pVertexAttributeDescriptions field. |
VkPipelineVertexInputStateCreateInfo |
pVertexAttributeDescriptions(VkVertexInputAttributeDescription.Buffer value)
Sets the address of the specified
VkVertexInputAttributeDescription.Buffer to the pVertexAttributeDescriptions field. |
VkVertexInputBindingDescription.Buffer |
pVertexBindingDescriptions()
Returns a
VkVertexInputBindingDescription.Buffer view of the struct array pointed to by the pVertexBindingDescriptions field. |
VkPipelineVertexInputStateCreateInfo |
pVertexBindingDescriptions(VkVertexInputBindingDescription.Buffer value)
Sets the address of the specified
VkVertexInputBindingDescription.Buffer to the pVertexBindingDescriptions field. |
VkPipelineVertexInputStateCreateInfo |
set(int sType,
long pNext,
int flags,
VkVertexInputBindingDescription.Buffer pVertexBindingDescriptions,
VkVertexInputAttributeDescription.Buffer pVertexAttributeDescriptions)
Initializes this struct with the specified values.
|
VkPipelineVertexInputStateCreateInfo |
set(VkPipelineVertexInputStateCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPipelineVertexInputStateCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
int |
vertexAttributeDescriptionCount()
Returns the value of the
vertexAttributeDescriptionCount field. |
int |
vertexBindingDescriptionCount()
Returns the value of the
vertexBindingDescriptionCount field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int VERTEXBINDINGDESCRIPTIONCOUNT
public static final int PVERTEXBINDINGDESCRIPTIONS
public static final int VERTEXATTRIBUTEDESCRIPTIONCOUNT
public static final int PVERTEXATTRIBUTEDESCRIPTIONS
public VkPipelineVertexInputStateCreateInfo(java.nio.ByteBuffer container)
VkPipelineVertexInputStateCreateInfo 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 sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public int vertexBindingDescriptionCount()
vertexBindingDescriptionCount field.@Nullable public VkVertexInputBindingDescription.Buffer pVertexBindingDescriptions()
VkVertexInputBindingDescription.Buffer view of the struct array pointed to by the pVertexBindingDescriptions field.public int vertexAttributeDescriptionCount()
vertexAttributeDescriptionCount field.@Nullable public VkVertexInputAttributeDescription.Buffer pVertexAttributeDescriptions()
VkVertexInputAttributeDescription.Buffer view of the struct array pointed to by the pVertexAttributeDescriptions field.public VkPipelineVertexInputStateCreateInfo sType(int value)
sType field.public VkPipelineVertexInputStateCreateInfo pNext(long value)
pNext field.public VkPipelineVertexInputStateCreateInfo flags(int value)
flags field.public VkPipelineVertexInputStateCreateInfo pVertexBindingDescriptions(@Nullable VkVertexInputBindingDescription.Buffer value)
VkVertexInputBindingDescription.Buffer to the pVertexBindingDescriptions field.public VkPipelineVertexInputStateCreateInfo pVertexAttributeDescriptions(@Nullable VkVertexInputAttributeDescription.Buffer value)
VkVertexInputAttributeDescription.Buffer to the pVertexAttributeDescriptions field.public VkPipelineVertexInputStateCreateInfo set(int sType, long pNext, int flags, @Nullable VkVertexInputBindingDescription.Buffer pVertexBindingDescriptions, @Nullable VkVertexInputAttributeDescription.Buffer pVertexAttributeDescriptions)
public VkPipelineVertexInputStateCreateInfo set(VkPipelineVertexInputStateCreateInfo src)
src - the source structpublic static VkPipelineVertexInputStateCreateInfo malloc()
VkPipelineVertexInputStateCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkPipelineVertexInputStateCreateInfo calloc()
VkPipelineVertexInputStateCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkPipelineVertexInputStateCreateInfo create()
VkPipelineVertexInputStateCreateInfo instance allocated with BufferUtils.public static VkPipelineVertexInputStateCreateInfo create(long address)
VkPipelineVertexInputStateCreateInfo instance for the specified memory address.@Nullable public static VkPipelineVertexInputStateCreateInfo createSafe(long address)
public static VkPipelineVertexInputStateCreateInfo.Buffer malloc(int capacity)
VkPipelineVertexInputStateCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineVertexInputStateCreateInfo.Buffer calloc(int capacity)
VkPipelineVertexInputStateCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineVertexInputStateCreateInfo.Buffer create(int capacity)
VkPipelineVertexInputStateCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPipelineVertexInputStateCreateInfo.Buffer create(long address, int capacity)
VkPipelineVertexInputStateCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPipelineVertexInputStateCreateInfo.Buffer createSafe(long address, int capacity)
public static VkPipelineVertexInputStateCreateInfo mallocStack()
VkPipelineVertexInputStateCreateInfo instance allocated on the thread-local MemoryStack.public static VkPipelineVertexInputStateCreateInfo callocStack()
VkPipelineVertexInputStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPipelineVertexInputStateCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineVertexInputStateCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPipelineVertexInputStateCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineVertexInputStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPipelineVertexInputStateCreateInfo.Buffer mallocStack(int capacity)
VkPipelineVertexInputStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPipelineVertexInputStateCreateInfo.Buffer callocStack(int capacity)
VkPipelineVertexInputStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPipelineVertexInputStateCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineVertexInputStateCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPipelineVertexInputStateCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineVertexInputStateCreateInfo.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 nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static int nvertexBindingDescriptionCount(long struct)
vertexBindingDescriptionCount().@Nullable public static VkVertexInputBindingDescription.Buffer npVertexBindingDescriptions(long struct)
pVertexBindingDescriptions().public static int nvertexAttributeDescriptionCount(long struct)
vertexAttributeDescriptionCount().@Nullable public static VkVertexInputAttributeDescription.Buffer npVertexAttributeDescriptions(long struct)
pVertexAttributeDescriptions().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nvertexBindingDescriptionCount(long struct,
int value)
vertexBindingDescriptionCount field of the specified struct.public static void npVertexBindingDescriptions(long struct,
@Nullable
VkVertexInputBindingDescription.Buffer value)
pVertexBindingDescriptions.public static void nvertexAttributeDescriptionCount(long struct,
int value)
vertexAttributeDescriptionCount field of the specified struct.public static void npVertexAttributeDescriptions(long struct,
@Nullable
VkVertexInputAttributeDescription.Buffer value)
pVertexAttributeDescriptions.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.