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.NativeResourceStructure describing shading rate image limits that can be supported by an implementation.Description
If the
VkPhysicalDeviceShadingRateImagePropertiesNVstructure is included in thepNextchain ofVkPhysicalDeviceProperties2, it is filled with the implementation-dependent limits.Valid Usage (Implicit)
See Also
Member documentation
sType– the type of this structure.pNext–NULLor 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;VkExtent2DshadingRateTexelSize; uint32_t shadingRatePaletteSize; uint32_t shadingRateMaxCoarseSamples; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceShadingRateImagePropertiesNV.BufferAn array ofVkPhysicalDeviceShadingRateImagePropertiesNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
SHADINGRATEMAXCOARSESAMPLES
SHADINGRATEPALETTESIZE
SHADINGRATETEXELSIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceShadingRateImagePropertiesNV(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceShadingRateImagePropertiesNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceShadingRateImagePropertiesNVcalloc()Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated withmemCalloc.static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceShadingRateImagePropertiesNVcallocStack()Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShadingRateImagePropertiesNV.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShadingRateImagePropertiesNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShadingRateImagePropertiesNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShadingRateImagePropertiesNVcreate()Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated withBufferUtils.static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffercreate(int capacity)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceShadingRateImagePropertiesNVcreate(long address)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance for the specified memory address.static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance at the specified memory.static VkPhysicalDeviceShadingRateImagePropertiesNVcreateSafe(long address)static VkPhysicalDeviceShadingRateImagePropertiesNV.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceShadingRateImagePropertiesNVmalloc()Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated withmemAlloc.static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceShadingRateImagePropertiesNVmallocStack()Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceShadingRateImagePropertiesNV.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceShadingRateImagePropertiesNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceShadingRateImagePropertiesNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnshadingRateMaxCoarseSamples(long struct)Unsafe version ofshadingRateMaxCoarseSamples().static intnshadingRatePaletteSize(long struct)Unsafe version ofshadingRatePaletteSize().static VkExtent2DnshadingRateTexelSize(long struct)Unsafe version ofshadingRateTexelSize().static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceShadingRateImagePropertiesNVpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceShadingRateImagePropertiesNVset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceShadingRateImagePropertiesNVset(VkPhysicalDeviceShadingRateImagePropertiesNV src)Copies the specified struct data to this struct.intshadingRateMaxCoarseSamples()Returns the value of theshadingRateMaxCoarseSamplesfield.intshadingRatePaletteSize()Returns the value of theshadingRatePaletteSizefield.VkExtent2DshadingRateTexelSize()Returns aVkExtent2Dview of theshadingRateTexelSizefield.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceShadingRateImagePropertiesNVsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceShadingRateImagePropertiesNV
public VkPhysicalDeviceShadingRateImagePropertiesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShadingRateImagePropertiesNVinstance 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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
shadingRateTexelSize
public VkExtent2D shadingRateTexelSize()
Returns aVkExtent2Dview of theshadingRateTexelSizefield.
-
shadingRatePaletteSize
public int shadingRatePaletteSize()
Returns the value of theshadingRatePaletteSizefield.
-
shadingRateMaxCoarseSamples
public int shadingRateMaxCoarseSamples()
Returns the value of theshadingRateMaxCoarseSamplesfield.
-
sType
public VkPhysicalDeviceShadingRateImagePropertiesNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceShadingRateImagePropertiesNV pNext(long value)
Sets the specified value to thepNextfield.
-
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 newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceShadingRateImagePropertiesNV calloc()
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceShadingRateImagePropertiesNV create()
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceShadingRateImagePropertiesNV create(long address)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceShadingRateImagePropertiesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance 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 newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceShadingRateImagePropertiesNV callocStack()
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceShadingRateImagePropertiesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceShadingRateImagePropertiesNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.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().
-
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.
-
-