Package org.lwjgl.vulkan
Class VkPhysicalDeviceProvokingVertexFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceProvokingVertexFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceProvokingVertexFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the provoking vertex features that can be supported by an implementation.Description
If the
VkPhysicalDeviceProvokingVertexFeaturesEXTstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceProvokingVertexFeaturesEXTcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.When
VkPhysicalDeviceProvokingVertexFeaturesEXTis in thepNextchain ofVkDeviceCreateInfobut the transform feedback feature is not enabled, the value oftransformFeedbackPreservesProvokingVertexis ignored.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceProvokingVertexFeaturesEXT { VkStructureTypesType(); void *pNext(); VkBool32provokingVertexLast(); VkBool32transformFeedbackPreservesProvokingVertex(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceProvokingVertexFeaturesEXT.BufferAn array ofVkPhysicalDeviceProvokingVertexFeaturesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PROVOKINGVERTEXLASTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
TRANSFORMFEEDBACKPRESERVESPROVOKINGVERTEXThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceProvokingVertexFeaturesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceProvokingVertexFeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceProvokingVertexFeaturesEXTcalloc()Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceProvokingVertexFeaturesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceProvokingVertexFeaturesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceProvokingVertexFeaturesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceProvokingVertexFeaturesEXTcreate()Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceProvokingVertexFeaturesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceProvokingVertexFeaturesEXTcreate(long address)Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXTinstance for the specified memory address.static VkPhysicalDeviceProvokingVertexFeaturesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceProvokingVertexFeaturesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceProvokingVertexFeaturesEXTcreateSafe(long address)static VkPhysicalDeviceProvokingVertexFeaturesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceProvokingVertexFeaturesEXTmalloc()Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceProvokingVertexFeaturesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceProvokingVertexFeaturesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceProvokingVertexFeaturesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXTinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnprovokingVertexLast(long struct)Unsafe version ofprovokingVertexLast().static voidnprovokingVertexLast(long struct, int value)Unsafe version ofprovokingVertexLast.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intntransformFeedbackPreservesProvokingVertex(long struct)Unsafe version oftransformFeedbackPreservesProvokingVertex().static voidntransformFeedbackPreservesProvokingVertex(long struct, int value)Unsafe version oftransformFeedbackPreservesProvokingVertex.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceProvokingVertexFeaturesEXTpNext(long value)Sets the specified value to thepNext()field.booleanprovokingVertexLast()indicates whether the implementation supports thePROVOKING_VERTEX_MODE_LAST_VERTEX_EXTprovoking vertex mode (VkProvokingVertexModeEXT) for flat shading.VkPhysicalDeviceProvokingVertexFeaturesEXTprovokingVertexLast(boolean value)Sets the specified value to theprovokingVertexLast()field.VkPhysicalDeviceProvokingVertexFeaturesEXTset(int sType, long pNext, boolean provokingVertexLast, boolean transformFeedbackPreservesProvokingVertex)Initializes this struct with the specified values.VkPhysicalDeviceProvokingVertexFeaturesEXTset(VkPhysicalDeviceProvokingVertexFeaturesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceProvokingVertexFeaturesEXTsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceProvokingVertexFeaturesEXTsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROVOKING_VERTEX_FEATURES_EXTvalue to thesType()field.booleantransformFeedbackPreservesProvokingVertex()indicates that the order of vertices within each primitive written by transform feedback will preserve the provoking vertex.VkPhysicalDeviceProvokingVertexFeaturesEXTtransformFeedbackPreservesProvokingVertex(boolean value)Sets the specified value to thetransformFeedbackPreservesProvokingVertex()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceProvokingVertexFeaturesEXT
public VkPhysicalDeviceProvokingVertexFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceProvokingVertexFeaturesEXTinstance 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.
-
provokingVertexLast
public boolean provokingVertexLast()
indicates whether the implementation supports thePROVOKING_VERTEX_MODE_LAST_VERTEX_EXTprovoking vertex mode (VkProvokingVertexModeEXT) for flat shading.
-
transformFeedbackPreservesProvokingVertex
public boolean transformFeedbackPreservesProvokingVertex()
indicates that the order of vertices within each primitive written by transform feedback will preserve the provoking vertex. This does not apply to triangle fan primitives whentransformFeedbackPreservesTriangleFanProvokingVertexisFALSE.transformFeedbackPreservesProvokingVertexmust beFALSEwhen theVK_EXT_transform_feedbackextension is not supported.
-
sType
public VkPhysicalDeviceProvokingVertexFeaturesEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceProvokingVertexFeaturesEXT sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROVOKING_VERTEX_FEATURES_EXTvalue to thesType()field.
-
pNext
public VkPhysicalDeviceProvokingVertexFeaturesEXT pNext(long value)
Sets the specified value to thepNext()field.
-
provokingVertexLast
public VkPhysicalDeviceProvokingVertexFeaturesEXT provokingVertexLast(boolean value)
Sets the specified value to theprovokingVertexLast()field.
-
transformFeedbackPreservesProvokingVertex
public VkPhysicalDeviceProvokingVertexFeaturesEXT transformFeedbackPreservesProvokingVertex(boolean value)
Sets the specified value to thetransformFeedbackPreservesProvokingVertex()field.
-
set
public VkPhysicalDeviceProvokingVertexFeaturesEXT set(int sType, long pNext, boolean provokingVertexLast, boolean transformFeedbackPreservesProvokingVertex)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceProvokingVertexFeaturesEXT set(VkPhysicalDeviceProvokingVertexFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceProvokingVertexFeaturesEXT malloc()
Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceProvokingVertexFeaturesEXT calloc()
Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceProvokingVertexFeaturesEXT create()
Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceProvokingVertexFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceProvokingVertexFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceProvokingVertexFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceProvokingVertexFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceProvokingVertexFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceProvokingVertexFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceProvokingVertexFeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceProvokingVertexFeaturesEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceProvokingVertexFeaturesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceProvokingVertexFeaturesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceProvokingVertexFeaturesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceProvokingVertexFeaturesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceProvokingVertexFeaturesEXT.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().
-
nprovokingVertexLast
public static int nprovokingVertexLast(long struct)
Unsafe version ofprovokingVertexLast().
-
ntransformFeedbackPreservesProvokingVertex
public static int ntransformFeedbackPreservesProvokingVertex(long struct)
Unsafe version oftransformFeedbackPreservesProvokingVertex().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nprovokingVertexLast
public static void nprovokingVertexLast(long struct, int value)Unsafe version ofprovokingVertexLast.
-
ntransformFeedbackPreservesProvokingVertex
public static void ntransformFeedbackPreservesProvokingVertex(long struct, int value)Unsafe version oftransformFeedbackPreservesProvokingVertex.
-
-