Package org.lwjgl.vulkan
Class VkPipelineVertexInputDivisorStateCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineVertexInputDivisorStateCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineVertexInputDivisorStateCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying vertex attributes assignment during instanced rendering.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_EXTpVertexBindingDivisorsmust be a valid pointer to an array ofvertexBindingDivisorCountVkVertexInputBindingDivisorDescriptionEXTstructuresvertexBindingDivisorCountmust be greater than 0
See Also
VkVertexInputBindingDivisorDescriptionEXTMember documentation
sType– the type of this structurepNext–NULLor a pointer to an extension-specific structurevertexBindingDivisorCount– the number of elements in thepVertexBindingDivisorsarray.pVertexBindingDivisors– a pointer to an array ofVkVertexInputBindingDivisorDescriptionEXTstructures, which specifies the divisor value for each binding.
Layout
struct VkPipelineVertexInputDivisorStateCreateInfoEXT { VkStructureType sType; void const * pNext; uint32_t vertexBindingDivisorCount;VkVertexInputBindingDivisorDescriptionEXTconst * pVertexBindingDivisors; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineVertexInputDivisorStateCreateInfoEXT.BufferAn array ofVkPipelineVertexInputDivisorStateCreateInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PVERTEXBINDINGDIVISORSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VERTEXBINDINGDIVISORCOUNTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineVertexInputDivisorStateCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkPipelineVertexInputDivisorStateCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineVertexInputDivisorStateCreateInfoEXTcalloc()Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated withmemCalloc.static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkPipelineVertexInputDivisorStateCreateInfoEXTcallocStack()Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineVertexInputDivisorStateCreateInfoEXT.BuffercallocStack(int capacity)Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineVertexInputDivisorStateCreateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineVertexInputDivisorStateCreateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineVertexInputDivisorStateCreateInfoEXTcreate()Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated withBufferUtils.static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffercreate(int capacity)Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkPipelineVertexInputDivisorStateCreateInfoEXTcreate(long address)Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance for the specified memory address.static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance at the specified memory.static VkPipelineVertexInputDivisorStateCreateInfoEXTcreateSafe(long address)static VkPipelineVertexInputDivisorStateCreateInfoEXT.BuffercreateSafe(long address, int capacity)static VkPipelineVertexInputDivisorStateCreateInfoEXTmalloc()Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated withmemAlloc.static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkPipelineVertexInputDivisorStateCreateInfoEXTmallocStack()Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated on the thread-localMemoryStack.static VkPipelineVertexInputDivisorStateCreateInfoEXT.BuffermallocStack(int capacity)Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineVertexInputDivisorStateCreateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineVertexInputDivisorStateCreateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkVertexInputBindingDivisorDescriptionEXT.BuffernpVertexBindingDivisors(long struct)Unsafe version ofpVertexBindingDivisors().static voidnpVertexBindingDivisors(long struct, VkVertexInputBindingDivisorDescriptionEXT.Buffer value)Unsafe version ofpVertexBindingDivisors.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnvertexBindingDivisorCount(long struct)Unsafe version ofvertexBindingDivisorCount().static voidnvertexBindingDivisorCount(long struct, int value)Sets the specified value to thevertexBindingDivisorCountfield of the specifiedstruct.longpNext()Returns the value of thepNextfield.VkPipelineVertexInputDivisorStateCreateInfoEXTpNext(long value)Sets the specified value to thepNextfield.VkVertexInputBindingDivisorDescriptionEXT.BufferpVertexBindingDivisors()Returns aVkVertexInputBindingDivisorDescriptionEXT.Bufferview of the struct array pointed to by thepVertexBindingDivisorsfield.VkPipelineVertexInputDivisorStateCreateInfoEXTpVertexBindingDivisors(VkVertexInputBindingDivisorDescriptionEXT.Buffer value)Sets the address of the specifiedVkVertexInputBindingDivisorDescriptionEXT.Bufferto thepVertexBindingDivisorsfield.VkPipelineVertexInputDivisorStateCreateInfoEXTset(int sType, long pNext, VkVertexInputBindingDivisorDescriptionEXT.Buffer pVertexBindingDivisors)Initializes this struct with the specified values.VkPipelineVertexInputDivisorStateCreateInfoEXTset(VkPipelineVertexInputDivisorStateCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPipelineVertexInputDivisorStateCreateInfoEXTsType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.intvertexBindingDivisorCount()Returns the value of thevertexBindingDivisorCountfield.
-
-
-
Constructor Detail
-
VkPipelineVertexInputDivisorStateCreateInfoEXT
public VkPipelineVertexInputDivisorStateCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkPipelineVertexInputDivisorStateCreateInfoEXTinstance 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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
vertexBindingDivisorCount
public int vertexBindingDivisorCount()
Returns the value of thevertexBindingDivisorCountfield.
-
pVertexBindingDivisors
public VkVertexInputBindingDivisorDescriptionEXT.Buffer pVertexBindingDivisors()
Returns aVkVertexInputBindingDivisorDescriptionEXT.Bufferview of the struct array pointed to by thepVertexBindingDivisorsfield.
-
sType
public VkPipelineVertexInputDivisorStateCreateInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPipelineVertexInputDivisorStateCreateInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
pVertexBindingDivisors
public VkPipelineVertexInputDivisorStateCreateInfoEXT pVertexBindingDivisors(VkVertexInputBindingDivisorDescriptionEXT.Buffer value)
Sets the address of the specifiedVkVertexInputBindingDivisorDescriptionEXT.Bufferto thepVertexBindingDivisorsfield.
-
set
public VkPipelineVertexInputDivisorStateCreateInfoEXT set(int sType, long pNext, VkVertexInputBindingDivisorDescriptionEXT.Buffer pVertexBindingDivisors)
Initializes this struct with the specified values.
-
set
public VkPipelineVertexInputDivisorStateCreateInfoEXT set(VkPipelineVertexInputDivisorStateCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineVertexInputDivisorStateCreateInfoEXT malloc()
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineVertexInputDivisorStateCreateInfoEXT calloc()
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineVertexInputDivisorStateCreateInfoEXT create()
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkPipelineVertexInputDivisorStateCreateInfoEXT create(long address)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineVertexInputDivisorStateCreateInfoEXT createSafe(long address)
-
malloc
public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer create(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPipelineVertexInputDivisorStateCreateInfoEXT mallocStack()
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineVertexInputDivisorStateCreateInfoEXT callocStack()
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineVertexInputDivisorStateCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineVertexInputDivisorStateCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.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().
-
nvertexBindingDivisorCount
public static int nvertexBindingDivisorCount(long struct)
Unsafe version ofvertexBindingDivisorCount().
-
npVertexBindingDivisors
public static VkVertexInputBindingDivisorDescriptionEXT.Buffer npVertexBindingDivisors(long struct)
Unsafe version ofpVertexBindingDivisors().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nvertexBindingDivisorCount
public static void nvertexBindingDivisorCount(long struct, int value)Sets the specified value to thevertexBindingDivisorCountfield of the specifiedstruct.
-
npVertexBindingDivisors
public static void npVertexBindingDivisors(long struct, VkVertexInputBindingDivisorDescriptionEXT.Buffer value)Unsafe version ofpVertexBindingDivisors.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-