Package org.lwjgl.vulkan
Class VkPipelineViewportCoarseSampleOrderStateCreateInfoNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineViewportCoarseSampleOrderStateCreateInfoNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineViewportCoarseSampleOrderStateCreateInfoNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters controlling sample order in coarse fragments.Description
If this structure is not present,
sampleOrderTypeis considered to beCOARSE_SAMPLE_ORDER_TYPE_DEFAULT_NV.If
sampleOrderTypeisCOARSE_SAMPLE_ORDER_TYPE_CUSTOM_NV, the coverage sample order used for any combination of fragment area and coverage sample count not enumerated inpCustomSampleOrderswill be identical to that used forCOARSE_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 byCmdSetCoarseSampleOrderNV.Valid Usage
- If
sampleOrderTypeis notCOARSE_SAMPLE_ORDER_TYPE_CUSTOM_NV,customSamplerOrderCountmust be 0 - The array
pCustomSampleOrdersmust not contain two structures with matching values for both theshadingRateandsampleCountmembers.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_VIEWPORT_COARSE_SAMPLE_ORDER_STATE_CREATE_INFO_NVsampleOrderTypemust be a validVkCoarseSampleOrderTypeNVvalue- If
customSampleOrderCountis not 0,pCustomSampleOrdersmust be a valid pointer to an array ofcustomSampleOrderCountvalidVkCoarseSampleOrderCustomNVstructures
See Also
Member documentation
sType– the type of this structure.pNext–NULLor 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 ofVkCoarseSampleOrderCustomNVstructures, each of which specifies the coverage sample order for a single combination of fragment area and coverage sample count.
Layout
struct VkPipelineViewportCoarseSampleOrderStateCreateInfoNV { VkStructureType sType; void const * pNext; VkCoarseSampleOrderTypeNV sampleOrderType; uint32_t customSampleOrderCount;VkCoarseSampleOrderCustomNVconst * pCustomSampleOrders; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.BufferAn array ofVkPipelineViewportCoarseSampleOrderStateCreateInfoNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCUSTOMSAMPLEORDERCOUNT
PCUSTOMSAMPLEORDERS
PNEXT
SAMPLEORDERTYPEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineViewportCoarseSampleOrderStateCreateInfoNV(java.nio.ByteBuffer container)Creates aVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVcalloc()Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated withmemCalloc.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffercalloc(int capacity)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated withmemCalloc.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVcallocStack()Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.BuffercallocStack(int capacity)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVcreate()Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated withBufferUtils.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffercreate(int capacity)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated withBufferUtils.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVcreate(long address)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance for the specified memory address.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffercreate(long address, int capacity)Create aVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance at the specified memory.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVcreateSafe(long address)static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.BuffercreateSafe(long address, int capacity)intcustomSampleOrderCount()Returns the value of thecustomSampleOrderCountfield.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVmalloc()Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated withmemAlloc.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffermalloc(int capacity)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated withmemAlloc.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVmallocStack()Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated on the thread-localMemoryStack.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.BuffermallocStack(int capacity)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated on the specifiedMemoryStack.static intncustomSampleOrderCount(long struct)Unsafe version ofcustomSampleOrderCount().static voidncustomSampleOrderCount(long struct, int value)Sets the specified value to thecustomSampleOrderCountfield of the specifiedstruct.static VkCoarseSampleOrderCustomNV.BuffernpCustomSampleOrders(long struct)Unsafe version ofpCustomSampleOrders().static voidnpCustomSampleOrders(long struct, VkCoarseSampleOrderCustomNV.Buffer value)Unsafe version ofpCustomSampleOrders.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsampleOrderType(long struct)Unsafe version ofsampleOrderType().static voidnsampleOrderType(long struct, int value)Unsafe version ofsampleOrderType.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.VkCoarseSampleOrderCustomNV.BufferpCustomSampleOrders()Returns aVkCoarseSampleOrderCustomNV.Bufferview of the struct array pointed to by thepCustomSampleOrdersfield.VkPipelineViewportCoarseSampleOrderStateCreateInfoNVpCustomSampleOrders(VkCoarseSampleOrderCustomNV.Buffer value)Sets the address of the specifiedVkCoarseSampleOrderCustomNV.Bufferto thepCustomSampleOrdersfield.longpNext()Returns the value of thepNextfield.VkPipelineViewportCoarseSampleOrderStateCreateInfoNVpNext(long value)Sets the specified value to thepNextfield.intsampleOrderType()Returns the value of thesampleOrderTypefield.VkPipelineViewportCoarseSampleOrderStateCreateInfoNVsampleOrderType(int value)Sets the specified value to thesampleOrderTypefield.VkPipelineViewportCoarseSampleOrderStateCreateInfoNVset(int sType, long pNext, int sampleOrderType, VkCoarseSampleOrderCustomNV.Buffer pCustomSampleOrders)Initializes this struct with the specified values.VkPipelineViewportCoarseSampleOrderStateCreateInfoNVset(VkPipelineViewportCoarseSampleOrderStateCreateInfoNV src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPipelineViewportCoarseSampleOrderStateCreateInfoNVsType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkPipelineViewportCoarseSampleOrderStateCreateInfoNV
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance 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.
-
sampleOrderType
public int sampleOrderType()
Returns the value of thesampleOrderTypefield.
-
customSampleOrderCount
public int customSampleOrderCount()
Returns the value of thecustomSampleOrderCountfield.
-
pCustomSampleOrders
@Nullable public VkCoarseSampleOrderCustomNV.Buffer pCustomSampleOrders()
Returns aVkCoarseSampleOrderCustomNV.Bufferview of the struct array pointed to by thepCustomSampleOrdersfield.
-
sType
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV pNext(long value)
Sets the specified value to thepNextfield.
-
sampleOrderType
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV sampleOrderType(int value)
Sets the specified value to thesampleOrderTypefield.
-
pCustomSampleOrders
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV pCustomSampleOrders(@Nullable VkCoarseSampleOrderCustomNV.Buffer value)
Sets the address of the specifiedVkCoarseSampleOrderCustomNV.Bufferto thepCustomSampleOrdersfield.
-
set
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV set(int sType, long pNext, int sampleOrderType, @Nullable VkCoarseSampleOrderCustomNV.Buffer pCustomSampleOrders)
Initializes this struct with the specified values.
-
set
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV set(VkPipelineViewportCoarseSampleOrderStateCreateInfoNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV malloc()
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV calloc()
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV create()
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated withBufferUtils.
-
create
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV create(long address)
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV createSafe(long address)
-
malloc
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer create(int capacity)
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer create(long address, int capacity)
Create aVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV mallocStack()
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV callocStack()
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer mallocStack(int capacity)
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer callocStack(int capacity)
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.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().
-
nsampleOrderType
public static int nsampleOrderType(long struct)
Unsafe version ofsampleOrderType().
-
ncustomSampleOrderCount
public static int ncustomSampleOrderCount(long struct)
Unsafe version ofcustomSampleOrderCount().
-
npCustomSampleOrders
@Nullable public static VkCoarseSampleOrderCustomNV.Buffer npCustomSampleOrders(long struct)
Unsafe version ofpCustomSampleOrders().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nsampleOrderType
public static void nsampleOrderType(long struct, int value)Unsafe version ofsampleOrderType.
-
ncustomSampleOrderCount
public static void ncustomSampleOrderCount(long struct, int value)Sets the specified value to thecustomSampleOrderCountfield of the specifiedstruct.
-
npCustomSampleOrders
public static void npCustomSampleOrders(long struct, @Nullable VkCoarseSampleOrderCustomNV.Buffer value)Unsafe version ofpCustomSampleOrders.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-