Class VkPipelineCoverageToColorStateCreateInfoNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineCoverageToColorStateCreateInfoNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPipelineCoverageToColorStateCreateInfoNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying whether fragment coverage replaces a color.Description
If
coverageToColorEnable
isTRUE
, the fragment coverage information is treated as a bitmask with one bit for each sample (as in the Sample Mask section), and this bitmask replaces the first component of the color value corresponding to the fragment shader output location withLocation
equal tocoverageToColorLocation
andIndex
equal to zero. If the color attachment format has fewer bits than the sample coverage, the low bits of the sample coverage bitmask are taken without any clamping. If the color attachment format has more bits than the sample coverage, the high bits of the sample coverage bitmask are filled with zeros.If Sample Shading is in use, the coverage bitmask only has bits set for samples that correspond to the fragment shader invocation that shades those samples.
This pipeline stage occurs after sample counting and before blending, and is always performed after fragment shading regardless of the setting of
EarlyFragmentTests
.If
coverageToColorEnable
isFALSE
, these operations are skipped. If this structure is not present, it is as ifcoverageToColorEnable
isFALSE
.Valid Usage
- If
coverageToColorEnable
isTRUE
, then the render pass subpass indicated byVkGraphicsPipelineCreateInfo
::renderPass
andVkGraphicsPipelineCreateInfo
::subpass
must have a color attachment at the location selected bycoverageToColorLocation
, with aVkFormat
ofFORMAT_R8_UINT
,FORMAT_R8_SINT
,FORMAT_R16_UINT
,FORMAT_R16_SINT
,FORMAT_R32_UINT
, orFORMAT_R32_SINT
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NV
flags
must be 0
Member documentation
sType
– the type of this structurepNext
–NULL
or a pointer to an extension-specific structureflags
– reserved for future use.coverageToColorEnable
– controls whether the fragment coverage value replaces a fragment color output.coverageToColorLocation
– controls which fragment shader color output value is replaced.
Layout
struct VkPipelineCoverageToColorStateCreateInfoNV { VkStructureType sType; void const * pNext; VkPipelineCoverageToColorStateCreateFlagsNV flags; VkBool32 coverageToColorEnable; uint32_t coverageToColorLocation; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPipelineCoverageToColorStateCreateInfoNV.Buffer
An array ofVkPipelineCoverageToColorStateCreateInfoNV
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
COVERAGETOCOLORENABLE
COVERAGETOCOLORLOCATION
FLAGS
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineCoverageToColorStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineCoverageToColorStateCreateInfoNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineCoverageToColorStateCreateInfoNV
calloc()
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated withmemCalloc
.static VkPipelineCoverageToColorStateCreateInfoNV.Buffer
calloc(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated withmemCalloc
.static VkPipelineCoverageToColorStateCreateInfoNV
callocStack()
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineCoverageToColorStateCreateInfoNV.Buffer
callocStack(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineCoverageToColorStateCreateInfoNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineCoverageToColorStateCreateInfoNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.boolean
coverageToColorEnable()
Returns the value of thecoverageToColorEnable
field.VkPipelineCoverageToColorStateCreateInfoNV
coverageToColorEnable(boolean value)
Sets the specified value to thecoverageToColorEnable
field.int
coverageToColorLocation()
Returns the value of thecoverageToColorLocation
field.VkPipelineCoverageToColorStateCreateInfoNV
coverageToColorLocation(int value)
Sets the specified value to thecoverageToColorLocation
field.static VkPipelineCoverageToColorStateCreateInfoNV
create()
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated withBufferUtils
.static VkPipelineCoverageToColorStateCreateInfoNV.Buffer
create(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated withBufferUtils
.static VkPipelineCoverageToColorStateCreateInfoNV
create(long address)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance for the specified memory address.static VkPipelineCoverageToColorStateCreateInfoNV.Buffer
create(long address, int capacity)
Create aVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance at the specified memory.static VkPipelineCoverageToColorStateCreateInfoNV
createSafe(long address)
static VkPipelineCoverageToColorStateCreateInfoNV.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkPipelineCoverageToColorStateCreateInfoNV
flags(int value)
Sets the specified value to theflags
field.static VkPipelineCoverageToColorStateCreateInfoNV
malloc()
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated withmemAlloc
.static VkPipelineCoverageToColorStateCreateInfoNV.Buffer
malloc(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated withmemAlloc
.static VkPipelineCoverageToColorStateCreateInfoNV
mallocStack()
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated on the thread-localMemoryStack
.static VkPipelineCoverageToColorStateCreateInfoNV.Buffer
mallocStack(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkPipelineCoverageToColorStateCreateInfoNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkPipelineCoverageToColorStateCreateInfoNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated on the specifiedMemoryStack
.static int
ncoverageToColorEnable(long struct)
Unsafe version ofcoverageToColorEnable()
.static void
ncoverageToColorEnable(long struct, int value)
Unsafe version ofcoverageToColorEnable
.static int
ncoverageToColorLocation(long struct)
Unsafe version ofcoverageToColorLocation()
.static void
ncoverageToColorLocation(long struct, int value)
Unsafe version ofcoverageToColorLocation
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkPipelineCoverageToColorStateCreateInfoNV
pNext(long value)
Sets the specified value to thepNext
field.VkPipelineCoverageToColorStateCreateInfoNV
set(int sType, long pNext, int flags, boolean coverageToColorEnable, int coverageToColorLocation)
Initializes this struct with the specified values.VkPipelineCoverageToColorStateCreateInfoNV
set(VkPipelineCoverageToColorStateCreateInfoNV src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPipelineCoverageToColorStateCreateInfoNV
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPipelineCoverageToColorStateCreateInfoNV
public VkPipelineCoverageToColorStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineCoverageToColorStateCreateInfoNV
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
coverageToColorEnable
public boolean coverageToColorEnable()
Returns the value of thecoverageToColorEnable
field.
-
coverageToColorLocation
public int coverageToColorLocation()
Returns the value of thecoverageToColorLocation
field.
-
sType
public VkPipelineCoverageToColorStateCreateInfoNV sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPipelineCoverageToColorStateCreateInfoNV pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkPipelineCoverageToColorStateCreateInfoNV flags(int value)
Sets the specified value to theflags
field.
-
coverageToColorEnable
public VkPipelineCoverageToColorStateCreateInfoNV coverageToColorEnable(boolean value)
Sets the specified value to thecoverageToColorEnable
field.
-
coverageToColorLocation
public VkPipelineCoverageToColorStateCreateInfoNV coverageToColorLocation(int value)
Sets the specified value to thecoverageToColorLocation
field.
-
set
public VkPipelineCoverageToColorStateCreateInfoNV set(int sType, long pNext, int flags, boolean coverageToColorEnable, int coverageToColorLocation)
Initializes this struct with the specified values.
-
set
public VkPipelineCoverageToColorStateCreateInfoNV set(VkPipelineCoverageToColorStateCreateInfoNV src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineCoverageToColorStateCreateInfoNV malloc()
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPipelineCoverageToColorStateCreateInfoNV calloc()
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPipelineCoverageToColorStateCreateInfoNV create()
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated withBufferUtils
.
-
create
public static VkPipelineCoverageToColorStateCreateInfoNV create(long address)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineCoverageToColorStateCreateInfoNV createSafe(long address)
-
malloc
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer create(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer create(long address, int capacity)
Create aVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPipelineCoverageToColorStateCreateInfoNV mallocStack()
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPipelineCoverageToColorStateCreateInfoNV callocStack()
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPipelineCoverageToColorStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPipelineCoverageToColorStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer mallocStack(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer callocStack(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
nflags
public static int nflags(long struct)
Unsafe version offlags()
.
-
ncoverageToColorEnable
public static int ncoverageToColorEnable(long struct)
Unsafe version ofcoverageToColorEnable()
.
-
ncoverageToColorLocation
public static int ncoverageToColorLocation(long struct)
Unsafe version ofcoverageToColorLocation()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nflags
public static void nflags(long struct, int value)
Unsafe version offlags
.
-
ncoverageToColorEnable
public static void ncoverageToColorEnable(long struct, int value)
Unsafe version ofcoverageToColorEnable
.
-
ncoverageToColorLocation
public static void ncoverageToColorLocation(long struct, int value)
Unsafe version ofcoverageToColorLocation
.
-
-