Package org.lwjgl.vulkan
Class VkPhysicalDeviceShadingRateImagePropertiesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceShadingRateImagePropertiesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPhysicalDeviceShadingRateImagePropertiesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure describing shading rate image limits that can be supported by an implementation.Description
If the
VkPhysicalDeviceShadingRateImagePropertiesNV
structure is included in thepNext
chain ofVkPhysicalDeviceProperties2
, it is filled with the implementation-dependent limits.Valid Usage (Implicit)
See Also
Member documentation
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.
Layout
struct VkPhysicalDeviceShadingRateImagePropertiesNV { VkStructureType sType; void * pNext;
VkExtent2D
shadingRateTexelSize; uint32_t shadingRatePaletteSize; uint32_t shadingRateMaxCoarseSamples; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
An array ofVkPhysicalDeviceShadingRateImagePropertiesNV
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
PNEXT
SHADINGRATEMAXCOARSESAMPLES
SHADINGRATEPALETTESIZE
SHADINGRATETEXELSIZEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceShadingRateImagePropertiesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShadingRateImagePropertiesNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceShadingRateImagePropertiesNV
calloc()
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated withmemCalloc
.static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceShadingRateImagePropertiesNV
callocStack()
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShadingRateImagePropertiesNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShadingRateImagePropertiesNV
create()
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated withBufferUtils
.static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceShadingRateImagePropertiesNV
create(long address)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance for the specified memory address.static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance at the specified memory.static VkPhysicalDeviceShadingRateImagePropertiesNV
createSafe(long address)
static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
createSafe(long address, int capacity)
static VkPhysicalDeviceShadingRateImagePropertiesNV
malloc()
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated withmemAlloc
.static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceShadingRateImagePropertiesNV
mallocStack()
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceShadingRateImagePropertiesNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated on the specifiedMemoryStack
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nshadingRateMaxCoarseSamples(long struct)
Unsafe version ofshadingRateMaxCoarseSamples()
.static int
nshadingRatePaletteSize(long struct)
Unsafe version ofshadingRatePaletteSize()
.static VkExtent2D
nshadingRateTexelSize(long struct)
Unsafe version ofshadingRateTexelSize()
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkPhysicalDeviceShadingRateImagePropertiesNV
pNext(long value)
Sets the specified value to thepNext
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 theshadingRateMaxCoarseSamples
field.int
shadingRatePaletteSize()
Returns the value of theshadingRatePaletteSize
field.VkExtent2D
shadingRateTexelSize()
Returns aVkExtent2D
view of theshadingRateTexelSize
field.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceShadingRateImagePropertiesNV
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceShadingRateImagePropertiesNV
public VkPhysicalDeviceShadingRateImagePropertiesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShadingRateImagePropertiesNV
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
shadingRateTexelSize
public VkExtent2D shadingRateTexelSize()
Returns aVkExtent2D
view of theshadingRateTexelSize
field.
-
shadingRatePaletteSize
public int shadingRatePaletteSize()
Returns the value of theshadingRatePaletteSize
field.
-
shadingRateMaxCoarseSamples
public int shadingRateMaxCoarseSamples()
Returns the value of theshadingRateMaxCoarseSamples
field.
-
sType
public VkPhysicalDeviceShadingRateImagePropertiesNV sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceShadingRateImagePropertiesNV pNext(long value)
Sets the specified value to thepNext
field.
-
set
public VkPhysicalDeviceShadingRateImagePropertiesNV set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceShadingRateImagePropertiesNV set(VkPhysicalDeviceShadingRateImagePropertiesNV src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceShadingRateImagePropertiesNV malloc()
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceShadingRateImagePropertiesNV calloc()
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceShadingRateImagePropertiesNV create()
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceShadingRateImagePropertiesNV create(long address)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceShadingRateImagePropertiesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceShadingRateImagePropertiesNV mallocStack()
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceShadingRateImagePropertiesNV callocStack()
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceShadingRateImagePropertiesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceShadingRateImagePropertiesNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
nshadingRateTexelSize
public static VkExtent2D nshadingRateTexelSize(long struct)
Unsafe version ofshadingRateTexelSize()
.
-
nshadingRatePaletteSize
public static int nshadingRatePaletteSize(long struct)
Unsafe version ofshadingRatePaletteSize()
.
-
nshadingRateMaxCoarseSamples
public static int nshadingRateMaxCoarseSamples(long struct)
Unsafe version ofshadingRateMaxCoarseSamples()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
-