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.NativeResource
Structure 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_samples
extension is enabled, then it is as if thecoverageReductionMode
isCOVERAGE_REDUCTION_MODE_MERGE_NV
. - If the
VK_AMD_mixed_attachment_samples
extension is enabled, then it is as if thecoverageReductionMode
isCOVERAGE_REDUCTION_MODE_TRUNCATE_NV
. - If both
VK_NV_framebuffer_mixed_samples
andVK_AMD_mixed_attachment_samples
are enabled, then the default coverage reduction mode is implementation-dependent.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_COVERAGE_REDUCTION_STATE_CREATE_INFO_NV
flags
must be 0coverageReductionMode
must be a validVkCoverageReductionModeNV
value
Member documentation
sType
– the type of this structure.pNext
–NULL
or 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 class
VkPipelineCoverageReductionStateCreateInfoNV.Buffer
An array ofVkPipelineCoverageReductionStateCreateInfoNV
structs.
-
Constructor Summary
Constructors Constructor Description VkPipelineCoverageReductionStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineCoverageReductionStateCreateInfoNV
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 VkPipelineCoverageReductionStateCreateInfoNV
calloc()
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated withmemCalloc
.static VkPipelineCoverageReductionStateCreateInfoNV.Buffer
calloc(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Buffer
instance allocated withmemCalloc
.static VkPipelineCoverageReductionStateCreateInfoNV
callocStack()
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineCoverageReductionStateCreateInfoNV.Buffer
callocStack(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineCoverageReductionStateCreateInfoNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineCoverageReductionStateCreateInfoNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
coverageReductionMode()
Returns the value of thecoverageReductionMode
field.VkPipelineCoverageReductionStateCreateInfoNV
coverageReductionMode(int value)
Sets the specified value to thecoverageReductionMode
field.static VkPipelineCoverageReductionStateCreateInfoNV
create()
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated withBufferUtils
.static VkPipelineCoverageReductionStateCreateInfoNV.Buffer
create(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Buffer
instance allocated withBufferUtils
.static VkPipelineCoverageReductionStateCreateInfoNV
create(long address)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance for the specified memory address.static VkPipelineCoverageReductionStateCreateInfoNV.Buffer
create(long address, int capacity)
Create aVkPipelineCoverageReductionStateCreateInfoNV.Buffer
instance at the specified memory.static VkPipelineCoverageReductionStateCreateInfoNV
createSafe(long address)
static VkPipelineCoverageReductionStateCreateInfoNV.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkPipelineCoverageReductionStateCreateInfoNV
flags(int value)
Sets the specified value to theflags
field.static VkPipelineCoverageReductionStateCreateInfoNV
malloc()
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated withmemAlloc
.static VkPipelineCoverageReductionStateCreateInfoNV.Buffer
malloc(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Buffer
instance allocated withmemAlloc
.static VkPipelineCoverageReductionStateCreateInfoNV
mallocStack()
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated on the thread-localMemoryStack
.static VkPipelineCoverageReductionStateCreateInfoNV.Buffer
mallocStack(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkPipelineCoverageReductionStateCreateInfoNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkPipelineCoverageReductionStateCreateInfoNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated on the specifiedMemoryStack
.static int
ncoverageReductionMode(long struct)
Unsafe version ofcoverageReductionMode()
.static void
ncoverageReductionMode(long struct, int value)
Unsafe version ofcoverageReductionMode
.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.VkPipelineCoverageReductionStateCreateInfoNV
pNext(long value)
Sets the specified value to thepNext
field.VkPipelineCoverageReductionStateCreateInfoNV
set(int sType, long pNext, int flags, int coverageReductionMode)
Initializes this struct with the specified values.VkPipelineCoverageReductionStateCreateInfoNV
set(VkPipelineCoverageReductionStateCreateInfoNV src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPipelineCoverageReductionStateCreateInfoNV
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPipelineCoverageReductionStateCreateInfoNV
public VkPipelineCoverageReductionStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineCoverageReductionStateCreateInfoNV
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.
-
coverageReductionMode
public int coverageReductionMode()
Returns the value of thecoverageReductionMode
field.
-
sType
public VkPipelineCoverageReductionStateCreateInfoNV sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPipelineCoverageReductionStateCreateInfoNV pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkPipelineCoverageReductionStateCreateInfoNV flags(int value)
Sets the specified value to theflags
field.
-
coverageReductionMode
public VkPipelineCoverageReductionStateCreateInfoNV coverageReductionMode(int value)
Sets the specified value to thecoverageReductionMode
field.
-
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 newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPipelineCoverageReductionStateCreateInfoNV calloc()
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPipelineCoverageReductionStateCreateInfoNV create()
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated withBufferUtils
.
-
create
public static VkPipelineCoverageReductionStateCreateInfoNV create(long address)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineCoverageReductionStateCreateInfoNV createSafe(long address)
-
malloc
public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer create(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer create(long address, int capacity)
Create aVkPipelineCoverageReductionStateCreateInfoNV.Buffer
instance 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 newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPipelineCoverageReductionStateCreateInfoNV callocStack()
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPipelineCoverageReductionStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPipelineCoverageReductionStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPipelineCoverageReductionStateCreateInfoNV.Buffer callocStack(int capacity)
Returns a newVkPipelineCoverageReductionStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.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()
.
-
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
.
-
-