Package org.lwjgl.vulkan
Class VkPipelineInputAssemblyStateCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineInputAssemblyStateCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPipelineInputAssemblyStateCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created pipeline input assembly state.Description
Restarting the assembly of primitives discards the most recent index values if those elements formed an incomplete primitive, and restarts the primitive assembly using the subsequent indices, but only assembling the immediately following element through the end of the originally specified elements. The primitive restart index value comparison is performed before adding the
vertexOffset
value to the index value.Valid Usage
- If
topology
isPRIMITIVE_TOPOLOGY_POINT_LIST
,PRIMITIVE_TOPOLOGY_LINE_LIST
,PRIMITIVE_TOPOLOGY_TRIANGLE_LIST
,PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY
,PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY
orPRIMITIVE_TOPOLOGY_PATCH_LIST
,primitiveRestartEnable
must beFALSE
- If the geometry shaders feature is not enabled,
topology
must not be any ofPRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY
,PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY
,PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY
orPRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY
- If the tessellation shaders feature is not enabled,
topology
must not bePRIMITIVE_TOPOLOGY_PATCH_LIST
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO
pNext
must beNULL
flags
must be 0topology
must be a validVkPrimitiveTopology
value
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.flags
– reserved for future use.topology
– aVkPrimitiveTopology
defining the primitive topology, as described below.primitiveRestartEnable
– controls whether a special vertex index value is treated as restarting the assembly of primitives. This enable only applies to indexed draws (CmdDrawIndexed
andCmdDrawIndexedIndirect
), and the special index value is either 0xFFFFFFFF when theindexType
parameter ofvkCmdBindIndexBuffer
is equal toINDEX_TYPE_UINT32
, 0xFF whenindexType
is equal toINDEX_TYPE_UINT8_EXT
, or 0xFFFF whenindexType
is equal toINDEX_TYPE_UINT16
. Primitive restart is not allowed for “list” topologies.
Layout
struct VkPipelineInputAssemblyStateCreateInfo { VkStructureType sType; void const * pNext; VkPipelineInputAssemblyStateCreateFlags flags; VkPrimitiveTopology topology; VkBool32 primitiveRestartEnable; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPipelineInputAssemblyStateCreateInfo.Buffer
An array ofVkPipelineInputAssemblyStateCreateInfo
structs.
-
Constructor Summary
Constructors Constructor Description VkPipelineInputAssemblyStateCreateInfo(java.nio.ByteBuffer container)
Creates aVkPipelineInputAssemblyStateCreateInfo
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 VkPipelineInputAssemblyStateCreateInfo
calloc()
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated withmemCalloc
.static VkPipelineInputAssemblyStateCreateInfo.Buffer
calloc(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated withmemCalloc
.static VkPipelineInputAssemblyStateCreateInfo
callocStack()
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineInputAssemblyStateCreateInfo.Buffer
callocStack(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineInputAssemblyStateCreateInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineInputAssemblyStateCreateInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineInputAssemblyStateCreateInfo
create()
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated withBufferUtils
.static VkPipelineInputAssemblyStateCreateInfo.Buffer
create(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated withBufferUtils
.static VkPipelineInputAssemblyStateCreateInfo
create(long address)
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance for the specified memory address.static VkPipelineInputAssemblyStateCreateInfo.Buffer
create(long address, int capacity)
Create aVkPipelineInputAssemblyStateCreateInfo.Buffer
instance at the specified memory.static VkPipelineInputAssemblyStateCreateInfo
createSafe(long address)
static VkPipelineInputAssemblyStateCreateInfo.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkPipelineInputAssemblyStateCreateInfo
flags(int value)
Sets the specified value to theflags
field.static VkPipelineInputAssemblyStateCreateInfo
malloc()
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated withmemAlloc
.static VkPipelineInputAssemblyStateCreateInfo.Buffer
malloc(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated withmemAlloc
.static VkPipelineInputAssemblyStateCreateInfo
mallocStack()
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated on the thread-localMemoryStack
.static VkPipelineInputAssemblyStateCreateInfo.Buffer
mallocStack(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VkPipelineInputAssemblyStateCreateInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkPipelineInputAssemblyStateCreateInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated on the specifiedMemoryStack
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nprimitiveRestartEnable(long struct)
Unsafe version ofprimitiveRestartEnable()
.static void
nprimitiveRestartEnable(long struct, int value)
Unsafe version ofprimitiveRestartEnable
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
ntopology(long struct)
Unsafe version oftopology()
.static void
ntopology(long struct, int value)
Unsafe version oftopology
.long
pNext()
Returns the value of thepNext
field.VkPipelineInputAssemblyStateCreateInfo
pNext(long value)
Sets the specified value to thepNext
field.boolean
primitiveRestartEnable()
Returns the value of theprimitiveRestartEnable
field.VkPipelineInputAssemblyStateCreateInfo
primitiveRestartEnable(boolean value)
Sets the specified value to theprimitiveRestartEnable
field.VkPipelineInputAssemblyStateCreateInfo
set(int sType, long pNext, int flags, int topology, boolean primitiveRestartEnable)
Initializes this struct with the specified values.VkPipelineInputAssemblyStateCreateInfo
set(VkPipelineInputAssemblyStateCreateInfo src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPipelineInputAssemblyStateCreateInfo
sType(int value)
Sets the specified value to thesType
field.int
topology()
Returns the value of thetopology
field.VkPipelineInputAssemblyStateCreateInfo
topology(int value)
Sets the specified value to thetopology
field.
-
-
-
Constructor Detail
-
VkPipelineInputAssemblyStateCreateInfo
public VkPipelineInputAssemblyStateCreateInfo(java.nio.ByteBuffer container)
Creates aVkPipelineInputAssemblyStateCreateInfo
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.
-
flags
public int flags()
Returns the value of theflags
field.
-
topology
public int topology()
Returns the value of thetopology
field.
-
primitiveRestartEnable
public boolean primitiveRestartEnable()
Returns the value of theprimitiveRestartEnable
field.
-
sType
public VkPipelineInputAssemblyStateCreateInfo sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPipelineInputAssemblyStateCreateInfo pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkPipelineInputAssemblyStateCreateInfo flags(int value)
Sets the specified value to theflags
field.
-
topology
public VkPipelineInputAssemblyStateCreateInfo topology(int value)
Sets the specified value to thetopology
field.
-
primitiveRestartEnable
public VkPipelineInputAssemblyStateCreateInfo primitiveRestartEnable(boolean value)
Sets the specified value to theprimitiveRestartEnable
field.
-
set
public VkPipelineInputAssemblyStateCreateInfo set(int sType, long pNext, int flags, int topology, boolean primitiveRestartEnable)
Initializes this struct with the specified values.
-
set
public VkPipelineInputAssemblyStateCreateInfo set(VkPipelineInputAssemblyStateCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineInputAssemblyStateCreateInfo malloc()
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPipelineInputAssemblyStateCreateInfo calloc()
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPipelineInputAssemblyStateCreateInfo create()
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated withBufferUtils
.
-
create
public static VkPipelineInputAssemblyStateCreateInfo create(long address)
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineInputAssemblyStateCreateInfo createSafe(long address)
-
malloc
public static VkPipelineInputAssemblyStateCreateInfo.Buffer malloc(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPipelineInputAssemblyStateCreateInfo.Buffer calloc(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineInputAssemblyStateCreateInfo.Buffer create(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineInputAssemblyStateCreateInfo.Buffer create(long address, int capacity)
Create aVkPipelineInputAssemblyStateCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPipelineInputAssemblyStateCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPipelineInputAssemblyStateCreateInfo mallocStack()
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPipelineInputAssemblyStateCreateInfo callocStack()
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPipelineInputAssemblyStateCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPipelineInputAssemblyStateCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPipelineInputAssemblyStateCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPipelineInputAssemblyStateCreateInfo.Buffer callocStack(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPipelineInputAssemblyStateCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPipelineInputAssemblyStateCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfo.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()
.
-
nflags
public static int nflags(long struct)
Unsafe version offlags()
.
-
ntopology
public static int ntopology(long struct)
Unsafe version oftopology()
.
-
nprimitiveRestartEnable
public static int nprimitiveRestartEnable(long struct)
Unsafe version ofprimitiveRestartEnable()
.
-
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
.
-
ntopology
public static void ntopology(long struct, int value)
Unsafe version oftopology
.
-
nprimitiveRestartEnable
public static void nprimitiveRestartEnable(long struct, int value)
Unsafe version ofprimitiveRestartEnable
.
-
-