public class VkPhysicalDeviceShadingRateImageFeaturesNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
See Shading Rate Image for more information.
If the VkPhysicalDeviceShadingRateImageFeaturesNV structure is included in the pNext chain of VkPhysicalDeviceFeatures2, it is filled with values indicating whether the feature is supported. VkPhysicalDeviceShadingRateImageFeaturesNV can also be included in the pNext chain of VkDeviceCreateInfo to enable features.
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 the ShadingRateNV SPIR-V execution mode.shadingRateCoarseSampleOrder – indicates that the implementation supports a user-configurable ordering of coverage samples in fragments larger than one pixel.
struct VkPhysicalDeviceShadingRateImageFeaturesNV {
VkStructureType sType;
void * pNext;
VkBool32 shadingRateImage;
VkBool32 shadingRateCoarseSampleOrder;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
An array of
VkPhysicalDeviceShadingRateImageFeaturesNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SHADINGRATECOARSESAMPLEORDER
The struct member offsets.
|
static int |
SHADINGRATEIMAGE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceShadingRateImageFeaturesNV(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceShadingRateImageFeaturesNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceShadingRateImageFeaturesNV |
calloc()
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated with memCalloc. |
static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceShadingRateImageFeaturesNV |
callocStack()
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShadingRateImageFeaturesNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShadingRateImageFeaturesNV |
create()
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated with BufferUtils. |
static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceShadingRateImageFeaturesNV |
create(long address)
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV instance for the specified memory address. |
static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance at the specified memory. |
static VkPhysicalDeviceShadingRateImageFeaturesNV |
createSafe(long address)
|
static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer |
createSafe(long address,
int capacity)
|
static VkPhysicalDeviceShadingRateImageFeaturesNV |
malloc()
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated with memAlloc. |
static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceShadingRateImageFeaturesNV |
mallocStack()
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceShadingRateImageFeaturesNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated on the specified MemoryStack. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nshadingRateCoarseSampleOrder(long struct)
Unsafe version of
shadingRateCoarseSampleOrder(). |
static void |
nshadingRateCoarseSampleOrder(long struct,
int value)
Unsafe version of
shadingRateCoarseSampleOrder. |
static int |
nshadingRateImage(long struct)
Unsafe version of
shadingRateImage(). |
static void |
nshadingRateImage(long struct,
int value)
Unsafe version of
shadingRateImage. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceShadingRateImageFeaturesNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceShadingRateImageFeaturesNV |
set(int sType,
long pNext,
boolean shadingRateImage,
boolean shadingRateCoarseSampleOrder)
Initializes this struct with the specified values.
|
VkPhysicalDeviceShadingRateImageFeaturesNV |
set(VkPhysicalDeviceShadingRateImageFeaturesNV src)
Copies the specified struct data to this struct.
|
boolean |
shadingRateCoarseSampleOrder()
Returns the value of the
shadingRateCoarseSampleOrder field. |
VkPhysicalDeviceShadingRateImageFeaturesNV |
shadingRateCoarseSampleOrder(boolean value)
Sets the specified value to the
shadingRateCoarseSampleOrder field. |
boolean |
shadingRateImage()
Returns the value of the
shadingRateImage field. |
VkPhysicalDeviceShadingRateImageFeaturesNV |
shadingRateImage(boolean value)
Sets the specified value to the
shadingRateImage field. |
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceShadingRateImageFeaturesNV |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int SHADINGRATEIMAGE
public static final int SHADINGRATECOARSESAMPLEORDER
public VkPhysicalDeviceShadingRateImageFeaturesNV(java.nio.ByteBuffer container)
VkPhysicalDeviceShadingRateImageFeaturesNV instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public boolean shadingRateImage()
shadingRateImage field.public boolean shadingRateCoarseSampleOrder()
shadingRateCoarseSampleOrder field.public VkPhysicalDeviceShadingRateImageFeaturesNV sType(int value)
sType field.public VkPhysicalDeviceShadingRateImageFeaturesNV pNext(long value)
pNext field.public VkPhysicalDeviceShadingRateImageFeaturesNV shadingRateImage(boolean value)
shadingRateImage field.public VkPhysicalDeviceShadingRateImageFeaturesNV shadingRateCoarseSampleOrder(boolean value)
shadingRateCoarseSampleOrder field.public VkPhysicalDeviceShadingRateImageFeaturesNV set(int sType, long pNext, boolean shadingRateImage, boolean shadingRateCoarseSampleOrder)
public VkPhysicalDeviceShadingRateImageFeaturesNV set(VkPhysicalDeviceShadingRateImageFeaturesNV src)
src - the source structpublic static VkPhysicalDeviceShadingRateImageFeaturesNV malloc()
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceShadingRateImageFeaturesNV calloc()
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceShadingRateImageFeaturesNV create()
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated with BufferUtils.public static VkPhysicalDeviceShadingRateImageFeaturesNV create(long address)
VkPhysicalDeviceShadingRateImageFeaturesNV instance for the specified memory address.@Nullable public static VkPhysicalDeviceShadingRateImageFeaturesNV createSafe(long address)
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer malloc(int capacity)
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer calloc(int capacity)
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer create(int capacity)
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer create(long address, int capacity)
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceShadingRateImageFeaturesNV mallocStack()
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceShadingRateImageFeaturesNV callocStack()
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceShadingRateImageFeaturesNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceShadingRateImageFeaturesNV callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShadingRateImageFeaturesNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer mallocStack(int capacity)
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer callocStack(int capacity)
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nshadingRateImage(long struct)
shadingRateImage().public static int nshadingRateCoarseSampleOrder(long struct)
shadingRateCoarseSampleOrder().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nshadingRateImage(long struct,
int value)
shadingRateImage.public static void nshadingRateCoarseSampleOrder(long struct,
int value)
shadingRateCoarseSampleOrder.Copyright LWJGL. All Rights Reserved. License terms.