Package org.lwjgl.vulkan
Class VkPipelineCoverageReductionStateCreateInfoNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineCoverageReductionStateCreateInfoNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineCoverageReductionStateCreateInfoNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters controlling coverage reduction.Description
If this structure is not present, the default coverage reduction mode is inferred as follows:
- If the
VK_NV_framebuffer_mixed_samplesextension is enabled, then it is as if thecoverageReductionModeisCOVERAGE_REDUCTION_MODE_MERGE_NV. - If the
VK_AMD_mixed_attachment_samplesextension is enabled, then it is as if thecoverageReductionModeisCOVERAGE_REDUCTION_MODE_TRUNCATE_NV. - If both
VK_NV_framebuffer_mixed_samplesandVK_AMD_mixed_attachment_samplesare enabled, then the default coverage reduction mode is implementation-dependent.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_COVERAGE_REDUCTION_STATE_CREATE_INFO_NVflagsmust be 0coverageReductionModemust be a validVkCoverageReductionModeNVvalue
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.flags– reserved for future use.coverageReductionMode– controls how the color sample mask is generated from the coverage mask and is of typeVkCoverageReductionModeNV.
Layout
struct VkPipelineCoverageReductionStateCreateInfoNV { VkStructureType sType; void const * pNext; VkPipelineCoverageReductionStateCreateFlagsNV flags; VkCoverageReductionModeNV coverageReductionMode; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineCoverageReductionStateCreateInfoNV.BufferAn array ofVkPipelineCoverageReductionStateCreateInfoNVstructs.
-
Constructor Summary
Constructors Constructor Description VkPipelineCoverageReductionStateCreateInfoNV(java.nio.ByteBuffer container)Creates aVkPipelineCoverageReductionStateCreateInfoNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineCoverageReductionStateCreateInfoNVcalloc()Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated withmemCalloc.static VkPipelineCoverageReductionStateCreateInfoNV.Buffercalloc(int capacity)Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance allocated withmemCalloc.static VkPipelineCoverageReductionStateCreateInfoNVcallocStack()Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineCoverageReductionStateCreateInfoNV.BuffercallocStack(int capacity)Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineCoverageReductionStateCreateInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineCoverageReductionStateCreateInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcoverageReductionMode()Returns the value of thecoverageReductionModefield.VkPipelineCoverageReductionStateCreateInfoNVcoverageReductionMode(int value)Sets the specified value to thecoverageReductionModefield.static VkPipelineCoverageReductionStateCreateInfoNVcreate()Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated withBufferUtils.static VkPipelineCoverageReductionStateCreateInfoNV.Buffercreate(int capacity)Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance allocated withBufferUtils.static VkPipelineCoverageReductionStateCreateInfoNVcreate(long address)Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance for the specified memory address.static VkPipelineCoverageReductionStateCreateInfoNV.Buffercreate(long address, int capacity)Create aVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance at the specified memory.static VkPipelineCoverageReductionStateCreateInfoNVcreateSafe(long address)static VkPipelineCoverageReductionStateCreateInfoNV.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.VkPipelineCoverageReductionStateCreateInfoNVflags(int value)Sets the specified value to theflagsfield.static VkPipelineCoverageReductionStateCreateInfoNVmalloc()Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated withmemAlloc.static VkPipelineCoverageReductionStateCreateInfoNV.Buffermalloc(int capacity)Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance allocated withmemAlloc.static VkPipelineCoverageReductionStateCreateInfoNVmallocStack()Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated on the thread-localMemoryStack.static VkPipelineCoverageReductionStateCreateInfoNV.BuffermallocStack(int capacity)Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineCoverageReductionStateCreateInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineCoverageReductionStateCreateInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated on the specifiedMemoryStack.static intncoverageReductionMode(long struct)Unsafe version ofcoverageReductionMode().static voidncoverageReductionMode(long struct, int value)Unsafe version ofcoverageReductionMode.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.VkPipelineCoverageReductionStateCreateInfoNVpNext(long value)Sets the specified value to thepNextfield.VkPipelineCoverageReductionStateCreateInfoNVset(int sType, long pNext, int flags, int coverageReductionMode)Initializes this struct with the specified values.VkPipelineCoverageReductionStateCreateInfoNVset(VkPipelineCoverageReductionStateCreateInfoNV src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPipelineCoverageReductionStateCreateInfoNVsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPipelineCoverageReductionStateCreateInfoNV
public VkPipelineCoverageReductionStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineCoverageReductionStateCreateInfoNVinstance 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.
-
coverageReductionMode
public int coverageReductionMode()
Returns the value of thecoverageReductionModefield.
-
sType
public VkPipelineCoverageReductionStateCreateInfoNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPipelineCoverageReductionStateCreateInfoNV pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkPipelineCoverageReductionStateCreateInfoNV flags(int value)
Sets the specified value to theflagsfield.
-
coverageReductionMode
public VkPipelineCoverageReductionStateCreateInfoNV coverageReductionMode(int value)
Sets the specified value to thecoverageReductionModefield.
-
set
public VkPipelineCoverageReductionStateCreateInfoNV set(int sType, long pNext, int flags, int coverageReductionMode)
Initializes this struct with the specified values.
-
set
public VkPipelineCoverageReductionStateCreateInfoNV set(VkPipelineCoverageReductionStateCreateInfoNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineCoverageReductionStateCreateInfoNV malloc()
Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineCoverageReductionStateCreateInfoNV calloc()
Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineCoverageReductionStateCreateInfoNV create()
Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated withBufferUtils.
-
create
public static VkPipelineCoverageReductionStateCreateInfoNV create(long address)
Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineCoverageReductionStateCreateInfoNV createSafe(long address)
-
malloc
public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer create(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer create(long address, int capacity)
Create aVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPipelineCoverageReductionStateCreateInfoNV mallocStack()
Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineCoverageReductionStateCreateInfoNV callocStack()
Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineCoverageReductionStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineCoverageReductionStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageReductionStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer mallocStack(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer callocStack(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.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().
-
ncoverageReductionMode
public static int ncoverageReductionMode(long struct)
Unsafe version ofcoverageReductionMode().
-
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.
-
ncoverageReductionMode
public static void ncoverageReductionMode(long struct, int value)Unsafe version ofcoverageReductionMode.
-
-