Package org.lwjgl.vulkan
Class VkPipelineVertexInputStateCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineVertexInputStateCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineVertexInputStateCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created pipeline vertex input state.Valid Usage
vertexBindingDescriptionCountmust be less than or equal toVkPhysicalDeviceLimits::maxVertexInputBindingsvertexAttributeDescriptionCountmust be less than or equal toVkPhysicalDeviceLimits::maxVertexInputAttributes- For every
bindingspecified by each element ofpVertexAttributeDescriptions, aVkVertexInputBindingDescriptionmust exist inpVertexBindingDescriptionswith the same value ofbinding - All elements of
pVertexBindingDescriptionsmust describe distinct binding numbers - All elements of
pVertexAttributeDescriptionsmust describe distinct attribute locations
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFOpNextmust beNULLor a pointer to a valid instance ofVkPipelineVertexInputDivisorStateCreateInfoEXT- The
sTypevalue of each struct in thepNextchain must be unique flagsmust be 0- If
vertexBindingDescriptionCountis not 0,pVertexBindingDescriptionsmust be a valid pointer to an array ofvertexBindingDescriptionCountvalidVkVertexInputBindingDescriptionstructures - If
vertexAttributeDescriptionCountis not 0,pVertexAttributeDescriptionsmust be a valid pointer to an array ofvertexAttributeDescriptionCountvalidVkVertexInputAttributeDescriptionstructures
See Also
VkGraphicsPipelineCreateInfo,VkGraphicsShaderGroupCreateInfoNV,VkVertexInputAttributeDescription,VkVertexInputBindingDescriptionLayout
struct VkPipelineVertexInputStateCreateInfo { VkStructureTypesType(); void const *pNext(); VkPipelineVertexInputStateCreateFlagsflags(); uint32_tvertexBindingDescriptionCount();VkVertexInputBindingDescriptionconst *pVertexBindingDescriptions(); uint32_tvertexAttributeDescriptionCount();VkVertexInputAttributeDescriptionconst *pVertexAttributeDescriptions(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineVertexInputStateCreateInfo.BufferAn array ofVkPipelineVertexInputStateCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
PNEXT
PVERTEXATTRIBUTEDESCRIPTIONS
PVERTEXBINDINGDESCRIPTIONSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VERTEXATTRIBUTEDESCRIPTIONCOUNT
VERTEXBINDINGDESCRIPTIONCOUNTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineVertexInputStateCreateInfo(java.nio.ByteBuffer container)Creates aVkPipelineVertexInputStateCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkPipelineVertexInputStateCreateInfocalloc()Returns a newVkPipelineVertexInputStateCreateInfoinstance allocated withmemCalloc.static VkPipelineVertexInputStateCreateInfo.Buffercalloc(int capacity)Returns a newVkPipelineVertexInputStateCreateInfo.Bufferinstance allocated withmemCalloc.static VkPipelineVertexInputStateCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineVertexInputStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineVertexInputStateCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineVertexInputStateCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineVertexInputStateCreateInfocallocStack()Deprecated.static VkPipelineVertexInputStateCreateInfo.BuffercallocStack(int capacity)Deprecated.static VkPipelineVertexInputStateCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineVertexInputStateCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineVertexInputStateCreateInfocreate()Returns a newVkPipelineVertexInputStateCreateInfoinstance allocated withBufferUtils.static VkPipelineVertexInputStateCreateInfo.Buffercreate(int capacity)Returns a newVkPipelineVertexInputStateCreateInfo.Bufferinstance allocated withBufferUtils.static VkPipelineVertexInputStateCreateInfocreate(long address)Returns a newVkPipelineVertexInputStateCreateInfoinstance for the specified memory address.static VkPipelineVertexInputStateCreateInfo.Buffercreate(long address, int capacity)Create aVkPipelineVertexInputStateCreateInfo.Bufferinstance at the specified memory.static VkPipelineVertexInputStateCreateInfocreateSafe(long address)static VkPipelineVertexInputStateCreateInfo.BuffercreateSafe(long address, int capacity)intflags()reserved for future use.VkPipelineVertexInputStateCreateInfoflags(int value)Sets the specified value to theflags()field.static VkPipelineVertexInputStateCreateInfomalloc()Returns a newVkPipelineVertexInputStateCreateInfoinstance allocated withmemAlloc.static VkPipelineVertexInputStateCreateInfo.Buffermalloc(int capacity)Returns a newVkPipelineVertexInputStateCreateInfo.Bufferinstance allocated withmemAlloc.static VkPipelineVertexInputStateCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineVertexInputStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineVertexInputStateCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineVertexInputStateCreateInfoinstance allocated on the specifiedMemoryStack.static VkPipelineVertexInputStateCreateInfomallocStack()Deprecated.static VkPipelineVertexInputStateCreateInfo.BuffermallocStack(int capacity)Deprecated.static VkPipelineVertexInputStateCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineVertexInputStateCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkVertexInputAttributeDescription.BuffernpVertexAttributeDescriptions(long struct)Unsafe version ofpVertexAttributeDescriptions().static voidnpVertexAttributeDescriptions(long struct, VkVertexInputAttributeDescription.Buffer value)Unsafe version ofpVertexAttributeDescriptions.static VkVertexInputBindingDescription.BuffernpVertexBindingDescriptions(long struct)Unsafe version ofpVertexBindingDescriptions().static voidnpVertexBindingDescriptions(long struct, VkVertexInputBindingDescription.Buffer value)Unsafe version ofpVertexBindingDescriptions.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnvertexAttributeDescriptionCount(long struct)Unsafe version ofvertexAttributeDescriptionCount().static voidnvertexAttributeDescriptionCount(long struct, int value)Sets the specified value to thevertexAttributeDescriptionCountfield of the specifiedstruct.static intnvertexBindingDescriptionCount(long struct)Unsafe version ofvertexBindingDescriptionCount().static voidnvertexBindingDescriptionCount(long struct, int value)Sets the specified value to thevertexBindingDescriptionCountfield of the specifiedstruct.longpNext()NULLor a pointer to a structure extending this structure.VkPipelineVertexInputStateCreateInfopNext(long value)Sets the specified value to thepNext()field.VkPipelineVertexInputStateCreateInfopNext(VkPipelineVertexInputDivisorStateCreateInfoEXT value)Prepends the specifiedVkPipelineVertexInputDivisorStateCreateInfoEXTvalue to thepNextchain.VkVertexInputAttributeDescription.BufferpVertexAttributeDescriptions()a pointer to an array ofVkVertexInputAttributeDescriptionstructures.VkPipelineVertexInputStateCreateInfopVertexAttributeDescriptions(VkVertexInputAttributeDescription.Buffer value)Sets the address of the specifiedVkVertexInputAttributeDescription.Bufferto thepVertexAttributeDescriptions()field.VkVertexInputBindingDescription.BufferpVertexBindingDescriptions()a pointer to an array ofVkVertexInputBindingDescriptionstructures.VkPipelineVertexInputStateCreateInfopVertexBindingDescriptions(VkVertexInputBindingDescription.Buffer value)Sets the address of the specifiedVkVertexInputBindingDescription.Bufferto thepVertexBindingDescriptions()field.VkPipelineVertexInputStateCreateInfoset(int sType, long pNext, int flags, VkVertexInputBindingDescription.Buffer pVertexBindingDescriptions, VkVertexInputAttributeDescription.Buffer pVertexAttributeDescriptions)Initializes this struct with the specified values.VkPipelineVertexInputStateCreateInfoset(VkPipelineVertexInputStateCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPipelineVertexInputStateCreateInfosType(int value)Sets the specified value to thesType()field.VkPipelineVertexInputStateCreateInfosType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFOvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.intvertexAttributeDescriptionCount()the number of vertex attribute descriptions provided inpVertexAttributeDescriptions.intvertexBindingDescriptionCount()the number of vertex binding descriptions provided inpVertexBindingDescriptions.
-
-
-
Constructor Detail
-
VkPipelineVertexInputStateCreateInfo
public VkPipelineVertexInputStateCreateInfo(java.nio.ByteBuffer container)
Creates aVkPipelineVertexInputStateCreateInfoinstance 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
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
flags
public int flags()
reserved for future use.
-
vertexBindingDescriptionCount
public int vertexBindingDescriptionCount()
the number of vertex binding descriptions provided inpVertexBindingDescriptions.
-
pVertexBindingDescriptions
@Nullable public VkVertexInputBindingDescription.Buffer pVertexBindingDescriptions()
a pointer to an array ofVkVertexInputBindingDescriptionstructures.
-
vertexAttributeDescriptionCount
public int vertexAttributeDescriptionCount()
the number of vertex attribute descriptions provided inpVertexAttributeDescriptions.
-
pVertexAttributeDescriptions
@Nullable public VkVertexInputAttributeDescription.Buffer pVertexAttributeDescriptions()
a pointer to an array ofVkVertexInputAttributeDescriptionstructures.
-
sType
public VkPipelineVertexInputStateCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineVertexInputStateCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFOvalue to thesType()field.
-
pNext
public VkPipelineVertexInputStateCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkPipelineVertexInputStateCreateInfo pNext(VkPipelineVertexInputDivisorStateCreateInfoEXT value)
Prepends the specifiedVkPipelineVertexInputDivisorStateCreateInfoEXTvalue to thepNextchain.
-
flags
public VkPipelineVertexInputStateCreateInfo flags(int value)
Sets the specified value to theflags()field.
-
pVertexBindingDescriptions
public VkPipelineVertexInputStateCreateInfo pVertexBindingDescriptions(@Nullable VkVertexInputBindingDescription.Buffer value)
Sets the address of the specifiedVkVertexInputBindingDescription.Bufferto thepVertexBindingDescriptions()field.
-
pVertexAttributeDescriptions
public VkPipelineVertexInputStateCreateInfo pVertexAttributeDescriptions(@Nullable VkVertexInputAttributeDescription.Buffer value)
Sets the address of the specifiedVkVertexInputAttributeDescription.Bufferto thepVertexAttributeDescriptions()field.
-
set
public VkPipelineVertexInputStateCreateInfo set(int sType, long pNext, int flags, @Nullable VkVertexInputBindingDescription.Buffer pVertexBindingDescriptions, @Nullable VkVertexInputAttributeDescription.Buffer pVertexAttributeDescriptions)
Initializes this struct with the specified values.
-
set
public VkPipelineVertexInputStateCreateInfo set(VkPipelineVertexInputStateCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineVertexInputStateCreateInfo malloc()
Returns a newVkPipelineVertexInputStateCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineVertexInputStateCreateInfo calloc()
Returns a newVkPipelineVertexInputStateCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineVertexInputStateCreateInfo create()
Returns a newVkPipelineVertexInputStateCreateInfoinstance allocated withBufferUtils.
-
create
public static VkPipelineVertexInputStateCreateInfo create(long address)
Returns a newVkPipelineVertexInputStateCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineVertexInputStateCreateInfo createSafe(long address)
-
malloc
public static VkPipelineVertexInputStateCreateInfo.Buffer malloc(int capacity)
Returns a newVkPipelineVertexInputStateCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineVertexInputStateCreateInfo.Buffer calloc(int capacity)
Returns a newVkPipelineVertexInputStateCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineVertexInputStateCreateInfo.Buffer create(int capacity)
Returns a newVkPipelineVertexInputStateCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineVertexInputStateCreateInfo.Buffer create(long address, int capacity)
Create aVkPipelineVertexInputStateCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineVertexInputStateCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkPipelineVertexInputStateCreateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineVertexInputStateCreateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineVertexInputStateCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineVertexInputStateCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineVertexInputStateCreateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineVertexInputStateCreateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineVertexInputStateCreateInfo.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 VkPipelineVertexInputStateCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPipelineVertexInputStateCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputStateCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineVertexInputStateCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputStateCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPipelineVertexInputStateCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPipelineVertexInputStateCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nvertexBindingDescriptionCount
public static int nvertexBindingDescriptionCount(long struct)
Unsafe version ofvertexBindingDescriptionCount().
-
npVertexBindingDescriptions
@Nullable public static VkVertexInputBindingDescription.Buffer npVertexBindingDescriptions(long struct)
Unsafe version ofpVertexBindingDescriptions().
-
nvertexAttributeDescriptionCount
public static int nvertexAttributeDescriptionCount(long struct)
Unsafe version ofvertexAttributeDescriptionCount().
-
npVertexAttributeDescriptions
@Nullable public static VkVertexInputAttributeDescription.Buffer npVertexAttributeDescriptions(long struct)
Unsafe version ofpVertexAttributeDescriptions().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nvertexBindingDescriptionCount
public static void nvertexBindingDescriptionCount(long struct, int value)Sets the specified value to thevertexBindingDescriptionCountfield of the specifiedstruct.
-
npVertexBindingDescriptions
public static void npVertexBindingDescriptions(long struct, @Nullable VkVertexInputBindingDescription.Buffer value)Unsafe version ofpVertexBindingDescriptions.
-
nvertexAttributeDescriptionCount
public static void nvertexAttributeDescriptionCount(long struct, int value)Sets the specified value to thevertexAttributeDescriptionCountfield of the specifiedstruct.
-
npVertexAttributeDescriptions
public static void npVertexAttributeDescriptions(long struct, @Nullable VkVertexInputAttributeDescription.Buffer value)Unsafe version ofpVertexAttributeDescriptions.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-