public class VkPhysicalDeviceShadingRateImagePropertiesNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the VkPhysicalDeviceShadingRateImagePropertiesNV structure is included in the pNext chain of VkPhysicalDeviceProperties2, it is filled with the implementation-dependent limits.
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.shadingRateTexelSize – indicates the width and height of the portion of the framebuffer corresponding to each texel in the shading rate image.shadingRatePaletteSize – indicates the maximum number of palette entries supported for the shading rate image.shadingRateMaxCoarseSamples – specifies the maximum number of coverage samples supported in a single fragment. If the product of the fragment size derived from the base shading rate and the number of coverage samples per pixel exceeds this limit, the final shading rate will be adjusted so that its product does not exceed the limit.
struct VkPhysicalDeviceShadingRateImagePropertiesNV {
VkStructureType sType;
void * pNext;
VkExtent2D shadingRateTexelSize;
uint32_t shadingRatePaletteSize;
uint32_t shadingRateMaxCoarseSamples;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
An array of
VkPhysicalDeviceShadingRateImagePropertiesNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SHADINGRATEMAXCOARSESAMPLES
The struct member offsets.
|
static int |
SHADINGRATEPALETTESIZE
The struct member offsets.
|
static int |
SHADINGRATETEXELSIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceShadingRateImagePropertiesNV(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceShadingRateImagePropertiesNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceShadingRateImagePropertiesNV |
calloc()
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV instance allocated with memCalloc. |
static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceShadingRateImagePropertiesNV |
callocStack()
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShadingRateImagePropertiesNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShadingRateImagePropertiesNV |
create()
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV instance allocated with BufferUtils. |
static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceShadingRateImagePropertiesNV |
create(long address)
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV instance for the specified memory address. |
static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance at the specified memory. |
static VkPhysicalDeviceShadingRateImagePropertiesNV |
createSafe(long address)
|
static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer |
createSafe(long address,
int capacity)
|
static VkPhysicalDeviceShadingRateImagePropertiesNV |
malloc()
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV instance allocated with memAlloc. |
static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceShadingRateImagePropertiesNV |
mallocStack()
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceShadingRateImagePropertiesNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShadingRateImagePropertiesNV 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 |
nshadingRateMaxCoarseSamples(long struct)
Unsafe version of
shadingRateMaxCoarseSamples(). |
static int |
nshadingRatePaletteSize(long struct)
Unsafe version of
shadingRatePaletteSize(). |
static VkExtent2D |
nshadingRateTexelSize(long struct)
Unsafe version of
shadingRateTexelSize(). |
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. |
VkPhysicalDeviceShadingRateImagePropertiesNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceShadingRateImagePropertiesNV |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkPhysicalDeviceShadingRateImagePropertiesNV |
set(VkPhysicalDeviceShadingRateImagePropertiesNV src)
Copies the specified struct data to this struct.
|
int |
shadingRateMaxCoarseSamples()
Returns the value of the
shadingRateMaxCoarseSamples field. |
int |
shadingRatePaletteSize()
Returns the value of the
shadingRatePaletteSize field. |
VkExtent2D |
shadingRateTexelSize()
Returns a
VkExtent2D view of the shadingRateTexelSize field. |
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceShadingRateImagePropertiesNV |
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 SHADINGRATETEXELSIZE
public static final int SHADINGRATEPALETTESIZE
public static final int SHADINGRATEMAXCOARSESAMPLES
public VkPhysicalDeviceShadingRateImagePropertiesNV(java.nio.ByteBuffer container)
VkPhysicalDeviceShadingRateImagePropertiesNV 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 VkExtent2D shadingRateTexelSize()
VkExtent2D view of the shadingRateTexelSize field.public int shadingRatePaletteSize()
shadingRatePaletteSize field.public int shadingRateMaxCoarseSamples()
shadingRateMaxCoarseSamples field.public VkPhysicalDeviceShadingRateImagePropertiesNV sType(int value)
sType field.public VkPhysicalDeviceShadingRateImagePropertiesNV pNext(long value)
pNext field.public VkPhysicalDeviceShadingRateImagePropertiesNV set(int sType, long pNext)
public VkPhysicalDeviceShadingRateImagePropertiesNV set(VkPhysicalDeviceShadingRateImagePropertiesNV src)
src - the source structpublic static VkPhysicalDeviceShadingRateImagePropertiesNV malloc()
VkPhysicalDeviceShadingRateImagePropertiesNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceShadingRateImagePropertiesNV calloc()
VkPhysicalDeviceShadingRateImagePropertiesNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceShadingRateImagePropertiesNV create()
VkPhysicalDeviceShadingRateImagePropertiesNV instance allocated with BufferUtils.public static VkPhysicalDeviceShadingRateImagePropertiesNV create(long address)
VkPhysicalDeviceShadingRateImagePropertiesNV instance for the specified memory address.@Nullable public static VkPhysicalDeviceShadingRateImagePropertiesNV createSafe(long address)
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer malloc(int capacity)
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer calloc(int capacity)
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer create(int capacity)
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer create(long address, int capacity)
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceShadingRateImagePropertiesNV mallocStack()
VkPhysicalDeviceShadingRateImagePropertiesNV instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceShadingRateImagePropertiesNV callocStack()
VkPhysicalDeviceShadingRateImagePropertiesNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceShadingRateImagePropertiesNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShadingRateImagePropertiesNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceShadingRateImagePropertiesNV callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShadingRateImagePropertiesNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer mallocStack(int capacity)
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer callocStack(int capacity)
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShadingRateImagePropertiesNV.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 VkExtent2D nshadingRateTexelSize(long struct)
shadingRateTexelSize().public static int nshadingRatePaletteSize(long struct)
shadingRatePaletteSize().public static int nshadingRateMaxCoarseSamples(long struct)
shadingRateMaxCoarseSamples().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.