The VkCoarseSampleOrderCustomNV structure is used with a coverage sample ordering type of COARSE_SAMPLE_ORDER_TYPE_CUSTOM_NV to specify the order of coverage samples for one combination of fragment width, fragment height, and coverage sample count.
When using a custom sample ordering, element j in pSampleLocations specifies a specific pixel location and sample index that corresponds to coverage index j in the multi-pixel fragment.
shadingRate must be a shading rate that generates fragments with more than one pixelsampleCount must correspond to a sample count enumerated in VkSampleCountFlags whose corresponding bit is set in VkPhysicalDeviceLimits::framebufferNoAttachmentsSampleCountssampleLocationCount must be equal to the product of sampleCount, the fragment width for shadingRate, and the fragment height for shadingRatesampleLocationCount must be less than or equal to the value of VkPhysicalDeviceShadingRateImagePropertiesNV::shadingRateMaxCoarseSamplespSampleLocations must contain exactly one entry for every combination of valid values for pixelX, pixelY, and sample in the structure VkCoarseSampleOrderCustomNVshadingRate 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
struct VkCoarseSampleOrderCustomNV {
VkShadingRatePaletteEntryNV shadingRate;
uint32_t sampleCount;
uint32_t sampleLocationCount;
VkCoarseSampleLocationNV const * pSampleLocations;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkCoarseSampleOrderCustomNV.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | PSAMPLELOCATIONS
The struct member offsets. |
| public static final int | SAMPLECOUNT
The struct member offsets. |
| public static final int | SAMPLELOCATIONCOUNT
The struct member offsets. |
| public static final int | SHADINGRATE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkCoarseSampleOrderCustomNV(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkCoarseSampleOrderCustomNV | |
| public static VkCoarseSampleOrderCustomNV. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkCoarseSampleOrderCustomNV | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkCoarseSampleOrderCustomNV. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkCoarseSampleOrderCustomNV | |
| public static VkCoarseSampleOrderCustomNV | |
| public static VkCoarseSampleOrderCustomNV. | |
| public static VkCoarseSampleOrderCustomNV. | |
| protected VkCoarseSampleOrderCustomNV | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkCoarseSampleOrderCustomNV | |
| public static VkCoarseSampleOrderCustomNV | create(long address)
Returns a new |
| public static VkCoarseSampleOrderCustomNV. | create(int
the buffer capacity capacity)Returns a new |
| public static VkCoarseSampleOrderCustomNV. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkCoarseSampleOrderCustomNV | |
| public static VkCoarseSampleOrderCustomNV. | |
| public static VkCoarseSampleOrderCustomNV | |
| public static VkCoarseSampleOrderCustomNV. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkCoarseSampleOrderCustomNV | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkCoarseSampleOrderCustomNV. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkCoarseSampleOrderCustomNV | |
| public static VkCoarseSampleOrderCustomNV | |
| public static VkCoarseSampleOrderCustomNV. | |
| public static VkCoarseSampleOrderCustomNV. | |
| public static VkCoarseSampleLocationNV. | |
| public static void | npSampleLocations(long struct, VkCoarseSampleLocationNV.
Unsafe version of |
| public static int | |
| public static void | |
| public static int | |
| public static void | nsampleLocationCount(long struct, int value)
Sets the specified value to the |
| public static int | |
| public static void | |
| public VkCoarseSampleLocationNV. | pSampleLocations()
a pointer to an array of |
| public VkCoarseSampleOrderCustomNV | pSampleLocations(VkCoarseSampleLocationNV.
Sets the address of the specified |
| public int | sampleCount()
identifies the per-pixel coverage sample count for the combination of fragment area and coverage sample count to control. |
| public VkCoarseSampleOrderCustomNV | |
| public int | |
| public VkCoarseSampleOrderCustomNV | set(int shadingRate, int sampleCount, VkCoarseSampleLocationNV.
Initializes this struct with the specified values. |
| public VkCoarseSampleOrderCustomNV | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | 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. |
| public VkCoarseSampleOrderCustomNV | |
| public int | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| PSAMPLELOCATIONS | back to summary |
|---|---|
| public static final int PSAMPLELOCATIONS The struct member offsets. | |
| SAMPLECOUNT | back to summary |
|---|---|
| public static final int SAMPLECOUNT The struct member offsets. | |
| SAMPLELOCATIONCOUNT | back to summary |
|---|---|
| public static final int SAMPLELOCATIONCOUNT The struct member offsets. | |
| SHADINGRATE | back to summary |
|---|---|
| public static final int SHADINGRATE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VkCoarseSampleOrderCustomNV | back to summary |
|---|---|
| protected VkCoarseSampleOrderCustomNV(long address, ByteBuffer container) | |
| VkCoarseSampleOrderCustomNV | back to summary |
|---|---|
| public VkCoarseSampleOrderCustomNV(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkCoarseSampleOrderCustomNV create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV. Like
| |
| malloc | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkCoarseSampleOrderCustomNV. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| npSampleLocations | back to summary |
|---|---|
| public static VkCoarseSampleLocationNV. Unsafe version of | |
| npSampleLocations | back to summary |
|---|---|
| public static void npSampleLocations(long struct, VkCoarseSampleLocationNV. Unsafe version of | |
| nsampleCount | back to summary |
|---|---|
| public static int nsampleCount(long struct) Unsafe version of | |
| nsampleCount | back to summary |
|---|---|
| public static void nsampleCount(long struct, int value) Unsafe version of | |
| nsampleLocationCount | back to summary |
|---|---|
| public static int nsampleLocationCount(long struct) Unsafe version of | |
| nsampleLocationCount | back to summary |
|---|---|
| public static void nsampleLocationCount(long struct, int value) Sets the specified value to the | |
| nshadingRate | back to summary |
|---|---|
| public static int nshadingRate(long struct) Unsafe version of | |
| nshadingRate | back to summary |
|---|---|
| public static void nshadingRate(long struct, int value) Unsafe version of | |
| pSampleLocations | back to summary |
|---|---|
| public VkCoarseSampleLocationNV. a pointer to an array of
| |
| pSampleLocations | back to summary |
|---|---|
| public VkCoarseSampleOrderCustomNV pSampleLocations(VkCoarseSampleLocationNV. Sets the address of the specified | |
| sampleCount | back to summary |
|---|---|
| public int sampleCount() identifies the per-pixel coverage sample count for the combination of fragment area and coverage sample count to control.
| |
| sampleCount | back to summary |
|---|---|
| public VkCoarseSampleOrderCustomNV sampleCount(int value) Sets the specified value to the | |
| sampleLocationCount | back to summary |
|---|---|
| public int sampleLocationCount() specifies the number of sample locations in the custom ordering.
| |
| set | back to summary |
|---|---|
| public VkCoarseSampleOrderCustomNV set(int shadingRate, int sampleCount, VkCoarseSampleLocationNV. Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkCoarseSampleOrderCustomNV set(VkCoarseSampleOrderCustomNV src) Copies the specified struct data to this struct.
| |
| shadingRate | back to summary |
|---|---|
| public int 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.
| |
| shadingRate | back to summary |
|---|---|
| public VkCoarseSampleOrderCustomNV shadingRate(int value) Sets the specified value to the | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
VkCoarseSampleOrderCustomNV structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkCoarseSampleOrderCustomNV |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected VkCoarseSampleOrderCustomNV | |
| public VkCoarseSampleLocationNV. | Returns: aVkCoarseSampleLocationNV. view of the struct array pointed to by the VkCoarseSampleOrderCustomNV#pSampleLocations field.
|
| public VkCoarseSampleOrderCustomNV. | pSampleLocations(VkCoarseSampleLocationNV.
Sets the address of the specified |
| public int | |
| public VkCoarseSampleOrderCustomNV. | sampleCount(int value)
Sets the specified value to the |
| public int | Returns: the value of theVkCoarseSampleOrderCustomNV#sampleLocationCount field.
|
| protected VkCoarseSampleOrderCustomNV. | |
| public int | |
| public VkCoarseSampleOrderCustomNV. | shadingRate(int value)
Sets the specified value to the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkCoarseSampleOrderCustomNV ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| getElementFactory | back to summary |
|---|---|
| protected VkCoarseSampleOrderCustomNV getElementFactory() Implements abstract org.
| |
| pSampleLocations | back to summary |
|---|---|
public VkCoarseSampleLocationNV.
| |
| pSampleLocations | back to summary |
|---|---|
| public VkCoarseSampleOrderCustomNV. Sets the address of the specified | |
| sampleCount | back to summary |
|---|---|
public int sampleCount()
| |
| sampleCount | back to summary |
|---|---|
| public VkCoarseSampleOrderCustomNV. Sets the specified value to the | |
| sampleLocationCount | back to summary |
|---|---|
public int sampleLocationCount()
| |
| self | back to summary |
|---|---|
| protected VkCoarseSampleOrderCustomNV. Implements abstract org.
| |
| shadingRate | back to summary |
|---|---|
public int shadingRate()
| |
| shadingRate | back to summary |
|---|---|
| public VkCoarseSampleOrderCustomNV. Sets the specified value to the | |