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, NativeResource, Pointer
public class VkPipelineInputAssemblyStateCreateInfo extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about input assembly behavior.
Valid Usage
sType
must beSTRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO
pNext
must beNULL
flags
must be 0topology
must be a validVkPrimitiveTopology
value- 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
Member documentation
sType
– the type of this structure. Must be:STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO
pNext
– reserved for use by extensionsflags
– reserved for future usetopology
– aVkPrimitiveTopology
defining the primitive topology. One of:primitiveRestartEnable
– controls whether a special vertex index value is treated as restarting the assembly of primitives
Layout
struct VkPipelineInputAssemblyStateCreateInfo { VkStructureType sType; const void * pNext; VkPipelineInputAssemblyStateCreateFlags flags; VkPrimitiveTopology topology; VkBool32 primitiveRestartEnable; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
VkPipelineInputAssemblyStateCreateInfo.Buffer
An array ofVkPipelineInputAssemblyStateCreateInfo
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and 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, MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineInputAssemblyStateCreateInfo
callocStack(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 ornull
if the address isNULL
.static VkPipelineInputAssemblyStateCreateInfo.Buffer
create(long address, int capacity)
Create aVkPipelineInputAssemblyStateCreateInfo.Buffer
instance at the specified memory.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, MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkPipelineInputAssemblyStateCreateInfo
mallocStack(MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated on the specifiedMemoryStack
.VkPipelineInputAssemblyStateCreateInfo
nset(long struct)
Unsafe version ofset
.long
pNext()
Returns the value of thepNext
field.VkPipelineInputAssemblyStateCreateInfo
pNext(long value)
Sets the specified value to thepNext
field.int
primitiveRestartEnable()
Returns the value of theprimitiveRestartEnable
field.VkPipelineInputAssemblyStateCreateInfo
primitiveRestartEnable(int value)
Sets the specified value to theprimitiveRestartEnable
field.VkPipelineInputAssemblyStateCreateInfo
set(int sType, long pNext, int flags, int topology, int primitiveRestartEnable)
Initializes this struct with the specified values.VkPipelineInputAssemblyStateCreateInfo
set(VkPipelineInputAssemblyStateCreateInfo src)
Copies the specified struct data to this struct.int
sizeof()
Returns thesizeof(struct)
.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.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:Struct
Returns thesizeof(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 int 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(int value)
Sets the specified value to theprimitiveRestartEnable
field.
-
set
public VkPipelineInputAssemblyStateCreateInfo set(int sType, long pNext, int flags, int topology, int primitiveRestartEnable)
Initializes this struct with the specified values.
-
nset
public VkPipelineInputAssemblyStateCreateInfo nset(long struct)
Unsafe version ofset
.
-
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 ornull
if the address isNULL
.
-
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
-
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(MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPipelineInputAssemblyStateCreateInfo callocStack(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, 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, 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
-
-