Package org.lwjgl.vulkan
Class VkPhysicalDeviceShadingRateImageFeaturesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceShadingRateImageFeaturesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceShadingRateImageFeaturesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing shading rate image features that can be supported by an implementation.Description
See Shading Rate Image for more information.
If the
VkPhysicalDeviceShadingRateImageFeaturesNVstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceShadingRateImageFeaturesNVcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceShadingRateImageFeaturesNV { VkStructureTypesType(); void *pNext(); VkBool32shadingRateImage(); VkBool32shadingRateCoarseSampleOrder(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceShadingRateImageFeaturesNV.BufferAn array ofVkPhysicalDeviceShadingRateImageFeaturesNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
SHADINGRATECOARSESAMPLEORDER
SHADINGRATEIMAGEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceShadingRateImageFeaturesNV(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceShadingRateImageFeaturesNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkPhysicalDeviceShadingRateImageFeaturesNVcalloc()Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated withmemCalloc.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShadingRateImageFeaturesNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShadingRateImageFeaturesNVcallocStack()Deprecated.static VkPhysicalDeviceShadingRateImageFeaturesNV.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceShadingRateImageFeaturesNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceShadingRateImageFeaturesNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceShadingRateImageFeaturesNVcreate()Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated withBufferUtils.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffercreate(int capacity)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceShadingRateImageFeaturesNVcreate(long address)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance for the specified memory address.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance at the specified memory.static VkPhysicalDeviceShadingRateImageFeaturesNVcreateSafe(long address)static VkPhysicalDeviceShadingRateImageFeaturesNV.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceShadingRateImageFeaturesNVmalloc()Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated withmemAlloc.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceShadingRateImageFeaturesNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceShadingRateImageFeaturesNVmallocStack()Deprecated.static VkPhysicalDeviceShadingRateImageFeaturesNV.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceShadingRateImageFeaturesNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceShadingRateImageFeaturesNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnshadingRateCoarseSampleOrder(long struct)Unsafe version ofshadingRateCoarseSampleOrder().static voidnshadingRateCoarseSampleOrder(long struct, int value)Unsafe version ofshadingRateCoarseSampleOrder.static intnshadingRateImage(long struct)Unsafe version ofshadingRateImage().static voidnshadingRateImage(long struct, int value)Unsafe version ofshadingRateImage.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.VkPhysicalDeviceShadingRateImageFeaturesNVpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceShadingRateImageFeaturesNVset(int sType, long pNext, boolean shadingRateImage, boolean shadingRateCoarseSampleOrder)Initializes this struct with the specified values.VkPhysicalDeviceShadingRateImageFeaturesNVset(VkPhysicalDeviceShadingRateImageFeaturesNV src)Copies the specified struct data to this struct.booleanshadingRateCoarseSampleOrder()indicates that the implementation supports a user-configurable ordering of coverage samples in fragments larger than one pixel.VkPhysicalDeviceShadingRateImageFeaturesNVshadingRateCoarseSampleOrder(boolean value)Sets the specified value to theshadingRateCoarseSampleOrder()field.booleanshadingRateImage()indicates that the implementation supports the use of a shading rate image to derive an effective shading rate for fragment processing.VkPhysicalDeviceShadingRateImageFeaturesNVshadingRateImage(boolean value)Sets the specified value to theshadingRateImage()field.intsizeof()intsType()the type of this structure.VkPhysicalDeviceShadingRateImageFeaturesNVsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceShadingRateImageFeaturesNVsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADING_RATE_IMAGE_FEATURES_NVvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceShadingRateImageFeaturesNV
public VkPhysicalDeviceShadingRateImageFeaturesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShadingRateImageFeaturesNVinstance 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.
-
shadingRateImage
public boolean shadingRateImage()
indicates that the implementation supports the use of a shading rate image to derive an effective shading rate for fragment processing. It also indicates that the implementation supports theShadingRateNVSPIR-V execution mode.
-
shadingRateCoarseSampleOrder
public boolean shadingRateCoarseSampleOrder()
indicates that the implementation supports a user-configurable ordering of coverage samples in fragments larger than one pixel.
-
sType
public VkPhysicalDeviceShadingRateImageFeaturesNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceShadingRateImageFeaturesNV sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADING_RATE_IMAGE_FEATURES_NVvalue to thesType()field.
-
pNext
public VkPhysicalDeviceShadingRateImageFeaturesNV pNext(long value)
Sets the specified value to thepNext()field.
-
shadingRateImage
public VkPhysicalDeviceShadingRateImageFeaturesNV shadingRateImage(boolean value)
Sets the specified value to theshadingRateImage()field.
-
shadingRateCoarseSampleOrder
public VkPhysicalDeviceShadingRateImageFeaturesNV shadingRateCoarseSampleOrder(boolean value)
Sets the specified value to theshadingRateCoarseSampleOrder()field.
-
set
public VkPhysicalDeviceShadingRateImageFeaturesNV set(int sType, long pNext, boolean shadingRateImage, boolean shadingRateCoarseSampleOrder)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceShadingRateImageFeaturesNV set(VkPhysicalDeviceShadingRateImageFeaturesNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV malloc()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV calloc()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceShadingRateImageFeaturesNV create()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceShadingRateImageFeaturesNV create(long address)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceShadingRateImageFeaturesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkPhysicalDeviceShadingRateImageFeaturesNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceShadingRateImageFeaturesNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceShadingRateImageFeaturesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceShadingRateImageFeaturesNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.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().
-
nshadingRateImage
public static int nshadingRateImage(long struct)
Unsafe version ofshadingRateImage().
-
nshadingRateCoarseSampleOrder
public static int nshadingRateCoarseSampleOrder(long struct)
Unsafe version ofshadingRateCoarseSampleOrder().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nshadingRateImage
public static void nshadingRateImage(long struct, int value)Unsafe version ofshadingRateImage.
-
nshadingRateCoarseSampleOrder
public static void nshadingRateCoarseSampleOrder(long struct, int value)Unsafe version ofshadingRateCoarseSampleOrder.
-
-