public class VkPipelineColorBlendStateCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Each element of the pAttachments array is a VkPipelineColorBlendAttachmentState structure specifying per-target blending state for each individual color attachment. If the independent blending feature is not enabled on the device, all VkPipelineColorBlendAttachmentState elements in the pAttachments array must be identical.
pAttachments must be identicallogicOpEnable must be FALSElogicOpEnable is TRUE, logicOp must be a valid VkLogicOp valuesType must be STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFOpNext must be NULL or a pointer to a valid instance of VkPipelineColorBlendAdvancedStateCreateInfoEXTflags must be 0attachmentCount is not 0, pAttachments must be a valid pointer to an array of attachmentCount valid VkPipelineColorBlendAttachmentState structuresVkGraphicsPipelineCreateInfo, VkPipelineColorBlendAttachmentState
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.logicOpEnable – controls whether to apply Logical Operations.logicOp – selects which logical operation to apply.attachmentCount – the number of VkPipelineColorBlendAttachmentState elements in pAttachments. This value must equal the colorAttachmentCount for the subpass in which this pipeline is used.pAttachments – a pointer to an array of per target attachment states.blendConstants[4] – a pointer to an array of four values used as the R, G, B, and A components of the blend constant that are used in blending, depending on the blend factor.
struct VkPipelineColorBlendStateCreateInfo {
VkStructureType sType;
void const * pNext;
VkPipelineColorBlendStateCreateFlags flags;
VkBool32 logicOpEnable;
VkLogicOp logicOp;
uint32_t attachmentCount;
VkPipelineColorBlendAttachmentState const * pAttachments;
float blendConstants[4];
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPipelineColorBlendStateCreateInfo.Buffer
An array of
VkPipelineColorBlendStateCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ATTACHMENTCOUNT
The struct member offsets.
|
static int |
BLENDCONSTANTS
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
LOGICOP
The struct member offsets.
|
static int |
LOGICOPENABLE
The struct member offsets.
|
static int |
PATTACHMENTS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPipelineColorBlendStateCreateInfo(java.nio.ByteBuffer container)
Creates a
VkPipelineColorBlendStateCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
attachmentCount()
Returns the value of the
attachmentCount field. |
java.nio.FloatBuffer |
blendConstants()
Returns a
FloatBuffer view of the blendConstants field. |
VkPipelineColorBlendStateCreateInfo |
blendConstants(java.nio.FloatBuffer value)
Copies the specified
FloatBuffer to the blendConstants field. |
float |
blendConstants(int index)
Returns the value at the specified index of the
blendConstants field. |
VkPipelineColorBlendStateCreateInfo |
blendConstants(int index,
float value)
Sets the specified value at the specified index of the
blendConstants field. |
static VkPipelineColorBlendStateCreateInfo |
calloc()
Returns a new
VkPipelineColorBlendStateCreateInfo instance allocated with memCalloc. |
static VkPipelineColorBlendStateCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkPipelineColorBlendStateCreateInfo.Buffer instance allocated with memCalloc. |
static VkPipelineColorBlendStateCreateInfo |
callocStack()
Returns a new
VkPipelineColorBlendStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineColorBlendStateCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkPipelineColorBlendStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineColorBlendStateCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineColorBlendStateCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineColorBlendStateCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineColorBlendStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineColorBlendStateCreateInfo |
create()
Returns a new
VkPipelineColorBlendStateCreateInfo instance allocated with BufferUtils. |
static VkPipelineColorBlendStateCreateInfo.Buffer |
create(int capacity)
Returns a new
VkPipelineColorBlendStateCreateInfo.Buffer instance allocated with BufferUtils. |
static VkPipelineColorBlendStateCreateInfo |
create(long address)
Returns a new
VkPipelineColorBlendStateCreateInfo instance for the specified memory address. |
static VkPipelineColorBlendStateCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkPipelineColorBlendStateCreateInfo.Buffer instance at the specified memory. |
static VkPipelineColorBlendStateCreateInfo |
createSafe(long address)
|
static VkPipelineColorBlendStateCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkPipelineColorBlendStateCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
int |
logicOp()
Returns the value of the
logicOp field. |
VkPipelineColorBlendStateCreateInfo |
logicOp(int value)
Sets the specified value to the
logicOp field. |
boolean |
logicOpEnable()
Returns the value of the
logicOpEnable field. |
VkPipelineColorBlendStateCreateInfo |
logicOpEnable(boolean value)
Sets the specified value to the
logicOpEnable field. |
static VkPipelineColorBlendStateCreateInfo |
malloc()
Returns a new
VkPipelineColorBlendStateCreateInfo instance allocated with memAlloc. |
static VkPipelineColorBlendStateCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkPipelineColorBlendStateCreateInfo.Buffer instance allocated with memAlloc. |
static VkPipelineColorBlendStateCreateInfo |
mallocStack()
Returns a new
VkPipelineColorBlendStateCreateInfo instance allocated on the thread-local MemoryStack. |
static VkPipelineColorBlendStateCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkPipelineColorBlendStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkPipelineColorBlendStateCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineColorBlendStateCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkPipelineColorBlendStateCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineColorBlendStateCreateInfo instance allocated on the specified MemoryStack. |
static int |
nattachmentCount(long struct)
Unsafe version of
attachmentCount(). |
static void |
nattachmentCount(long struct,
int value)
Sets the specified value to the
attachmentCount field of the specified struct. |
static java.nio.FloatBuffer |
nblendConstants(long struct)
Unsafe version of
blendConstants(). |
static void |
nblendConstants(long struct,
java.nio.FloatBuffer value)
Unsafe version of
blendConstants. |
static float |
nblendConstants(long struct,
int index)
Unsafe version of
blendConstants. |
static void |
nblendConstants(long struct,
int index,
float value)
Unsafe version of
blendConstants. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static int |
nlogicOp(long struct)
Unsafe version of
logicOp(). |
static void |
nlogicOp(long struct,
int value)
Unsafe version of
logicOp. |
static int |
nlogicOpEnable(long struct)
Unsafe version of
logicOpEnable(). |
static void |
nlogicOpEnable(long struct,
int value)
Unsafe version of
logicOpEnable. |
static VkPipelineColorBlendAttachmentState.Buffer |
npAttachments(long struct)
Unsafe version of
pAttachments(). |
static void |
npAttachments(long struct,
VkPipelineColorBlendAttachmentState.Buffer value)
Unsafe version of
pAttachments. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
VkPipelineColorBlendAttachmentState.Buffer |
pAttachments()
Returns a
VkPipelineColorBlendAttachmentState.Buffer view of the struct array pointed to by the pAttachments field. |
VkPipelineColorBlendStateCreateInfo |
pAttachments(VkPipelineColorBlendAttachmentState.Buffer value)
Sets the address of the specified
VkPipelineColorBlendAttachmentState.Buffer to the pAttachments field. |
long |
pNext()
Returns the value of the
pNext field. |
VkPipelineColorBlendStateCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPipelineColorBlendStateCreateInfo |
set(int sType,
long pNext,
int flags,
boolean logicOpEnable,
int logicOp,
VkPipelineColorBlendAttachmentState.Buffer pAttachments,
java.nio.FloatBuffer blendConstants)
Initializes this struct with the specified values.
|
VkPipelineColorBlendStateCreateInfo |
set(VkPipelineColorBlendStateCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPipelineColorBlendStateCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
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 LOGICOPENABLE
public static final int LOGICOP
public static final int ATTACHMENTCOUNT
public static final int PATTACHMENTS
public static final int BLENDCONSTANTS
public VkPipelineColorBlendStateCreateInfo(java.nio.ByteBuffer container)
VkPipelineColorBlendStateCreateInfo 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 boolean logicOpEnable()
logicOpEnable field.public int logicOp()
logicOp field.public int attachmentCount()
attachmentCount field.@Nullable public VkPipelineColorBlendAttachmentState.Buffer pAttachments()
VkPipelineColorBlendAttachmentState.Buffer view of the struct array pointed to by the pAttachments field.public java.nio.FloatBuffer blendConstants()
FloatBuffer view of the blendConstants field.public float blendConstants(int index)
blendConstants field.public VkPipelineColorBlendStateCreateInfo sType(int value)
sType field.public VkPipelineColorBlendStateCreateInfo pNext(long value)
pNext field.public VkPipelineColorBlendStateCreateInfo flags(int value)
flags field.public VkPipelineColorBlendStateCreateInfo logicOpEnable(boolean value)
logicOpEnable field.public VkPipelineColorBlendStateCreateInfo logicOp(int value)
logicOp field.public VkPipelineColorBlendStateCreateInfo pAttachments(@Nullable VkPipelineColorBlendAttachmentState.Buffer value)
VkPipelineColorBlendAttachmentState.Buffer to the pAttachments field.public VkPipelineColorBlendStateCreateInfo blendConstants(java.nio.FloatBuffer value)
FloatBuffer to the blendConstants field.public VkPipelineColorBlendStateCreateInfo blendConstants(int index, float value)
blendConstants field.public VkPipelineColorBlendStateCreateInfo set(int sType, long pNext, int flags, boolean logicOpEnable, int logicOp, @Nullable VkPipelineColorBlendAttachmentState.Buffer pAttachments, java.nio.FloatBuffer blendConstants)
public VkPipelineColorBlendStateCreateInfo set(VkPipelineColorBlendStateCreateInfo src)
src - the source structpublic static VkPipelineColorBlendStateCreateInfo malloc()
VkPipelineColorBlendStateCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkPipelineColorBlendStateCreateInfo calloc()
VkPipelineColorBlendStateCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkPipelineColorBlendStateCreateInfo create()
VkPipelineColorBlendStateCreateInfo instance allocated with BufferUtils.public static VkPipelineColorBlendStateCreateInfo create(long address)
VkPipelineColorBlendStateCreateInfo instance for the specified memory address.@Nullable public static VkPipelineColorBlendStateCreateInfo createSafe(long address)
public static VkPipelineColorBlendStateCreateInfo.Buffer malloc(int capacity)
VkPipelineColorBlendStateCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineColorBlendStateCreateInfo.Buffer calloc(int capacity)
VkPipelineColorBlendStateCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineColorBlendStateCreateInfo.Buffer create(int capacity)
VkPipelineColorBlendStateCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPipelineColorBlendStateCreateInfo.Buffer create(long address, int capacity)
VkPipelineColorBlendStateCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPipelineColorBlendStateCreateInfo.Buffer createSafe(long address, int capacity)
public static VkPipelineColorBlendStateCreateInfo mallocStack()
VkPipelineColorBlendStateCreateInfo instance allocated on the thread-local MemoryStack.public static VkPipelineColorBlendStateCreateInfo callocStack()
VkPipelineColorBlendStateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPipelineColorBlendStateCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineColorBlendStateCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPipelineColorBlendStateCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineColorBlendStateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPipelineColorBlendStateCreateInfo.Buffer mallocStack(int capacity)
VkPipelineColorBlendStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPipelineColorBlendStateCreateInfo.Buffer callocStack(int capacity)
VkPipelineColorBlendStateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPipelineColorBlendStateCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineColorBlendStateCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPipelineColorBlendStateCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineColorBlendStateCreateInfo.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 nlogicOpEnable(long struct)
logicOpEnable().public static int nlogicOp(long struct)
logicOp().public static int nattachmentCount(long struct)
attachmentCount().@Nullable public static VkPipelineColorBlendAttachmentState.Buffer npAttachments(long struct)
pAttachments().public static java.nio.FloatBuffer nblendConstants(long struct)
blendConstants().public static float nblendConstants(long struct,
int index)
blendConstants.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 nlogicOpEnable(long struct,
int value)
logicOpEnable.public static void nlogicOp(long struct,
int value)
logicOp.public static void nattachmentCount(long struct,
int value)
attachmentCount field of the specified struct.public static void npAttachments(long struct,
@Nullable
VkPipelineColorBlendAttachmentState.Buffer value)
pAttachments.public static void nblendConstants(long struct,
java.nio.FloatBuffer value)
blendConstants.public static void nblendConstants(long struct,
int index,
float value)
blendConstants.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.