public class VkPipelineMultisampleStateCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sampleShadingEnable must be FALSEalphaToOneEnable must be FALSEminSampleShading must be in the range [0,1]VK_NV_framebuffer_mixed_samples extension is enabled, and if the subpass has any color attachments and rasterizationSamples is greater than the number of color samples, then sampleShadingEnable must be FALSEsType must be STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFOpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkPipelineCoverageModulationStateCreateInfoNV, VkPipelineCoverageReductionStateCreateInfoNV, VkPipelineCoverageToColorStateCreateInfoNV, or VkPipelineSampleLocationsStateCreateInfoEXTsType member in the pNext chain must be uniqueflags must be 0rasterizationSamples must be a valid VkSampleCountFlagBits valuepSampleMask is not NULL, pSampleMask must be a valid pointer to an array of ceil(rasterizationSamples / 32) VkSampleMask valuessType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.rasterizationSamples – a VkSampleCountFlagBits specifying the number of samples used in rasterization.sampleShadingEnable – can be used to enable Sample Shading.minSampleShading – specifies a minimum fraction of sample shading if sampleShadingEnable is set to TRUE.pSampleMask – a bitmask of static coverage information that is ANDed with the coverage information generated during rasterization, as described in Sample Mask.alphaToCoverageEnable – controls whether a temporary coverage value is generated based on the alpha component of the fragment’s first color output as specified in the Multisample Coverage section.alphaToOneEnable – controls whether the alpha component of the fragment’s first color output is replaced with one as described in Multisample Coverage.
struct VkPipelineMultisampleStateCreateInfo {
VkStructureType sType;
void const * pNext;
VkPipelineMultisampleStateCreateFlags flags;
VkSampleCountFlagBits rasterizationSamples;
VkBool32 sampleShadingEnable;
float minSampleShading;
VkSampleMask const * pSampleMask;
VkBool32 alphaToCoverageEnable;
VkBool32 alphaToOneEnable;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPipelineMultisampleStateCreateInfo.Buffer
An array of
VkPipelineMultisampleStateCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ALPHATOCOVERAGEENABLE
The struct member offsets.
|
static int |
ALPHATOONEENABLE
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
MINSAMPLESHADING
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PSAMPLEMASK
The struct member offsets.
|
static int |
RASTERIZATIONSAMPLES
The struct member offsets.
|
static int |
SAMPLESHADINGENABLE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPipelineMultisampleStateCreateInfo(java.nio.ByteBuffer container)
Creates a
VkPipelineMultisampleStateCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
alphaToCoverageEnable()
Returns the value of the
alphaToCoverageEnable field. |
VkPipelineMultisampleStateCreateInfo |
alphaToCoverageEnable(boolean value)
Sets the specified value to the
alphaToCoverageEnable field. |
boolean |
alphaToOneEnable()
Returns the value of the
alphaToOneEnable field. |
VkPipelineMultisampleStateCreateInfo |
alphaToOneEnable(boolean value)
Sets the specified value to the
alphaToOneEnable field. |
static VkPipelineMultisampleStateCreateInfo |
calloc()
Returns a new
VkPipelineMultisampleStateCreateInfo instance allocated with memCalloc. |
static VkPipelineMultisampleStateCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkPipelineMultisampleStateCreateInfo.Buffer instance allocated with memCalloc. |
static VkPipelineMultisampleStateCreateInfo |
callocStack()
Returns a new
VkPipelineMultisampleStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineMultisampleStateCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkPipelineMultisampleStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineMultisampleStateCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineMultisampleStateCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineMultisampleStateCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineMultisampleStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineMultisampleStateCreateInfo |
create()
Returns a new
VkPipelineMultisampleStateCreateInfo instance allocated with BufferUtils. |
static VkPipelineMultisampleStateCreateInfo.Buffer |
create(int capacity)
Returns a new
VkPipelineMultisampleStateCreateInfo.Buffer instance allocated with BufferUtils. |
static VkPipelineMultisampleStateCreateInfo |
create(long address)
Returns a new
VkPipelineMultisampleStateCreateInfo instance for the specified memory address. |
static VkPipelineMultisampleStateCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkPipelineMultisampleStateCreateInfo.Buffer instance at the specified memory. |
static VkPipelineMultisampleStateCreateInfo |
createSafe(long address)
|
static VkPipelineMultisampleStateCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkPipelineMultisampleStateCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
static VkPipelineMultisampleStateCreateInfo |
malloc()
Returns a new
VkPipelineMultisampleStateCreateInfo instance allocated with memAlloc. |
static VkPipelineMultisampleStateCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkPipelineMultisampleStateCreateInfo.Buffer instance allocated with memAlloc. |
static VkPipelineMultisampleStateCreateInfo |
mallocStack()
Returns a new
VkPipelineMultisampleStateCreateInfo instance allocated on the thread-local MemoryStack. |
static VkPipelineMultisampleStateCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkPipelineMultisampleStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkPipelineMultisampleStateCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineMultisampleStateCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkPipelineMultisampleStateCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineMultisampleStateCreateInfo instance allocated on the specified MemoryStack. |
float |
minSampleShading()
Returns the value of the
minSampleShading field. |
VkPipelineMultisampleStateCreateInfo |
minSampleShading(float value)
Sets the specified value to the
minSampleShading field. |
static int |
nalphaToCoverageEnable(long struct)
Unsafe version of
alphaToCoverageEnable(). |
static void |
nalphaToCoverageEnable(long struct,
int value)
Unsafe version of
alphaToCoverageEnable. |
static int |
nalphaToOneEnable(long struct)
Unsafe version of
alphaToOneEnable(). |
static void |
nalphaToOneEnable(long struct,
int value)
Unsafe version of
alphaToOneEnable. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static float |
nminSampleShading(long struct)
Unsafe version of
minSampleShading(). |
static void |
nminSampleShading(long struct,
float value)
Unsafe version of
minSampleShading. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static java.nio.IntBuffer |
npSampleMask(long struct,
int capacity)
Unsafe version of
pSampleMask. |
static void |
npSampleMask(long struct,
java.nio.IntBuffer value)
Unsafe version of
pSampleMask. |
static int |
nrasterizationSamples(long struct)
Unsafe version of
rasterizationSamples(). |
static void |
nrasterizationSamples(long struct,
int value)
Unsafe version of
rasterizationSamples. |
static int |
nsampleShadingEnable(long struct)
Unsafe version of
sampleShadingEnable(). |
static void |
nsampleShadingEnable(long struct,
int value)
Unsafe version of
sampleShadingEnable. |
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. |
VkPipelineMultisampleStateCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
java.nio.IntBuffer |
pSampleMask(int capacity)
Returns a
IntBuffer view of the data pointed to by the pSampleMask field. |
VkPipelineMultisampleStateCreateInfo |
pSampleMask(java.nio.IntBuffer value)
Sets the address of the specified
IntBuffer to the pSampleMask field. |
int |
rasterizationSamples()
Returns the value of the
rasterizationSamples field. |
VkPipelineMultisampleStateCreateInfo |
rasterizationSamples(int value)
Sets the specified value to the
rasterizationSamples field. |
boolean |
sampleShadingEnable()
Returns the value of the
sampleShadingEnable field. |
VkPipelineMultisampleStateCreateInfo |
sampleShadingEnable(boolean value)
Sets the specified value to the
sampleShadingEnable field. |
VkPipelineMultisampleStateCreateInfo |
set(int sType,
long pNext,
int flags,
int rasterizationSamples,
boolean sampleShadingEnable,
float minSampleShading,
java.nio.IntBuffer pSampleMask,
boolean alphaToCoverageEnable,
boolean alphaToOneEnable)
Initializes this struct with the specified values.
|
VkPipelineMultisampleStateCreateInfo |
set(VkPipelineMultisampleStateCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPipelineMultisampleStateCreateInfo |
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 RASTERIZATIONSAMPLES
public static final int SAMPLESHADINGENABLE
public static final int MINSAMPLESHADING
public static final int PSAMPLEMASK
public static final int ALPHATOCOVERAGEENABLE
public static final int ALPHATOONEENABLE
public VkPipelineMultisampleStateCreateInfo(java.nio.ByteBuffer container)
VkPipelineMultisampleStateCreateInfo 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 int rasterizationSamples()
rasterizationSamples field.public boolean sampleShadingEnable()
sampleShadingEnable field.public float minSampleShading()
minSampleShading field.@Nullable public java.nio.IntBuffer pSampleMask(int capacity)
IntBuffer view of the data pointed to by the pSampleMask field.capacity - the number of elements in the returned bufferpublic boolean alphaToCoverageEnable()
alphaToCoverageEnable field.public boolean alphaToOneEnable()
alphaToOneEnable field.public VkPipelineMultisampleStateCreateInfo sType(int value)
sType field.public VkPipelineMultisampleStateCreateInfo pNext(long value)
pNext field.public VkPipelineMultisampleStateCreateInfo flags(int value)
flags field.public VkPipelineMultisampleStateCreateInfo rasterizationSamples(int value)
rasterizationSamples field.public VkPipelineMultisampleStateCreateInfo sampleShadingEnable(boolean value)
sampleShadingEnable field.public VkPipelineMultisampleStateCreateInfo minSampleShading(float value)
minSampleShading field.public VkPipelineMultisampleStateCreateInfo pSampleMask(@Nullable java.nio.IntBuffer value)
IntBuffer to the pSampleMask field.public VkPipelineMultisampleStateCreateInfo alphaToCoverageEnable(boolean value)
alphaToCoverageEnable field.public VkPipelineMultisampleStateCreateInfo alphaToOneEnable(boolean value)
alphaToOneEnable field.public VkPipelineMultisampleStateCreateInfo set(int sType, long pNext, int flags, int rasterizationSamples, boolean sampleShadingEnable, float minSampleShading, @Nullable java.nio.IntBuffer pSampleMask, boolean alphaToCoverageEnable, boolean alphaToOneEnable)
public VkPipelineMultisampleStateCreateInfo set(VkPipelineMultisampleStateCreateInfo src)
src - the source structpublic static VkPipelineMultisampleStateCreateInfo malloc()
VkPipelineMultisampleStateCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkPipelineMultisampleStateCreateInfo calloc()
VkPipelineMultisampleStateCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkPipelineMultisampleStateCreateInfo create()
VkPipelineMultisampleStateCreateInfo instance allocated with BufferUtils.public static VkPipelineMultisampleStateCreateInfo create(long address)
VkPipelineMultisampleStateCreateInfo instance for the specified memory address.@Nullable public static VkPipelineMultisampleStateCreateInfo createSafe(long address)
public static VkPipelineMultisampleStateCreateInfo.Buffer malloc(int capacity)
VkPipelineMultisampleStateCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineMultisampleStateCreateInfo.Buffer calloc(int capacity)
VkPipelineMultisampleStateCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineMultisampleStateCreateInfo.Buffer create(int capacity)
VkPipelineMultisampleStateCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPipelineMultisampleStateCreateInfo.Buffer create(long address, int capacity)
VkPipelineMultisampleStateCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPipelineMultisampleStateCreateInfo.Buffer createSafe(long address, int capacity)
public static VkPipelineMultisampleStateCreateInfo mallocStack()
VkPipelineMultisampleStateCreateInfo instance allocated on the thread-local MemoryStack.public static VkPipelineMultisampleStateCreateInfo callocStack()
VkPipelineMultisampleStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPipelineMultisampleStateCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineMultisampleStateCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPipelineMultisampleStateCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineMultisampleStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPipelineMultisampleStateCreateInfo.Buffer mallocStack(int capacity)
VkPipelineMultisampleStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPipelineMultisampleStateCreateInfo.Buffer callocStack(int capacity)
VkPipelineMultisampleStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPipelineMultisampleStateCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineMultisampleStateCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPipelineMultisampleStateCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineMultisampleStateCreateInfo.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 nrasterizationSamples(long struct)
rasterizationSamples().public static int nsampleShadingEnable(long struct)
sampleShadingEnable().public static float nminSampleShading(long struct)
minSampleShading().@Nullable
public static java.nio.IntBuffer npSampleMask(long struct,
int capacity)
pSampleMask.public static int nalphaToCoverageEnable(long struct)
alphaToCoverageEnable().public static int nalphaToOneEnable(long struct)
alphaToOneEnable().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 nrasterizationSamples(long struct,
int value)
rasterizationSamples.public static void nsampleShadingEnable(long struct,
int value)
sampleShadingEnable.public static void nminSampleShading(long struct,
float value)
minSampleShading.public static void npSampleMask(long struct,
@Nullable
java.nio.IntBuffer value)
pSampleMask.public static void nalphaToCoverageEnable(long struct,
int value)
alphaToCoverageEnable.public static void nalphaToOneEnable(long struct,
int value)
alphaToOneEnable.Copyright LWJGL. All Rights Reserved. License terms.