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 of theVkPhysicalDeviceProperties2structure passed toGetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.These properties are related to the shading rate image feature.
Valid Usage (Implicit)
See Also
Layout
struct VkPhysicalDeviceShadingRateImagePropertiesNV { VkStructureTypesType(); void *pNext();VkExtent2DshadingRateTexelSize(); uint32_tshadingRatePaletteSize(); uint32_tshadingRateMaxCoarseSamples(); }
-
-
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 Deprecated 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 VkPhysicalDeviceShadingRateImagePropertiesNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShadingRateImagePropertiesNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShadingRateImagePropertiesNVcallocStack()Deprecated.static VkPhysicalDeviceShadingRateImagePropertiesNV.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceShadingRateImagePropertiesNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceShadingRateImagePropertiesNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkPhysicalDeviceShadingRateImagePropertiesNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceShadingRateImagePropertiesNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceShadingRateImagePropertiesNVmallocStack()Deprecated.static VkPhysicalDeviceShadingRateImagePropertiesNV.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceShadingRateImagePropertiesNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceShadingRateImagePropertiesNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceShadingRateImagePropertiesNVpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceShadingRateImagePropertiesNVset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceShadingRateImagePropertiesNVset(VkPhysicalDeviceShadingRateImagePropertiesNV src)Copies the specified struct data to this struct.intshadingRateMaxCoarseSamples()specifies the maximum number of coverage samples supported in a single fragment.intshadingRatePaletteSize()indicates the maximum number of palette entries supported for the shading rate image.VkExtent2DshadingRateTexelSize()indicates the width and height of the portion of the framebuffer corresponding to each texel in the shading rate image.intsizeof()intsType()the type of this structure.VkPhysicalDeviceShadingRateImagePropertiesNVsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceShadingRateImagePropertiesNVsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADING_RATE_IMAGE_PROPERTIES_NVvalue to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
shadingRateTexelSize
public VkExtent2D shadingRateTexelSize()
indicates the width and height of the portion of the framebuffer corresponding to each texel in the shading rate image.
-
shadingRatePaletteSize
public int shadingRatePaletteSize()
indicates the maximum number of palette entries supported for the shading rate image.
-
shadingRateMaxCoarseSamples
public int 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.
-
sType
public VkPhysicalDeviceShadingRateImagePropertiesNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceShadingRateImagePropertiesNV sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADING_RATE_IMAGE_PROPERTIES_NVvalue 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 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
@Deprecated public static VkPhysicalDeviceShadingRateImagePropertiesNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceShadingRateImagePropertiesNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceShadingRateImagePropertiesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceShadingRateImagePropertiesNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceShadingRateImagePropertiesNV.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 VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceShadingRateImagePropertiesNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImagePropertiesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceShadingRateImagePropertiesNV calloc(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
-
malloc
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer malloc(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
-
calloc
public static VkPhysicalDeviceShadingRateImagePropertiesNV.Buffer calloc(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.
-
-