Package org.lwjgl.vulkan
Class VkPhysicalDeviceShadingRateImageFeaturesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceShadingRateImageFeaturesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceShadingRateImageFeaturesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing shading rate image features that can be supported by an implementation.Description
See Shading Rate Image for more information.
If the
VkPhysicalDeviceShadingRateImageFeaturesNVstructure is included in thepNextchain ofVkPhysicalDeviceFeatures2, it is filled with values indicating whether the feature is supported.VkPhysicalDeviceShadingRateImageFeaturesNVcan also be used in thepNextchain ofVkDeviceCreateInfoto enable features.Valid Usage (Implicit)
Member documentation
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 theShadingRateNVSPIR-V execution mode.shadingRateCoarseSampleOrder– indicates that the implementation supports a user-configurable ordering of coverage samples in fragments larger than one pixel.
Layout
struct VkPhysicalDeviceShadingRateImageFeaturesNV { VkStructureType sType; void * pNext; VkBool32 shadingRateImage; VkBool32 shadingRateCoarseSampleOrder; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceShadingRateImageFeaturesNV.BufferAn array ofVkPhysicalDeviceShadingRateImageFeaturesNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
SHADINGRATECOARSESAMPLEORDER
SHADINGRATEIMAGEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceShadingRateImageFeaturesNV(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceShadingRateImageFeaturesNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceShadingRateImageFeaturesNVcalloc()Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated withmemCalloc.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceShadingRateImageFeaturesNVcallocStack()Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShadingRateImageFeaturesNV.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShadingRateImageFeaturesNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShadingRateImageFeaturesNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShadingRateImageFeaturesNVcreate()Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated withBufferUtils.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffercreate(int capacity)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceShadingRateImageFeaturesNVcreate(long address)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance for the specified memory address.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance at the specified memory.static VkPhysicalDeviceShadingRateImageFeaturesNVcreateSafe(long address)static VkPhysicalDeviceShadingRateImageFeaturesNV.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceShadingRateImageFeaturesNVmalloc()Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated withmemAlloc.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceShadingRateImageFeaturesNVmallocStack()Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceShadingRateImageFeaturesNV.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceShadingRateImageFeaturesNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceShadingRateImageFeaturesNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnshadingRateCoarseSampleOrder(long struct)Unsafe version ofshadingRateCoarseSampleOrder().static voidnshadingRateCoarseSampleOrder(long struct, int value)Unsafe version ofshadingRateCoarseSampleOrder.static intnshadingRateImage(long struct)Unsafe version ofshadingRateImage().static voidnshadingRateImage(long struct, int value)Unsafe version ofshadingRateImage.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceShadingRateImageFeaturesNVpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceShadingRateImageFeaturesNVset(int sType, long pNext, boolean shadingRateImage, boolean shadingRateCoarseSampleOrder)Initializes this struct with the specified values.VkPhysicalDeviceShadingRateImageFeaturesNVset(VkPhysicalDeviceShadingRateImageFeaturesNV src)Copies the specified struct data to this struct.booleanshadingRateCoarseSampleOrder()Returns the value of theshadingRateCoarseSampleOrderfield.VkPhysicalDeviceShadingRateImageFeaturesNVshadingRateCoarseSampleOrder(boolean value)Sets the specified value to theshadingRateCoarseSampleOrderfield.booleanshadingRateImage()Returns the value of theshadingRateImagefield.VkPhysicalDeviceShadingRateImageFeaturesNVshadingRateImage(boolean value)Sets the specified value to theshadingRateImagefield.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceShadingRateImageFeaturesNVsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceShadingRateImageFeaturesNV
public VkPhysicalDeviceShadingRateImageFeaturesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShadingRateImageFeaturesNVinstance 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.
-
shadingRateImage
public boolean shadingRateImage()
Returns the value of theshadingRateImagefield.
-
shadingRateCoarseSampleOrder
public boolean shadingRateCoarseSampleOrder()
Returns the value of theshadingRateCoarseSampleOrderfield.
-
sType
public VkPhysicalDeviceShadingRateImageFeaturesNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceShadingRateImageFeaturesNV pNext(long value)
Sets the specified value to thepNextfield.
-
shadingRateImage
public VkPhysicalDeviceShadingRateImageFeaturesNV shadingRateImage(boolean value)
Sets the specified value to theshadingRateImagefield.
-
shadingRateCoarseSampleOrder
public VkPhysicalDeviceShadingRateImageFeaturesNV shadingRateCoarseSampleOrder(boolean value)
Sets the specified value to theshadingRateCoarseSampleOrderfield.
-
set
public VkPhysicalDeviceShadingRateImageFeaturesNV set(int sType, long pNext, boolean shadingRateImage, boolean shadingRateCoarseSampleOrder)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceShadingRateImageFeaturesNV set(VkPhysicalDeviceShadingRateImageFeaturesNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV malloc()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV calloc()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceShadingRateImageFeaturesNV create()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceShadingRateImageFeaturesNV create(long address)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceShadingRateImageFeaturesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceShadingRateImageFeaturesNV mallocStack()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceShadingRateImageFeaturesNV callocStack()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceShadingRateImageFeaturesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceShadingRateImageFeaturesNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.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().
-
nshadingRateImage
public static int nshadingRateImage(long struct)
Unsafe version ofshadingRateImage().
-
nshadingRateCoarseSampleOrder
public static int nshadingRateCoarseSampleOrder(long struct)
Unsafe version ofshadingRateCoarseSampleOrder().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nshadingRateImage
public static void nshadingRateImage(long struct, int value)Unsafe version ofshadingRateImage.
-
nshadingRateCoarseSampleOrder
public static void nshadingRateCoarseSampleOrder(long struct, int value)Unsafe version ofshadingRateCoarseSampleOrder.
-
-