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.NativeResource
Structure describing shading rate image features that can be supported by an implementation.Description
See Shading Rate Image for more information.
If the
VkPhysicalDeviceShadingRateImageFeaturesNV
structure is included in thepNext
chain ofVkPhysicalDeviceFeatures2
, it is filled with values indicating whether the feature is supported.VkPhysicalDeviceShadingRateImageFeaturesNV
can also be used in thepNext
chain ofVkDeviceCreateInfo
to 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 theShadingRateNV
SPIR-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 class
VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
An array ofVkPhysicalDeviceShadingRateImageFeaturesNV
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
PNEXT
SHADINGRATECOARSESAMPLEORDER
SHADINGRATEIMAGEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceShadingRateImageFeaturesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShadingRateImageFeaturesNV
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 VkPhysicalDeviceShadingRateImageFeaturesNV
calloc()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
instance allocated withmemCalloc
.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceShadingRateImageFeaturesNV
callocStack()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShadingRateImageFeaturesNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShadingRateImageFeaturesNV
create()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
instance allocated withBufferUtils
.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceShadingRateImageFeaturesNV
create(long address)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
instance for the specified memory address.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
instance at the specified memory.static VkPhysicalDeviceShadingRateImageFeaturesNV
createSafe(long address)
static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
createSafe(long address, int capacity)
static VkPhysicalDeviceShadingRateImageFeaturesNV
malloc()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
instance allocated withmemAlloc
.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceShadingRateImageFeaturesNV
mallocStack()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceShadingRateImageFeaturesNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
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
nshadingRateCoarseSampleOrder(long struct)
Unsafe version ofshadingRateCoarseSampleOrder()
.static void
nshadingRateCoarseSampleOrder(long struct, int value)
Unsafe version ofshadingRateCoarseSampleOrder
.static int
nshadingRateImage(long struct)
Unsafe version ofshadingRateImage()
.static void
nshadingRateImage(long struct, int value)
Unsafe version ofshadingRateImage
.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.VkPhysicalDeviceShadingRateImageFeaturesNV
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceShadingRateImageFeaturesNV
set(int sType, long pNext, boolean shadingRateImage, boolean shadingRateCoarseSampleOrder)
Initializes this struct with the specified values.VkPhysicalDeviceShadingRateImageFeaturesNV
set(VkPhysicalDeviceShadingRateImageFeaturesNV src)
Copies the specified struct data to this struct.boolean
shadingRateCoarseSampleOrder()
Returns the value of theshadingRateCoarseSampleOrder
field.VkPhysicalDeviceShadingRateImageFeaturesNV
shadingRateCoarseSampleOrder(boolean value)
Sets the specified value to theshadingRateCoarseSampleOrder
field.boolean
shadingRateImage()
Returns the value of theshadingRateImage
field.VkPhysicalDeviceShadingRateImageFeaturesNV
shadingRateImage(boolean value)
Sets the specified value to theshadingRateImage
field.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceShadingRateImageFeaturesNV
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceShadingRateImageFeaturesNV
public VkPhysicalDeviceShadingRateImageFeaturesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShadingRateImageFeaturesNV
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.
-
shadingRateImage
public boolean shadingRateImage()
Returns the value of theshadingRateImage
field.
-
shadingRateCoarseSampleOrder
public boolean shadingRateCoarseSampleOrder()
Returns the value of theshadingRateCoarseSampleOrder
field.
-
sType
public VkPhysicalDeviceShadingRateImageFeaturesNV sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceShadingRateImageFeaturesNV pNext(long value)
Sets the specified value to thepNext
field.
-
shadingRateImage
public VkPhysicalDeviceShadingRateImageFeaturesNV shadingRateImage(boolean value)
Sets the specified value to theshadingRateImage
field.
-
shadingRateCoarseSampleOrder
public VkPhysicalDeviceShadingRateImageFeaturesNV shadingRateCoarseSampleOrder(boolean value)
Sets the specified value to theshadingRateCoarseSampleOrder
field.
-
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 newVkPhysicalDeviceShadingRateImageFeaturesNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV calloc()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceShadingRateImageFeaturesNV create()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceShadingRateImageFeaturesNV create(long address)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceShadingRateImageFeaturesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
instance 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 newVkPhysicalDeviceShadingRateImageFeaturesNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceShadingRateImageFeaturesNV callocStack()
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceShadingRateImageFeaturesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceShadingRateImageFeaturesNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceShadingRateImageFeaturesNV.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceShadingRateImageFeaturesNV.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.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()
.
-
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
.
-
-