Package org.lwjgl.vulkan
Class VkPipelineRasterizationProvokingVertexStateCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineRasterizationProvokingVertexStateCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineRasterizationProvokingVertexStateCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying provoking vertex mode used by a graphics pipeline.Description
If this struct is not provided when creating the pipeline, the pipeline will use the
PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXTmode.If the provokingVertexModePerPipeline limit is
FALSE, then all pipelines bound within a render pass instance must have the sameprovokingVertexMode.Valid Usage
- If
provokingVertexModeisPROVOKING_VERTEX_MODE_LAST_VERTEX_EXT, then the provokingVertexLast feature must be enabled
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_RASTERIZATION_PROVOKING_VERTEX_STATE_CREATE_INFO_EXTprovokingVertexModemust be a validVkProvokingVertexModeEXTvalue
Layout
struct VkPipelineRasterizationProvokingVertexStateCreateInfoEXT { VkStructureTypesType(); void const *pNext(); VkProvokingVertexModeEXTprovokingVertexMode(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineRasterizationProvokingVertexStateCreateInfoEXT.BufferAn array ofVkPipelineRasterizationProvokingVertexStateCreateInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PROVOKINGVERTEXMODEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineRasterizationProvokingVertexStateCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineRasterizationProvokingVertexStateCreateInfoEXTcalloc()Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance allocated withmemCalloc.static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineRasterizationProvokingVertexStateCreateInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineRasterizationProvokingVertexStateCreateInfoEXTcreate()Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance allocated withBufferUtils.static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Buffercreate(int capacity)Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkPipelineRasterizationProvokingVertexStateCreateInfoEXTcreate(long address)Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance for the specified memory address.static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Bufferinstance at the specified memory.static VkPipelineRasterizationProvokingVertexStateCreateInfoEXTcreateSafe(long address)static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.BuffercreateSafe(long address, int capacity)static VkPipelineRasterizationProvokingVertexStateCreateInfoEXTmalloc()Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance allocated withmemAlloc.static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineRasterizationProvokingVertexStateCreateInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnprovokingVertexMode(long struct)Unsafe version ofprovokingVertexMode().static voidnprovokingVertexMode(long struct, int value)Unsafe version ofprovokingVertexMode.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkPipelineRasterizationProvokingVertexStateCreateInfoEXTpNext(long value)Sets the specified value to thepNext()field.intprovokingVertexMode()aVkProvokingVertexModeEXTvalue selecting the provoking vertex mode.VkPipelineRasterizationProvokingVertexStateCreateInfoEXTprovokingVertexMode(int value)Sets the specified value to theprovokingVertexMode()field.VkPipelineRasterizationProvokingVertexStateCreateInfoEXTset(int sType, long pNext, int provokingVertexMode)Initializes this struct with the specified values.VkPipelineRasterizationProvokingVertexStateCreateInfoEXTset(VkPipelineRasterizationProvokingVertexStateCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPipelineRasterizationProvokingVertexStateCreateInfoEXTsType(int value)Sets the specified value to thesType()field.VkPipelineRasterizationProvokingVertexStateCreateInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_RASTERIZATION_PROVOKING_VERTEX_STATE_CREATE_INFO_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPipelineRasterizationProvokingVertexStateCreateInfoEXT
public VkPipelineRasterizationProvokingVertexStateCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance 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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
provokingVertexMode
public int provokingVertexMode()
aVkProvokingVertexModeEXTvalue selecting the provoking vertex mode.
-
sType
public VkPipelineRasterizationProvokingVertexStateCreateInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineRasterizationProvokingVertexStateCreateInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_RASTERIZATION_PROVOKING_VERTEX_STATE_CREATE_INFO_EXTvalue to thesType()field.
-
pNext
public VkPipelineRasterizationProvokingVertexStateCreateInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
provokingVertexMode
public VkPipelineRasterizationProvokingVertexStateCreateInfoEXT provokingVertexMode(int value)
Sets the specified value to theprovokingVertexMode()field.
-
set
public VkPipelineRasterizationProvokingVertexStateCreateInfoEXT set(int sType, long pNext, int provokingVertexMode)
Initializes this struct with the specified values.
-
set
public VkPipelineRasterizationProvokingVertexStateCreateInfoEXT set(VkPipelineRasterizationProvokingVertexStateCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT malloc()
Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT calloc()
Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT create()
Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT create(long address)
Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT createSafe(long address)
-
malloc
public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Buffer create(int capacity)
Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRasterizationProvokingVertexStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand 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().
-
nprovokingVertexMode
public static int nprovokingVertexMode(long struct)
Unsafe version ofprovokingVertexMode().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nprovokingVertexMode
public static void nprovokingVertexMode(long struct, int value)Unsafe version ofprovokingVertexMode.
-
-