public class VkPipelineViewportCoarseSampleOrderStateCreateInfoNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If this structure is not present, sampleOrderType is considered to be COARSE_SAMPLE_ORDER_TYPE_DEFAULT_NV.
If sampleOrderType is COARSE_SAMPLE_ORDER_TYPE_CUSTOM_NV, the coverage sample order used for any combination of fragment area and coverage sample count not enumerated in pCustomSampleOrders will be identical to that used for COARSE_SAMPLE_ORDER_TYPE_DEFAULT_NV.
If the pipeline was created with DYNAMIC_STATE_VIEWPORT_COARSE_SAMPLE_ORDER_NV, the contents of this structure (if present) are ignored, and the coverage sample order is instead specified by CmdSetCoarseSampleOrderNV.
sampleOrderType is not COARSE_SAMPLE_ORDER_TYPE_CUSTOM_NV, customSamplerOrderCount must be 0pCustomSampleOrders must not contain two structures with matching values for both the shadingRate and sampleCount members.sType must be STRUCTURE_TYPE_PIPELINE_VIEWPORT_COARSE_SAMPLE_ORDER_STATE_CREATE_INFO_NVsampleOrderType must be a valid VkCoarseSampleOrderTypeNV valuecustomSampleOrderCount is not 0, pCustomSampleOrders must be a valid pointer to an array of customSampleOrderCount valid VkCoarseSampleOrderCustomNV structuressType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.sampleOrderType – specifies the mechanism used to order coverage samples in fragments larger than one pixel.customSampleOrderCount – specifies the number of custom sample orderings to use when ordering coverage samples.pCustomSampleOrders – a pointer to an array of customSampleOrderCount VkCoarseSampleOrderCustomNV structures, each of which specifies the coverage sample order for a single combination of fragment area and coverage sample count.
struct VkPipelineViewportCoarseSampleOrderStateCreateInfoNV {
VkStructureType sType;
void const * pNext;
VkCoarseSampleOrderTypeNV sampleOrderType;
uint32_t customSampleOrderCount;
VkCoarseSampleOrderCustomNV const * pCustomSampleOrders;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer
An array of
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CUSTOMSAMPLEORDERCOUNT
The struct member offsets.
|
static int |
PCUSTOMSAMPLEORDERS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SAMPLEORDERTYPE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV(java.nio.ByteBuffer container)
Creates a
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
calloc()
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated with memCalloc. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer |
calloc(int capacity)
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance allocated with memCalloc. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
callocStack()
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer |
callocStack(int capacity)
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
create()
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated with BufferUtils. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer |
create(int capacity)
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance allocated with BufferUtils. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
create(long address)
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance for the specified memory address. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer |
create(long address,
int capacity)
Create a
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance at the specified memory. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
createSafe(long address)
|
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer |
createSafe(long address,
int capacity)
|
int |
customSampleOrderCount()
Returns the value of the
customSampleOrderCount field. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
malloc()
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated with memAlloc. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer |
malloc(int capacity)
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance allocated with memAlloc. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
mallocStack()
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated on the thread-local MemoryStack. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer |
mallocStack(int capacity)
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance allocated on the specified MemoryStack. |
static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated on the specified MemoryStack. |
static int |
ncustomSampleOrderCount(long struct)
Unsafe version of
customSampleOrderCount(). |
static void |
ncustomSampleOrderCount(long struct,
int value)
Sets the specified value to the
customSampleOrderCount field of the specified struct. |
static VkCoarseSampleOrderCustomNV.Buffer |
npCustomSampleOrders(long struct)
Unsafe version of
pCustomSampleOrders(). |
static void |
npCustomSampleOrders(long struct,
VkCoarseSampleOrderCustomNV.Buffer value)
Unsafe version of
pCustomSampleOrders. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsampleOrderType(long struct)
Unsafe version of
sampleOrderType(). |
static void |
nsampleOrderType(long struct,
int value)
Unsafe version of
sampleOrderType. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
VkCoarseSampleOrderCustomNV.Buffer |
pCustomSampleOrders()
Returns a
VkCoarseSampleOrderCustomNV.Buffer view of the struct array pointed to by the pCustomSampleOrders field. |
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
pCustomSampleOrders(VkCoarseSampleOrderCustomNV.Buffer value)
Sets the address of the specified
VkCoarseSampleOrderCustomNV.Buffer to the pCustomSampleOrders field. |
long |
pNext()
Returns the value of the
pNext field. |
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
pNext(long value)
Sets the specified value to the
pNext field. |
int |
sampleOrderType()
Returns the value of the
sampleOrderType field. |
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
sampleOrderType(int value)
Sets the specified value to the
sampleOrderType field. |
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
set(int sType,
long pNext,
int sampleOrderType,
VkCoarseSampleOrderCustomNV.Buffer pCustomSampleOrders)
Initializes this struct with the specified values.
|
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
set(VkPipelineViewportCoarseSampleOrderStateCreateInfoNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV |
sType(int value)
Sets the specified value to the
sType field. |
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 STYPE
public static final int PNEXT
public static final int SAMPLEORDERTYPE
public static final int CUSTOMSAMPLEORDERCOUNT
public static final int PCUSTOMSAMPLEORDERS
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV(java.nio.ByteBuffer container)
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV 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 sType()
sType field.public long pNext()
pNext field.public int sampleOrderType()
sampleOrderType field.public int customSampleOrderCount()
customSampleOrderCount field.@Nullable public VkCoarseSampleOrderCustomNV.Buffer pCustomSampleOrders()
VkCoarseSampleOrderCustomNV.Buffer view of the struct array pointed to by the pCustomSampleOrders field.public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV sType(int value)
sType field.public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV pNext(long value)
pNext field.public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV sampleOrderType(int value)
sampleOrderType field.public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV pCustomSampleOrders(@Nullable VkCoarseSampleOrderCustomNV.Buffer value)
VkCoarseSampleOrderCustomNV.Buffer to the pCustomSampleOrders field.public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV set(int sType, long pNext, int sampleOrderType, @Nullable VkCoarseSampleOrderCustomNV.Buffer pCustomSampleOrders)
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV set(VkPipelineViewportCoarseSampleOrderStateCreateInfoNV src)
src - the source structpublic static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV malloc()
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV calloc()
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV create()
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated with BufferUtils.public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV create(long address)
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance for the specified memory address.@Nullable public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV createSafe(long address)
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer malloc(int capacity)
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer calloc(int capacity)
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer create(int capacity)
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer create(long address, int capacity)
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer createSafe(long address, int capacity)
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV mallocStack()
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated on the thread-local MemoryStack.public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV callocStack()
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer mallocStack(int capacity)
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer callocStack(int capacity)
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.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 nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nsampleOrderType(long struct)
sampleOrderType().public static int ncustomSampleOrderCount(long struct)
customSampleOrderCount().@Nullable public static VkCoarseSampleOrderCustomNV.Buffer npCustomSampleOrders(long struct)
pCustomSampleOrders().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nsampleOrderType(long struct,
int value)
sampleOrderType.public static void ncustomSampleOrderCount(long struct,
int value)
customSampleOrderCount field of the specified struct.public static void npCustomSampleOrders(long struct,
@Nullable
VkCoarseSampleOrderCustomNV.Buffer value)
pCustomSampleOrders.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.