public class VkPipelineInputAssemblyStateCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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.
topology is PRIMITIVE_TOPOLOGY_POINT_LIST, PRIMITIVE_TOPOLOGY_LINE_LIST, PRIMITIVE_TOPOLOGY_TRIANGLE_LIST, PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY, PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY or PRIMITIVE_TOPOLOGY_PATCH_LIST, primitiveRestartEnable must be FALSEtopology must not be any of PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY, PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY, PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY or PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCYtopology must not be PRIMITIVE_TOPOLOGY_PATCH_LISTsType must be STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFOpNext must be NULLflags must be 0topology must be a valid VkPrimitiveTopology valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.topology – a VkPrimitiveTopology 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 and CmdDrawIndexedIndirect), and the special index value is either 0xFFFFFFFF when the indexType parameter of vkCmdBindIndexBuffer is equal to INDEX_TYPE_UINT32, 0xFF when indexType is equal to INDEX_TYPE_UINT8_EXT, or 0xFFFF when indexType is equal to INDEX_TYPE_UINT16. Primitive restart is not allowed for “list” topologies.
struct VkPipelineInputAssemblyStateCreateInfo {
VkStructureType sType;
void const * pNext;
VkPipelineInputAssemblyStateCreateFlags flags;
VkPrimitiveTopology topology;
VkBool32 primitiveRestartEnable;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPipelineInputAssemblyStateCreateInfo.Buffer
An array of
VkPipelineInputAssemblyStateCreateInfo 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 |
PRIMITIVERESTARTENABLE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
TOPOLOGY
The struct member offsets.
|
| Constructor and Description |
|---|
VkPipelineInputAssemblyStateCreateInfo(java.nio.ByteBuffer container)
Creates a
VkPipelineInputAssemblyStateCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPipelineInputAssemblyStateCreateInfo |
calloc()
Returns a new
VkPipelineInputAssemblyStateCreateInfo instance allocated with memCalloc. |
static VkPipelineInputAssemblyStateCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkPipelineInputAssemblyStateCreateInfo.Buffer instance allocated with memCalloc. |
static VkPipelineInputAssemblyStateCreateInfo |
callocStack()
Returns a new
VkPipelineInputAssemblyStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineInputAssemblyStateCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkPipelineInputAssemblyStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineInputAssemblyStateCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineInputAssemblyStateCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineInputAssemblyStateCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineInputAssemblyStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineInputAssemblyStateCreateInfo |
create()
Returns a new
VkPipelineInputAssemblyStateCreateInfo instance allocated with BufferUtils. |
static VkPipelineInputAssemblyStateCreateInfo.Buffer |
create(int capacity)
Returns a new
VkPipelineInputAssemblyStateCreateInfo.Buffer instance allocated with BufferUtils. |
static VkPipelineInputAssemblyStateCreateInfo |
create(long address)
Returns a new
VkPipelineInputAssemblyStateCreateInfo instance for the specified memory address. |
static VkPipelineInputAssemblyStateCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkPipelineInputAssemblyStateCreateInfo.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 the
flags field. |
VkPipelineInputAssemblyStateCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
static VkPipelineInputAssemblyStateCreateInfo |
malloc()
Returns a new
VkPipelineInputAssemblyStateCreateInfo instance allocated with memAlloc. |
static VkPipelineInputAssemblyStateCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkPipelineInputAssemblyStateCreateInfo.Buffer instance allocated with memAlloc. |
static VkPipelineInputAssemblyStateCreateInfo |
mallocStack()
Returns a new
VkPipelineInputAssemblyStateCreateInfo instance allocated on the thread-local MemoryStack. |
static VkPipelineInputAssemblyStateCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkPipelineInputAssemblyStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkPipelineInputAssemblyStateCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineInputAssemblyStateCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkPipelineInputAssemblyStateCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineInputAssemblyStateCreateInfo 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 int |
nprimitiveRestartEnable(long struct)
Unsafe version of
primitiveRestartEnable(). |
static void |
nprimitiveRestartEnable(long struct,
int value)
Unsafe version of
primitiveRestartEnable. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
ntopology(long struct)
Unsafe version of
topology(). |
static void |
ntopology(long struct,
int value)
Unsafe version of
topology. |
long |
pNext()
Returns the value of the
pNext field. |
VkPipelineInputAssemblyStateCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
boolean |
primitiveRestartEnable()
Returns the value of the
primitiveRestartEnable field. |
VkPipelineInputAssemblyStateCreateInfo |
primitiveRestartEnable(boolean value)
Sets the specified value to the
primitiveRestartEnable 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 the
sType field. |
VkPipelineInputAssemblyStateCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
int |
topology()
Returns the value of the
topology field. |
VkPipelineInputAssemblyStateCreateInfo |
topology(int value)
Sets the specified value to the
topology 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 TOPOLOGY
public static final int PRIMITIVERESTARTENABLE
public VkPipelineInputAssemblyStateCreateInfo(java.nio.ByteBuffer container)
VkPipelineInputAssemblyStateCreateInfo 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 topology()
topology field.public boolean primitiveRestartEnable()
primitiveRestartEnable field.public VkPipelineInputAssemblyStateCreateInfo sType(int value)
sType field.public VkPipelineInputAssemblyStateCreateInfo pNext(long value)
pNext field.public VkPipelineInputAssemblyStateCreateInfo flags(int value)
flags field.public VkPipelineInputAssemblyStateCreateInfo topology(int value)
topology field.public VkPipelineInputAssemblyStateCreateInfo primitiveRestartEnable(boolean value)
primitiveRestartEnable field.public VkPipelineInputAssemblyStateCreateInfo set(int sType, long pNext, int flags, int topology, boolean primitiveRestartEnable)
public VkPipelineInputAssemblyStateCreateInfo set(VkPipelineInputAssemblyStateCreateInfo src)
src - the source structpublic static VkPipelineInputAssemblyStateCreateInfo malloc()
VkPipelineInputAssemblyStateCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkPipelineInputAssemblyStateCreateInfo calloc()
VkPipelineInputAssemblyStateCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkPipelineInputAssemblyStateCreateInfo create()
VkPipelineInputAssemblyStateCreateInfo instance allocated with BufferUtils.public static VkPipelineInputAssemblyStateCreateInfo create(long address)
VkPipelineInputAssemblyStateCreateInfo instance for the specified memory address.@Nullable public static VkPipelineInputAssemblyStateCreateInfo createSafe(long address)
public static VkPipelineInputAssemblyStateCreateInfo.Buffer malloc(int capacity)
VkPipelineInputAssemblyStateCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineInputAssemblyStateCreateInfo.Buffer calloc(int capacity)
VkPipelineInputAssemblyStateCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineInputAssemblyStateCreateInfo.Buffer create(int capacity)
VkPipelineInputAssemblyStateCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPipelineInputAssemblyStateCreateInfo.Buffer create(long address, int capacity)
VkPipelineInputAssemblyStateCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPipelineInputAssemblyStateCreateInfo.Buffer createSafe(long address, int capacity)
public static VkPipelineInputAssemblyStateCreateInfo mallocStack()
VkPipelineInputAssemblyStateCreateInfo instance allocated on the thread-local MemoryStack.public static VkPipelineInputAssemblyStateCreateInfo callocStack()
VkPipelineInputAssemblyStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPipelineInputAssemblyStateCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineInputAssemblyStateCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPipelineInputAssemblyStateCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineInputAssemblyStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPipelineInputAssemblyStateCreateInfo.Buffer mallocStack(int capacity)
VkPipelineInputAssemblyStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPipelineInputAssemblyStateCreateInfo.Buffer callocStack(int capacity)
VkPipelineInputAssemblyStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPipelineInputAssemblyStateCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineInputAssemblyStateCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPipelineInputAssemblyStateCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineInputAssemblyStateCreateInfo.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 ntopology(long struct)
topology().public static int nprimitiveRestartEnable(long struct)
primitiveRestartEnable().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 ntopology(long struct,
int value)
topology.public static void nprimitiveRestartEnable(long struct,
int value)
primitiveRestartEnable.Copyright LWJGL. All Rights Reserved. License terms.