Package org.lwjgl.vulkan
Class VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure indicating support for fragment shading rate enums.Description
If the
VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV { VkStructureTypesType(); void *pNext(); VkBool32fragmentShadingRateEnums(); VkBool32supersampleFragmentShadingRates(); VkBool32noInvocationFragmentShadingRates(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.BufferAn array ofVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFRAGMENTSHADINGRATEENUMS
NOINVOCATIONFRAGMENTSHADINGRATES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
SUPERSAMPLEFRAGMENTSHADINGRATESThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVcalloc()Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance allocated withmemCalloc.static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVcreate()Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance allocated withBufferUtils.static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Buffercreate(int capacity)Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVcreate(long address)Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance for the specified memory address.static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Bufferinstance at the specified memory.static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVcreateSafe(long address)static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.BuffercreateSafe(long address, int capacity)booleanfragmentShadingRateEnums()indicates that the implementation supports specifying fragment shading rates using theVkFragmentShadingRateNVenumerated type.VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVfragmentShadingRateEnums(boolean value)Sets the specified value to thefragmentShadingRateEnums()field.static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVmalloc()Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance allocated withmemAlloc.static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance allocated on the specifiedMemoryStack.static intnfragmentShadingRateEnums(long struct)Unsafe version offragmentShadingRateEnums().static voidnfragmentShadingRateEnums(long struct, int value)Unsafe version offragmentShadingRateEnums.static intnnoInvocationFragmentShadingRates(long struct)Unsafe version ofnoInvocationFragmentShadingRates().static voidnnoInvocationFragmentShadingRates(long struct, int value)Unsafe version ofnoInvocationFragmentShadingRates.booleannoInvocationFragmentShadingRates()indicates that the implementation supports a fragment shading rate enum value indicating that no fragment shaders should be invoked when that shading rate is used.VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVnoInvocationFragmentShadingRates(boolean value)Sets the specified value to thenoInvocationFragmentShadingRates()field.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnsupersampleFragmentShadingRates(long struct)Unsafe version ofsupersampleFragmentShadingRates().static voidnsupersampleFragmentShadingRates(long struct, int value)Unsafe version ofsupersampleFragmentShadingRates.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVset(int sType, long pNext, boolean fragmentShadingRateEnums, boolean supersampleFragmentShadingRates, boolean noInvocationFragmentShadingRates)Initializes this struct with the specified values.VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVset(VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_FEATURES_NVvalue to thesType()field.booleansupersampleFragmentShadingRates()indicates that the implementation supports fragment shading rate enum values indicating more than one invocation per fragment.VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVsupersampleFragmentShadingRates(boolean value)Sets the specified value to thesupersampleFragmentShadingRates()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV
public VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance 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.
-
fragmentShadingRateEnums
public boolean fragmentShadingRateEnums()
indicates that the implementation supports specifying fragment shading rates using theVkFragmentShadingRateNVenumerated type.
-
supersampleFragmentShadingRates
public boolean supersampleFragmentShadingRates()
indicates that the implementation supports fragment shading rate enum values indicating more than one invocation per fragment.
-
noInvocationFragmentShadingRates
public boolean noInvocationFragmentShadingRates()
indicates that the implementation supports a fragment shading rate enum value indicating that no fragment shaders should be invoked when that shading rate is used.
-
sType
public VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_FEATURES_NVvalue to thesType()field.
-
pNext
public VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV pNext(long value)
Sets the specified value to thepNext()field.
-
fragmentShadingRateEnums
public VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV fragmentShadingRateEnums(boolean value)
Sets the specified value to thefragmentShadingRateEnums()field.
-
supersampleFragmentShadingRates
public VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV supersampleFragmentShadingRates(boolean value)
Sets the specified value to thesupersampleFragmentShadingRates()field.
-
noInvocationFragmentShadingRates
public VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV noInvocationFragmentShadingRates(boolean value)
Sets the specified value to thenoInvocationFragmentShadingRates()field.
-
set
public VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV set(int sType, long pNext, boolean fragmentShadingRateEnums, boolean supersampleFragmentShadingRates, boolean noInvocationFragmentShadingRates)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV set(VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV malloc()
Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV calloc()
Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV create()
Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV create(long address)
Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV.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().
-
nfragmentShadingRateEnums
public static int nfragmentShadingRateEnums(long struct)
Unsafe version offragmentShadingRateEnums().
-
nsupersampleFragmentShadingRates
public static int nsupersampleFragmentShadingRates(long struct)
Unsafe version ofsupersampleFragmentShadingRates().
-
nnoInvocationFragmentShadingRates
public static int nnoInvocationFragmentShadingRates(long struct)
Unsafe version ofnoInvocationFragmentShadingRates().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nfragmentShadingRateEnums
public static void nfragmentShadingRateEnums(long struct, int value)Unsafe version offragmentShadingRateEnums.
-
nsupersampleFragmentShadingRates
public static void nsupersampleFragmentShadingRates(long struct, int value)Unsafe version ofsupersampleFragmentShadingRates.
-
nnoInvocationFragmentShadingRates
public static void nnoInvocationFragmentShadingRates(long struct, int value)Unsafe version ofnoInvocationFragmentShadingRates.
-
-