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 the
pNextchain ofVkPipelineMultisampleStateCreateInfoincludes aVkPipelineCoverageToColorStateCreateInfoNVstructure, then that structure controls whether the fragment coverage is substituted for a fragment color output and, if so, which output is replaced.If
coverageToColorEnableisTRUE, the coverage mask 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 coverage mask, the low bits of the sample coverage mask are taken without any clamping. If the color attachment format has more bits than the coverage mask, the high bits of the sample coverage mask are filled with zeros.If
coverageToColorEnableisFALSE, these operations are skipped. If this structure is not included in thepNextchain, 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
Layout
struct VkPipelineCoverageToColorStateCreateInfoNV { VkStructureTypesType(); void const *pNext(); VkPipelineCoverageToColorStateCreateFlagsNVflags(); VkBool32coverageToColorEnable(); uint32_tcoverageToColorLocation(); }
-
-
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 Deprecated 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 VkPipelineCoverageToColorStateCreateInfoNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineCoverageToColorStateCreateInfoNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineCoverageToColorStateCreateInfoNVcallocStack()Deprecated.static VkPipelineCoverageToColorStateCreateInfoNV.BuffercallocStack(int capacity)Deprecated.static VkPipelineCoverageToColorStateCreateInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineCoverageToColorStateCreateInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.booleancoverageToColorEnable()controls whether the fragment coverage value replaces a fragment color output.VkPipelineCoverageToColorStateCreateInfoNVcoverageToColorEnable(boolean value)Sets the specified value to thecoverageToColorEnable()field.intcoverageToColorLocation()controls which fragment shader color output value is replaced.VkPipelineCoverageToColorStateCreateInfoNVcoverageToColorLocation(int value)Sets the specified value to thecoverageToColorLocation()field.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()reserved for future use.VkPipelineCoverageToColorStateCreateInfoNVflags(int value)Sets the specified value to theflags()field.static VkPipelineCoverageToColorStateCreateInfoNVmalloc()Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated withmemAlloc.static VkPipelineCoverageToColorStateCreateInfoNV.Buffermalloc(int capacity)Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated withmemAlloc.static VkPipelineCoverageToColorStateCreateInfoNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCoverageToColorStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineCoverageToColorStateCreateInfoNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated on the specifiedMemoryStack.static VkPipelineCoverageToColorStateCreateInfoNVmallocStack()Deprecated.static VkPipelineCoverageToColorStateCreateInfoNV.BuffermallocStack(int capacity)Deprecated.static VkPipelineCoverageToColorStateCreateInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineCoverageToColorStateCreateInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkPipelineCoverageToColorStateCreateInfoNVpNext(long value)Sets the specified value to thepNext()field.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()the type of this structure.VkPipelineCoverageToColorStateCreateInfoNVsType(int value)Sets the specified value to thesType()field.VkPipelineCoverageToColorStateCreateInfoNVsType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NVvalue to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
flags
public int flags()
reserved for future use.
-
coverageToColorEnable
public boolean coverageToColorEnable()
controls whether the fragment coverage value replaces a fragment color output.
-
coverageToColorLocation
public int coverageToColorLocation()
controls which fragment shader color output value is replaced.
-
sType
public VkPipelineCoverageToColorStateCreateInfoNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineCoverageToColorStateCreateInfoNV sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NVvalue 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 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
@Deprecated public static VkPipelineCoverageToColorStateCreateInfoNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineCoverageToColorStateCreateInfoNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineCoverageToColorStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineCoverageToColorStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineCoverageToColorStateCreateInfoNV.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 VkPipelineCoverageToColorStateCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPipelineCoverageToColorStateCreateInfoNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageToColorStateCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineCoverageToColorStateCreateInfoNV calloc(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
-
malloc
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer malloc(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
-
calloc
public static VkPipelineCoverageToColorStateCreateInfoNV.Buffer calloc(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.
-
-