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.NativeResourceStructure specifying whether fragment coverage replaces a color.Description
If
coverageToColorEnableisTRUE, 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 withLocationequal tocoverageToColorLocationandIndexequal 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
coverageToColorEnableisFALSE, these operations are skipped. If this structure is not present, it is as ifcoverageToColorEnableisFALSE.Valid Usage
- If
coverageToColorEnableisTRUE, then the render pass subpass indicated byVkGraphicsPipelineCreateInfo::renderPassandVkGraphicsPipelineCreateInfo::subpassmust have a color attachment at the location selected bycoverageToColorLocation, with aVkFormatofFORMAT_R8_UINT,FORMAT_R8_SINT,FORMAT_R16_UINT,FORMAT_R16_SINT,FORMAT_R32_UINT, orFORMAT_R32_SINT
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NVflagsmust be 0
Member documentation
sType– the type of this structurepNext–NULLor 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 classVkPipelineCoverageToColorStateCreateInfoNV.BufferAn array ofVkPipelineCoverageToColorStateCreateInfoNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOVERAGETOCOLORENABLE
COVERAGETOCOLORLOCATION
FLAGS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineCoverageToColorStateCreateInfoNV(java.nio.ByteBuffer container)Creates aVkPipelineCoverageToColorStateCreateInfoNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineCoverageToColorStateCreateInfoNVcalloc()Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated withmemCalloc.static VkPipelineCoverageToColorStateCreateInfoNV.Buffercalloc(int capacity)Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated withmemCalloc.static VkPipelineCoverageToColorStateCreateInfoNVcallocStack()Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineCoverageToColorStateCreateInfoNV.BuffercallocStack(int capacity)Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineCoverageToColorStateCreateInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineCoverageToColorStateCreateInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.booleancoverageToColorEnable()Returns the value of thecoverageToColorEnablefield.VkPipelineCoverageToColorStateCreateInfoNVcoverageToColorEnable(boolean value)Sets the specified value to thecoverageToColorEnablefield.intcoverageToColorLocation()Returns the value of thecoverageToColorLocationfield.VkPipelineCoverageToColorStateCreateInfoNVcoverageToColorLocation(int value)Sets the specified value to thecoverageToColorLocationfield.static VkPipelineCoverageToColorStateCreateInfoNVcreate()Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated withBufferUtils.static VkPipelineCoverageToColorStateCreateInfoNV.Buffercreate(int capacity)Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated withBufferUtils.static VkPipelineCoverageToColorStateCreateInfoNVcreate(long address)Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance for the specified memory address.static VkPipelineCoverageToColorStateCreateInfoNV.Buffercreate(long address, int capacity)Create aVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance at the specified memory.static VkPipelineCoverageToColorStateCreateInfoNVcreateSafe(long address)static VkPipelineCoverageToColorStateCreateInfoNV.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.VkPipelineCoverageToColorStateCreateInfoNVflags(int value)Sets the specified value to theflagsfield.static VkPipelineCoverageToColorStateCreateInfoNVmalloc()Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated withmemAlloc.static VkPipelineCoverageToColorStateCreateInfoNV.Buffermalloc(int capacity)Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated withmemAlloc.static VkPipelineCoverageToColorStateCreateInfoNVmallocStack()Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated on the thread-localMemoryStack.static VkPipelineCoverageToColorStateCreateInfoNV.BuffermallocStack(int capacity)Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineCoverageToColorStateCreateInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineCoverageToColorStateCreateInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated on the specifiedMemoryStack.static intncoverageToColorEnable(long struct)Unsafe version ofcoverageToColorEnable().static voidncoverageToColorEnable(long struct, int value)Unsafe version ofcoverageToColorEnable.static intncoverageToColorLocation(long struct)Unsafe version ofcoverageToColorLocation().static voidncoverageToColorLocation(long struct, int value)Unsafe version ofcoverageToColorLocation.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkPipelineCoverageToColorStateCreateInfoNVpNext(long value)Sets the specified value to thepNextfield.VkPipelineCoverageToColorStateCreateInfoNVset(int sType, long pNext, int flags, boolean coverageToColorEnable, int coverageToColorLocation)Initializes this struct with the specified values.VkPipelineCoverageToColorStateCreateInfoNVset(VkPipelineCoverageToColorStateCreateInfoNV src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPipelineCoverageToColorStateCreateInfoNVsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPipelineCoverageToColorStateCreateInfoNV
public VkPipelineCoverageToColorStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineCoverageToColorStateCreateInfoNVinstance 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.
-
flags
public int flags()
Returns the value of theflagsfield.
-
coverageToColorEnable
public boolean coverageToColorEnable()
Returns the value of thecoverageToColorEnablefield.
-
coverageToColorLocation
public int coverageToColorLocation()
Returns the value of thecoverageToColorLocationfield.
-
sType
public VkPipelineCoverageToColorStateCreateInfoNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPipelineCoverageToColorStateCreateInfoNV pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkPipelineCoverageToColorStateCreateInfoNV flags(int value)
Sets the specified value to theflagsfield.
-
coverageToColorEnable
public VkPipelineCoverageToColorStateCreateInfoNV coverageToColorEnable(boolean value)
Sets the specified value to thecoverageToColorEnablefield.
-
coverageToColorLocation
public VkPipelineCoverageToColorStateCreateInfoNV coverageToColorLocation(int value)
Sets the specified value to thecoverageToColorLocationfield.
-
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 newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineCoverageToColorStateCreateInfoNV calloc()
Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineCoverageToColorStateCreateInfoNV create()
Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated withBufferUtils.
-
create
public static VkPipelineCoverageToColorStateCreateInfoNV create(long address)
Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineCoverageToColorStateCreateInfoNV createSafe(long address)
-
malloc
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer create(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer create(long address, int capacity)
Create aVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance 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 newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineCoverageToColorStateCreateInfoNV callocStack()
Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineCoverageToColorStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineCoverageToColorStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer callocStack(int capacity)
Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.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().
-
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.
-
-