public class VkCoarseSampleOrderCustomNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
When using a custom sample ordering, element i in pSampleLocations specifies a specific pixel and per-pixel coverage sample number that corresponds to the coverage sample numbered i in the multi-pixel fragment.
shadingRate must be a shading rate that generates fragments with more than one pixel.sampleCount must correspond to a sample count enumerated in VkSampleCountFlags whose corresponding bit is set in VkPhysicalDeviceLimits::framebufferNoAttachmentsSampleCounts.sampleLocationCount must be equal to the product of sampleCount, the fragment width for shadingRate, and the fragment height for shadingRate.sampleLocationCount must be less than or equal to the value of VkPhysicalDeviceShadingRateImagePropertiesNV::shadingRateMaxCoarseSamples.pSampleLocations must contain exactly one entry for every combination of valid values for pixelX, pixelY, and sample in the structure VkCoarseSampleOrderCustomNV.shadingRate must be a valid VkShadingRatePaletteEntryNV valuepSampleLocations must be a valid pointer to an array of sampleLocationCount VkCoarseSampleLocationNV structuressampleLocationCount must be greater than 0VkCoarseSampleLocationNV, VkPipelineViewportCoarseSampleOrderStateCreateInfoNV, CmdSetCoarseSampleOrderNV
shadingRate – a shading rate palette entry that identifies the fragment width and height for the combination of fragment area and per-pixel coverage sample count to control.sampleCount – identifies the per-pixel coverage sample count for the combination of fragment area and coverage sample count to control.sampleLocationCount – specifies the number of sample locations in the custom ordering.pSampleLocations – a pointer to an array of VkCoarseSampleOrderCustomNV structures specifying the location of each sample in the custom ordering.
struct VkCoarseSampleOrderCustomNV {
VkShadingRatePaletteEntryNV shadingRate;
uint32_t sampleCount;
uint32_t sampleLocationCount;
VkCoarseSampleLocationNV const * pSampleLocations;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkCoarseSampleOrderCustomNV.Buffer
An array of
VkCoarseSampleOrderCustomNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PSAMPLELOCATIONS
The struct member offsets.
|
static int |
SAMPLECOUNT
The struct member offsets.
|
static int |
SAMPLELOCATIONCOUNT
The struct member offsets.
|
static int |
SHADINGRATE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkCoarseSampleOrderCustomNV(java.nio.ByteBuffer container)
Creates a
VkCoarseSampleOrderCustomNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkCoarseSampleOrderCustomNV |
calloc()
Returns a new
VkCoarseSampleOrderCustomNV instance allocated with memCalloc. |
static VkCoarseSampleOrderCustomNV.Buffer |
calloc(int capacity)
Returns a new
VkCoarseSampleOrderCustomNV.Buffer instance allocated with memCalloc. |
static VkCoarseSampleOrderCustomNV |
callocStack()
Returns a new
VkCoarseSampleOrderCustomNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCoarseSampleOrderCustomNV.Buffer |
callocStack(int capacity)
Returns a new
VkCoarseSampleOrderCustomNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCoarseSampleOrderCustomNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCoarseSampleOrderCustomNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkCoarseSampleOrderCustomNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCoarseSampleOrderCustomNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkCoarseSampleOrderCustomNV |
create()
Returns a new
VkCoarseSampleOrderCustomNV instance allocated with BufferUtils. |
static VkCoarseSampleOrderCustomNV.Buffer |
create(int capacity)
Returns a new
VkCoarseSampleOrderCustomNV.Buffer instance allocated with BufferUtils. |
static VkCoarseSampleOrderCustomNV |
create(long address)
Returns a new
VkCoarseSampleOrderCustomNV instance for the specified memory address. |
static VkCoarseSampleOrderCustomNV.Buffer |
create(long address,
int capacity)
Create a
VkCoarseSampleOrderCustomNV.Buffer instance at the specified memory. |
static VkCoarseSampleOrderCustomNV |
createSafe(long address)
|
static VkCoarseSampleOrderCustomNV.Buffer |
createSafe(long address,
int capacity)
|
static VkCoarseSampleOrderCustomNV |
malloc()
Returns a new
VkCoarseSampleOrderCustomNV instance allocated with memAlloc. |
static VkCoarseSampleOrderCustomNV.Buffer |
malloc(int capacity)
Returns a new
VkCoarseSampleOrderCustomNV.Buffer instance allocated with memAlloc. |
static VkCoarseSampleOrderCustomNV |
mallocStack()
Returns a new
VkCoarseSampleOrderCustomNV instance allocated on the thread-local MemoryStack. |
static VkCoarseSampleOrderCustomNV.Buffer |
mallocStack(int capacity)
Returns a new
VkCoarseSampleOrderCustomNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkCoarseSampleOrderCustomNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCoarseSampleOrderCustomNV.Buffer instance allocated on the specified MemoryStack. |
static VkCoarseSampleOrderCustomNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCoarseSampleOrderCustomNV instance allocated on the specified MemoryStack. |
static VkCoarseSampleLocationNV.Buffer |
npSampleLocations(long struct)
Unsafe version of
pSampleLocations(). |
static void |
npSampleLocations(long struct,
VkCoarseSampleLocationNV.Buffer value)
Unsafe version of
pSampleLocations. |
static int |
nsampleCount(long struct)
Unsafe version of
sampleCount(). |
static void |
nsampleCount(long struct,
int value)
Unsafe version of
sampleCount. |
static int |
nsampleLocationCount(long struct)
Unsafe version of
sampleLocationCount(). |
static void |
nsampleLocationCount(long struct,
int value)
Sets the specified value to the
sampleLocationCount field of the specified struct. |
static int |
nshadingRate(long struct)
Unsafe version of
shadingRate(). |
static void |
nshadingRate(long struct,
int value)
Unsafe version of
shadingRate. |
VkCoarseSampleLocationNV.Buffer |
pSampleLocations()
Returns a
VkCoarseSampleLocationNV.Buffer view of the struct array pointed to by the pSampleLocations field. |
VkCoarseSampleOrderCustomNV |
pSampleLocations(VkCoarseSampleLocationNV.Buffer value)
Sets the address of the specified
VkCoarseSampleLocationNV.Buffer to the pSampleLocations field. |
int |
sampleCount()
Returns the value of the
sampleCount field. |
VkCoarseSampleOrderCustomNV |
sampleCount(int value)
Sets the specified value to the
sampleCount field. |
int |
sampleLocationCount()
Returns the value of the
sampleLocationCount field. |
VkCoarseSampleOrderCustomNV |
set(int shadingRate,
int sampleCount,
VkCoarseSampleLocationNV.Buffer pSampleLocations)
Initializes this struct with the specified values.
|
VkCoarseSampleOrderCustomNV |
set(VkCoarseSampleOrderCustomNV src)
Copies the specified struct data to this struct.
|
int |
shadingRate()
Returns the value of the
shadingRate field. |
VkCoarseSampleOrderCustomNV |
shadingRate(int value)
Sets the specified value to the
shadingRate field. |
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SHADINGRATE
public static final int SAMPLECOUNT
public static final int SAMPLELOCATIONCOUNT
public static final int PSAMPLELOCATIONS
public VkCoarseSampleOrderCustomNV(java.nio.ByteBuffer container)
VkCoarseSampleOrderCustomNV instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int shadingRate()
shadingRate field.public int sampleCount()
sampleCount field.public int sampleLocationCount()
sampleLocationCount field.public VkCoarseSampleLocationNV.Buffer pSampleLocations()
VkCoarseSampleLocationNV.Buffer view of the struct array pointed to by the pSampleLocations field.public VkCoarseSampleOrderCustomNV shadingRate(int value)
shadingRate field.public VkCoarseSampleOrderCustomNV sampleCount(int value)
sampleCount field.public VkCoarseSampleOrderCustomNV pSampleLocations(VkCoarseSampleLocationNV.Buffer value)
VkCoarseSampleLocationNV.Buffer to the pSampleLocations field.public VkCoarseSampleOrderCustomNV set(int shadingRate, int sampleCount, VkCoarseSampleLocationNV.Buffer pSampleLocations)
public VkCoarseSampleOrderCustomNV set(VkCoarseSampleOrderCustomNV src)
src - the source structpublic static VkCoarseSampleOrderCustomNV malloc()
VkCoarseSampleOrderCustomNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkCoarseSampleOrderCustomNV calloc()
VkCoarseSampleOrderCustomNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkCoarseSampleOrderCustomNV create()
VkCoarseSampleOrderCustomNV instance allocated with BufferUtils.public static VkCoarseSampleOrderCustomNV create(long address)
VkCoarseSampleOrderCustomNV instance for the specified memory address.@Nullable public static VkCoarseSampleOrderCustomNV createSafe(long address)
public static VkCoarseSampleOrderCustomNV.Buffer malloc(int capacity)
VkCoarseSampleOrderCustomNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCoarseSampleOrderCustomNV.Buffer calloc(int capacity)
VkCoarseSampleOrderCustomNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCoarseSampleOrderCustomNV.Buffer create(int capacity)
VkCoarseSampleOrderCustomNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkCoarseSampleOrderCustomNV.Buffer create(long address, int capacity)
VkCoarseSampleOrderCustomNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkCoarseSampleOrderCustomNV.Buffer createSafe(long address, int capacity)
public static VkCoarseSampleOrderCustomNV mallocStack()
VkCoarseSampleOrderCustomNV instance allocated on the thread-local MemoryStack.public static VkCoarseSampleOrderCustomNV callocStack()
VkCoarseSampleOrderCustomNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkCoarseSampleOrderCustomNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkCoarseSampleOrderCustomNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkCoarseSampleOrderCustomNV callocStack(org.lwjgl.system.MemoryStack stack)
VkCoarseSampleOrderCustomNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkCoarseSampleOrderCustomNV.Buffer mallocStack(int capacity)
VkCoarseSampleOrderCustomNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkCoarseSampleOrderCustomNV.Buffer callocStack(int capacity)
VkCoarseSampleOrderCustomNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkCoarseSampleOrderCustomNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCoarseSampleOrderCustomNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkCoarseSampleOrderCustomNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCoarseSampleOrderCustomNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nshadingRate(long struct)
shadingRate().public static int nsampleCount(long struct)
sampleCount().public static int nsampleLocationCount(long struct)
sampleLocationCount().public static VkCoarseSampleLocationNV.Buffer npSampleLocations(long struct)
pSampleLocations().public static void nshadingRate(long struct,
int value)
shadingRate.public static void nsampleCount(long struct,
int value)
sampleCount.public static void nsampleLocationCount(long struct,
int value)
sampleLocationCount field of the specified struct.public static void npSampleLocations(long struct,
VkCoarseSampleLocationNV.Buffer value)
pSampleLocations.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.