public class VkPipelineCoverageToColorStateCreateInfoNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If coverageToColorEnable is TRUE, 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 with Location equal to coverageToColorLocation and Index 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 is FALSE, these operations are skipped. If this structure is not present, it is as if coverageToColorEnable is FALSE.
coverageToColorEnable is TRUE, then the render pass subpass indicated by VkGraphicsPipelineCreateInfo::renderPass and VkGraphicsPipelineCreateInfo::subpass must have a color attachment at the location selected by coverageToColorLocation, with a VkFormat of FORMAT_R8_UINT, FORMAT_R8_SINT, FORMAT_R16_UINT, FORMAT_R16_SINT, FORMAT_R32_UINT, or FORMAT_R32_SINTsType must be STRUCTURE_TYPE_PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NVflags must be 0sType – 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.
struct VkPipelineCoverageToColorStateCreateInfoNV {
VkStructureType sType;
void const * pNext;
VkPipelineCoverageToColorStateCreateFlagsNV flags;
VkBool32 coverageToColorEnable;
uint32_t coverageToColorLocation;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPipelineCoverageToColorStateCreateInfoNV.Buffer
An array of
VkPipelineCoverageToColorStateCreateInfoNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COVERAGETOCOLORENABLE
The struct member offsets.
|
static int |
COVERAGETOCOLORLOCATION
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPipelineCoverageToColorStateCreateInfoNV(java.nio.ByteBuffer container)
Creates a
VkPipelineCoverageToColorStateCreateInfoNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPipelineCoverageToColorStateCreateInfoNV |
calloc()
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV instance allocated with memCalloc. |
static VkPipelineCoverageToColorStateCreateInfoNV.Buffer |
calloc(int capacity)
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance allocated with memCalloc. |
static VkPipelineCoverageToColorStateCreateInfoNV |
callocStack()
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineCoverageToColorStateCreateInfoNV.Buffer |
callocStack(int capacity)
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineCoverageToColorStateCreateInfoNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineCoverageToColorStateCreateInfoNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
boolean |
coverageToColorEnable()
Returns the value of the
coverageToColorEnable field. |
VkPipelineCoverageToColorStateCreateInfoNV |
coverageToColorEnable(boolean value)
Sets the specified value to the
coverageToColorEnable field. |
int |
coverageToColorLocation()
Returns the value of the
coverageToColorLocation field. |
VkPipelineCoverageToColorStateCreateInfoNV |
coverageToColorLocation(int value)
Sets the specified value to the
coverageToColorLocation field. |
static VkPipelineCoverageToColorStateCreateInfoNV |
create()
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV instance allocated with BufferUtils. |
static VkPipelineCoverageToColorStateCreateInfoNV.Buffer |
create(int capacity)
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance allocated with BufferUtils. |
static VkPipelineCoverageToColorStateCreateInfoNV |
create(long address)
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV instance for the specified memory address. |
static VkPipelineCoverageToColorStateCreateInfoNV.Buffer |
create(long address,
int capacity)
Create a
VkPipelineCoverageToColorStateCreateInfoNV.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 the
flags field. |
VkPipelineCoverageToColorStateCreateInfoNV |
flags(int value)
Sets the specified value to the
flags field. |
static VkPipelineCoverageToColorStateCreateInfoNV |
malloc()
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV instance allocated with memAlloc. |
static VkPipelineCoverageToColorStateCreateInfoNV.Buffer |
malloc(int capacity)
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance allocated with memAlloc. |
static VkPipelineCoverageToColorStateCreateInfoNV |
mallocStack()
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV instance allocated on the thread-local MemoryStack. |
static VkPipelineCoverageToColorStateCreateInfoNV.Buffer |
mallocStack(int capacity)
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkPipelineCoverageToColorStateCreateInfoNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance allocated on the specified MemoryStack. |
static VkPipelineCoverageToColorStateCreateInfoNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineCoverageToColorStateCreateInfoNV instance allocated on the specified MemoryStack. |
static int |
ncoverageToColorEnable(long struct)
Unsafe version of
coverageToColorEnable(). |
static void |
ncoverageToColorEnable(long struct,
int value)
Unsafe version of
coverageToColorEnable. |
static int |
ncoverageToColorLocation(long struct)
Unsafe version of
coverageToColorLocation(). |
static void |
ncoverageToColorLocation(long struct,
int value)
Unsafe version of
coverageToColorLocation. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkPipelineCoverageToColorStateCreateInfoNV |
pNext(long value)
Sets the specified value to the
pNext 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 the
sType field. |
VkPipelineCoverageToColorStateCreateInfoNV |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int COVERAGETOCOLORENABLE
public static final int COVERAGETOCOLORLOCATION
public VkPipelineCoverageToColorStateCreateInfoNV(java.nio.ByteBuffer container)
VkPipelineCoverageToColorStateCreateInfoNV 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 flags()
flags field.public boolean coverageToColorEnable()
coverageToColorEnable field.public int coverageToColorLocation()
coverageToColorLocation field.public VkPipelineCoverageToColorStateCreateInfoNV sType(int value)
sType field.public VkPipelineCoverageToColorStateCreateInfoNV pNext(long value)
pNext field.public VkPipelineCoverageToColorStateCreateInfoNV flags(int value)
flags field.public VkPipelineCoverageToColorStateCreateInfoNV coverageToColorEnable(boolean value)
coverageToColorEnable field.public VkPipelineCoverageToColorStateCreateInfoNV coverageToColorLocation(int value)
coverageToColorLocation field.public VkPipelineCoverageToColorStateCreateInfoNV set(int sType, long pNext, int flags, boolean coverageToColorEnable, int coverageToColorLocation)
public VkPipelineCoverageToColorStateCreateInfoNV set(VkPipelineCoverageToColorStateCreateInfoNV src)
src - the source structpublic static VkPipelineCoverageToColorStateCreateInfoNV malloc()
VkPipelineCoverageToColorStateCreateInfoNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkPipelineCoverageToColorStateCreateInfoNV calloc()
VkPipelineCoverageToColorStateCreateInfoNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkPipelineCoverageToColorStateCreateInfoNV create()
VkPipelineCoverageToColorStateCreateInfoNV instance allocated with BufferUtils.public static VkPipelineCoverageToColorStateCreateInfoNV create(long address)
VkPipelineCoverageToColorStateCreateInfoNV instance for the specified memory address.@Nullable public static VkPipelineCoverageToColorStateCreateInfoNV createSafe(long address)
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer malloc(int capacity)
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineCoverageToColorStateCreateInfoNV.Buffer calloc(int capacity)
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineCoverageToColorStateCreateInfoNV.Buffer create(int capacity)
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPipelineCoverageToColorStateCreateInfoNV.Buffer create(long address, int capacity)
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer createSafe(long address, int capacity)
public static VkPipelineCoverageToColorStateCreateInfoNV mallocStack()
VkPipelineCoverageToColorStateCreateInfoNV instance allocated on the thread-local MemoryStack.public static VkPipelineCoverageToColorStateCreateInfoNV callocStack()
VkPipelineCoverageToColorStateCreateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPipelineCoverageToColorStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineCoverageToColorStateCreateInfoNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPipelineCoverageToColorStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineCoverageToColorStateCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPipelineCoverageToColorStateCreateInfoNV.Buffer mallocStack(int capacity)
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPipelineCoverageToColorStateCreateInfoNV.Buffer callocStack(int capacity)
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPipelineCoverageToColorStateCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineCoverageToColorStateCreateInfoNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPipelineCoverageToColorStateCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineCoverageToColorStateCreateInfoNV.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 nflags(long struct)
flags().public static int ncoverageToColorEnable(long struct)
coverageToColorEnable().public static int ncoverageToColorLocation(long struct)
coverageToColorLocation().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void ncoverageToColorEnable(long struct,
int value)
coverageToColorEnable.public static void ncoverageToColorLocation(long struct,
int value)
coverageToColorLocation.Copyright LWJGL. All Rights Reserved. License terms.