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
sTypemust beSTRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFOpNextmust beNULLflagsmust be 0topologymust be a validVkPrimitiveTopologyvalue- If
topologyisPRIMITIVE_TOPOLOGY_POINT_LIST,PRIMITIVE_TOPOLOGY_LINE_LIST,PRIMITIVE_TOPOLOGY_TRIANGLE_LIST,PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY,PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCYorPRIMITIVE_TOPOLOGY_PATCH_LIST,primitiveRestartEnablemust beFALSE - If the geometry shaders feature is not enabled,
topologymust not be any ofPRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY,PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY,PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCYorPRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY - If the tessellation shaders feature is not enabled,
topologymust not bePRIMITIVE_TOPOLOGY_PATCH_LIST
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFOpNext– reserved for use by extensionsflags– reserved for future usetopology– aVkPrimitiveTopologydefining 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 classVkPipelineInputAssemblyStateCreateInfo.BufferAn array ofVkPipelineInputAssemblyStateCreateInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe 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 aVkPipelineInputAssemblyStateCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkPipelineInputAssemblyStateCreateInfocalloc()Returns a newVkPipelineInputAssemblyStateCreateInfoinstance allocated withmemCalloc.static VkPipelineInputAssemblyStateCreateInfo.Buffercalloc(int capacity)Returns a newVkPipelineInputAssemblyStateCreateInfo.Bufferinstance allocated withmemCalloc.static VkPipelineInputAssemblyStateCreateInfocallocStack()Returns a newVkPipelineInputAssemblyStateCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineInputAssemblyStateCreateInfo.BuffercallocStack(int capacity)Returns a newVkPipelineInputAssemblyStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineInputAssemblyStateCreateInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkPipelineInputAssemblyStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineInputAssemblyStateCreateInfocallocStack(MemoryStack stack)Returns a newVkPipelineInputAssemblyStateCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineInputAssemblyStateCreateInfocreate()Returns a newVkPipelineInputAssemblyStateCreateInfoinstance allocated withBufferUtils.static VkPipelineInputAssemblyStateCreateInfo.Buffercreate(int capacity)Returns a newVkPipelineInputAssemblyStateCreateInfo.Bufferinstance allocated withBufferUtils.static VkPipelineInputAssemblyStateCreateInfocreate(long address)Returns a newVkPipelineInputAssemblyStateCreateInfoinstance for the specified memory address ornullif the address isNULL.static VkPipelineInputAssemblyStateCreateInfo.Buffercreate(long address, int capacity)Create aVkPipelineInputAssemblyStateCreateInfo.Bufferinstance at the specified memory.intflags()Returns the value of theflagsfield.VkPipelineInputAssemblyStateCreateInfoflags(int value)Sets the specified value to theflagsfield.static VkPipelineInputAssemblyStateCreateInfomalloc()Returns a newVkPipelineInputAssemblyStateCreateInfoinstance allocated withmemAlloc.static VkPipelineInputAssemblyStateCreateInfo.Buffermalloc(int capacity)Returns a newVkPipelineInputAssemblyStateCreateInfo.Bufferinstance allocated withmemAlloc.static VkPipelineInputAssemblyStateCreateInfomallocStack()Returns a newVkPipelineInputAssemblyStateCreateInfoinstance allocated on the thread-localMemoryStack.static VkPipelineInputAssemblyStateCreateInfo.BuffermallocStack(int capacity)Returns a newVkPipelineInputAssemblyStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineInputAssemblyStateCreateInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkPipelineInputAssemblyStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineInputAssemblyStateCreateInfomallocStack(MemoryStack stack)Returns a newVkPipelineInputAssemblyStateCreateInfoinstance allocated on the specifiedMemoryStack.VkPipelineInputAssemblyStateCreateInfonset(long struct)Unsafe version ofset.longpNext()Returns the value of thepNextfield.VkPipelineInputAssemblyStateCreateInfopNext(long value)Sets the specified value to thepNextfield.intprimitiveRestartEnable()Returns the value of theprimitiveRestartEnablefield.VkPipelineInputAssemblyStateCreateInfoprimitiveRestartEnable(int value)Sets the specified value to theprimitiveRestartEnablefield.VkPipelineInputAssemblyStateCreateInfoset(int sType, long pNext, int flags, int topology, int primitiveRestartEnable)Initializes this struct with the specified values.VkPipelineInputAssemblyStateCreateInfoset(VkPipelineInputAssemblyStateCreateInfo src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intsType()Returns the value of thesTypefield.VkPipelineInputAssemblyStateCreateInfosType(int value)Sets the specified value to thesTypefield.inttopology()Returns the value of thetopologyfield.VkPipelineInputAssemblyStateCreateInfotopology(int value)Sets the specified value to thetopologyfield.-
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 aVkPipelineInputAssemblyStateCreateInfoinstance 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()
Description copied from class:StructReturns thesizeof(struct).
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
topology
public int topology()
Returns the value of thetopologyfield.
-
primitiveRestartEnable
public int primitiveRestartEnable()
Returns the value of theprimitiveRestartEnablefield.
-
sType
public VkPipelineInputAssemblyStateCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPipelineInputAssemblyStateCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkPipelineInputAssemblyStateCreateInfo flags(int value)
Sets the specified value to theflagsfield.
-
topology
public VkPipelineInputAssemblyStateCreateInfo topology(int value)
Sets the specified value to thetopologyfield.
-
primitiveRestartEnable
public VkPipelineInputAssemblyStateCreateInfo primitiveRestartEnable(int value)
Sets the specified value to theprimitiveRestartEnablefield.
-
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 newVkPipelineInputAssemblyStateCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineInputAssemblyStateCreateInfo calloc()
Returns a newVkPipelineInputAssemblyStateCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineInputAssemblyStateCreateInfo create()
Returns a newVkPipelineInputAssemblyStateCreateInfoinstance allocated withBufferUtils.
-
create
public static VkPipelineInputAssemblyStateCreateInfo create(long address)
Returns a newVkPipelineInputAssemblyStateCreateInfoinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkPipelineInputAssemblyStateCreateInfo.Buffer malloc(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineInputAssemblyStateCreateInfo.Buffer calloc(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineInputAssemblyStateCreateInfo.Buffer create(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineInputAssemblyStateCreateInfo.Buffer create(long address, int capacity)
Create aVkPipelineInputAssemblyStateCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkPipelineInputAssemblyStateCreateInfo mallocStack()
Returns a newVkPipelineInputAssemblyStateCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineInputAssemblyStateCreateInfo callocStack()
Returns a newVkPipelineInputAssemblyStateCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineInputAssemblyStateCreateInfo mallocStack(MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineInputAssemblyStateCreateInfo callocStack(MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfoinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineInputAssemblyStateCreateInfo.Buffer callocStack(int capacity)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPipelineInputAssemblyStateCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineInputAssemblyStateCreateInfo.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-