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.NativeResource
Structure specifying vertex attributes assignment during instanced rendering.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_EXT
pVertexBindingDivisors
must be a valid pointer to an array ofvertexBindingDivisorCount
VkVertexInputBindingDivisorDescriptionEXT
structuresvertexBindingDivisorCount
must be greater than 0
See Also
VkVertexInputBindingDivisorDescriptionEXT
Member documentation
sType
– the type of this structurepNext
–NULL
or a pointer to an extension-specific structurevertexBindingDivisorCount
– the number of elements in thepVertexBindingDivisors
array.pVertexBindingDivisors
– a pointer to an array ofVkVertexInputBindingDivisorDescriptionEXT
structures, which specifies the divisor value for each binding.
Layout
struct VkPipelineVertexInputDivisorStateCreateInfoEXT { VkStructureType sType; void const * pNext; uint32_t vertexBindingDivisorCount;
VkVertexInputBindingDivisorDescriptionEXT
const * pVertexBindingDivisors; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
An array ofVkPipelineVertexInputDivisorStateCreateInfoEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
PNEXT
PVERTEXBINDINGDIVISORSThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
VERTEXBINDINGDIVISORCOUNTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineVertexInputDivisorStateCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkPipelineVertexInputDivisorStateCreateInfoEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineVertexInputDivisorStateCreateInfoEXT
calloc()
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated withmemCalloc
.static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
calloc(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
instance allocated withmemCalloc
.static VkPipelineVertexInputDivisorStateCreateInfoEXT
callocStack()
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
callocStack(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineVertexInputDivisorStateCreateInfoEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineVertexInputDivisorStateCreateInfoEXT
create()
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated withBufferUtils
.static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
create(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
instance allocated withBufferUtils
.static VkPipelineVertexInputDivisorStateCreateInfoEXT
create(long address)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance for the specified memory address.static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
create(long address, int capacity)
Create aVkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
instance at the specified memory.static VkPipelineVertexInputDivisorStateCreateInfoEXT
createSafe(long address)
static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
createSafe(long address, int capacity)
static VkPipelineVertexInputDivisorStateCreateInfoEXT
malloc()
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated withmemAlloc
.static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
malloc(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
instance allocated withmemAlloc
.static VkPipelineVertexInputDivisorStateCreateInfoEXT
mallocStack()
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated on the thread-localMemoryStack
.static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
mallocStack(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkPipelineVertexInputDivisorStateCreateInfoEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated on the specifiedMemoryStack
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static VkVertexInputBindingDivisorDescriptionEXT.Buffer
npVertexBindingDivisors(long struct)
Unsafe version ofpVertexBindingDivisors()
.static void
npVertexBindingDivisors(long struct, VkVertexInputBindingDivisorDescriptionEXT.Buffer value)
Unsafe version ofpVertexBindingDivisors
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
nvertexBindingDivisorCount(long struct)
Unsafe version ofvertexBindingDivisorCount()
.static void
nvertexBindingDivisorCount(long struct, int value)
Sets the specified value to thevertexBindingDivisorCount
field of the specifiedstruct
.long
pNext()
Returns the value of thepNext
field.VkPipelineVertexInputDivisorStateCreateInfoEXT
pNext(long value)
Sets the specified value to thepNext
field.VkVertexInputBindingDivisorDescriptionEXT.Buffer
pVertexBindingDivisors()
Returns aVkVertexInputBindingDivisorDescriptionEXT.Buffer
view of the struct array pointed to by thepVertexBindingDivisors
field.VkPipelineVertexInputDivisorStateCreateInfoEXT
pVertexBindingDivisors(VkVertexInputBindingDivisorDescriptionEXT.Buffer value)
Sets the address of the specifiedVkVertexInputBindingDivisorDescriptionEXT.Buffer
to thepVertexBindingDivisors
field.VkPipelineVertexInputDivisorStateCreateInfoEXT
set(int sType, long pNext, VkVertexInputBindingDivisorDescriptionEXT.Buffer pVertexBindingDivisors)
Initializes this struct with the specified values.VkPipelineVertexInputDivisorStateCreateInfoEXT
set(VkPipelineVertexInputDivisorStateCreateInfoEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPipelineVertexInputDivisorStateCreateInfoEXT
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.int
vertexBindingDivisorCount()
Returns the value of thevertexBindingDivisorCount
field.
-
-
-
Constructor Detail
-
VkPipelineVertexInputDivisorStateCreateInfoEXT
public VkPipelineVertexInputDivisorStateCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkPipelineVertexInputDivisorStateCreateInfoEXT
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
vertexBindingDivisorCount
public int vertexBindingDivisorCount()
Returns the value of thevertexBindingDivisorCount
field.
-
pVertexBindingDivisors
public VkVertexInputBindingDivisorDescriptionEXT.Buffer pVertexBindingDivisors()
Returns aVkVertexInputBindingDivisorDescriptionEXT.Buffer
view of the struct array pointed to by thepVertexBindingDivisors
field.
-
sType
public VkPipelineVertexInputDivisorStateCreateInfoEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPipelineVertexInputDivisorStateCreateInfoEXT pNext(long value)
Sets the specified value to thepNext
field.
-
pVertexBindingDivisors
public VkPipelineVertexInputDivisorStateCreateInfoEXT pVertexBindingDivisors(VkVertexInputBindingDivisorDescriptionEXT.Buffer value)
Sets the address of the specifiedVkVertexInputBindingDivisorDescriptionEXT.Buffer
to thepVertexBindingDivisors
field.
-
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 newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPipelineVertexInputDivisorStateCreateInfoEXT calloc()
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPipelineVertexInputDivisorStateCreateInfoEXT create()
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated withBufferUtils
.
-
create
public static VkPipelineVertexInputDivisorStateCreateInfoEXT create(long address)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineVertexInputDivisorStateCreateInfoEXT createSafe(long address)
-
malloc
public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer create(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
instance 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 newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPipelineVertexInputDivisorStateCreateInfoEXT callocStack()
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPipelineVertexInputDivisorStateCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPipelineVertexInputDivisorStateCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkPipelineVertexInputDivisorStateCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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 thevertexBindingDivisorCount
field 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
-
-