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
Layout
struct VkPipelineViewportCoarseSampleOrderStateCreateInfoNV { VkStructureTypesType(); void const *pNext(); VkCoarseSampleOrderTypeNVsampleOrderType(); uint32_tcustomSampleOrderCount();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 Deprecated 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 VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVcallocStack()Deprecated.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.BuffercallocStack(int capacity)Deprecated.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()specifies the number of custom sample orderings to use when ordering coverage samples.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVmalloc()Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated withmemAlloc.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffermalloc(int capacity)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated withmemAlloc.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated on the specifiedMemoryStack.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVmallocStack()Deprecated.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.BuffermallocStack(int capacity)Deprecated.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineViewportCoarseSampleOrderStateCreateInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()a pointer to an array ofcustomSampleOrderCountVkCoarseSampleOrderCustomNVstructures, each structure specifying the coverage sample order for a single combination of fragment area and coverage sample count.VkPipelineViewportCoarseSampleOrderStateCreateInfoNVpCustomSampleOrders(VkCoarseSampleOrderCustomNV.Buffer value)Sets the address of the specifiedVkCoarseSampleOrderCustomNV.Bufferto thepCustomSampleOrders()field.longpNext()NULLor a pointer to a structure extending this structure.VkPipelineViewportCoarseSampleOrderStateCreateInfoNVpNext(long value)Sets the specified value to thepNext()field.intsampleOrderType()specifies the mechanism used to order coverage samples in fragments larger than one pixel.VkPipelineViewportCoarseSampleOrderStateCreateInfoNVsampleOrderType(int value)Sets the specified value to thesampleOrderType()field.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()the type of this structure.VkPipelineViewportCoarseSampleOrderStateCreateInfoNVsType(int value)Sets the specified value to thesType()field.VkPipelineViewportCoarseSampleOrderStateCreateInfoNVsType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_VIEWPORT_COARSE_SAMPLE_ORDER_STATE_CREATE_INFO_NVvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
sampleOrderType
public int sampleOrderType()
specifies the mechanism used to order coverage samples in fragments larger than one pixel.
-
customSampleOrderCount
public int customSampleOrderCount()
specifies the number of custom sample orderings to use when ordering coverage samples.
-
pCustomSampleOrders
@Nullable public VkCoarseSampleOrderCustomNV.Buffer pCustomSampleOrders()
a pointer to an array ofcustomSampleOrderCountVkCoarseSampleOrderCustomNVstructures, each structure specifying the coverage sample order for a single combination of fragment area and coverage sample count.
-
sType
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_VIEWPORT_COARSE_SAMPLE_ORDER_STATE_CREATE_INFO_NVvalue to thesType()field.
-
pNext
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV pNext(long value)
Sets the specified value to thepNext()field.
-
sampleOrderType
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV sampleOrderType(int value)
Sets the specified value to thesampleOrderType()field.
-
pCustomSampleOrders
public VkPipelineViewportCoarseSampleOrderStateCreateInfoNV pCustomSampleOrders(@Nullable VkCoarseSampleOrderCustomNV.Buffer value)
Sets the address of the specifiedVkCoarseSampleOrderCustomNV.Bufferto thepCustomSampleOrders()field.
-
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
@Deprecated public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportCoarseSampleOrderStateCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV calloc(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
-
malloc
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer malloc(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
-
calloc
public static VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.Buffer calloc(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
-
-