public class VkPipelineColorBlendAttachmentState
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
srcColorBlendFactor must not be BLEND_FACTOR_SRC1_COLOR, BLEND_FACTOR_ONE_MINUS_SRC1_COLOR, BLEND_FACTOR_SRC1_ALPHA, or BLEND_FACTOR_ONE_MINUS_SRC1_ALPHAdstColorBlendFactor must not be BLEND_FACTOR_SRC1_COLOR, BLEND_FACTOR_ONE_MINUS_SRC1_COLOR, BLEND_FACTOR_SRC1_ALPHA, or BLEND_FACTOR_ONE_MINUS_SRC1_ALPHAsrcAlphaBlendFactor must not be BLEND_FACTOR_SRC1_COLOR, BLEND_FACTOR_ONE_MINUS_SRC1_COLOR, BLEND_FACTOR_SRC1_ALPHA, or BLEND_FACTOR_ONE_MINUS_SRC1_ALPHAdstAlphaBlendFactor must not be BLEND_FACTOR_SRC1_COLOR, BLEND_FACTOR_ONE_MINUS_SRC1_COLOR, BLEND_FACTOR_SRC1_ALPHA, or BLEND_FACTOR_ONE_MINUS_SRC1_ALPHAcolorBlendOp or alphaBlendOp is an advanced blend operation, then colorBlendOp must equal alphaBlendOpVkPhysicalDeviceBlendOperationAdvancedPropertiesEXT::advancedBlendIndependentBlend is FALSE and colorBlendOp is an advanced blend operation, then colorBlendOp must be the same for all attachments.VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT::advancedBlendIndependentBlend is FALSE and alphaBlendOp is an advanced blend operation, then alphaBlendOp must be the same for all attachments.VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT::advancedBlendAllOperations is FALSE, then colorBlendOp must not be BLEND_OP_ZERO_EXT, BLEND_OP_SRC_EXT, BLEND_OP_DST_EXT, BLEND_OP_SRC_OVER_EXT, BLEND_OP_DST_OVER_EXT, BLEND_OP_SRC_IN_EXT, BLEND_OP_DST_IN_EXT, BLEND_OP_SRC_OUT_EXT, BLEND_OP_DST_OUT_EXT, BLEND_OP_SRC_ATOP_EXT, BLEND_OP_DST_ATOP_EXT, BLEND_OP_XOR_EXT, BLEND_OP_INVERT_EXT, BLEND_OP_INVERT_RGB_EXT, BLEND_OP_LINEARDODGE_EXT, BLEND_OP_LINEARBURN_EXT, BLEND_OP_VIVIDLIGHT_EXT, BLEND_OP_LINEARLIGHT_EXT, BLEND_OP_PINLIGHT_EXT, BLEND_OP_HARDMIX_EXT, BLEND_OP_PLUS_EXT, BLEND_OP_PLUS_CLAMPED_EXT, BLEND_OP_PLUS_CLAMPED_ALPHA_EXT, BLEND_OP_PLUS_DARKER_EXT, BLEND_OP_MINUS_EXT, BLEND_OP_MINUS_CLAMPED_EXT, BLEND_OP_CONTRAST_EXT, BLEND_OP_INVERT_OVG_EXT, BLEND_OP_RED_EXT, BLEND_OP_GREEN_EXT, or BLEND_OP_BLUE_EXTcolorBlendOp or alphaBlendOp is an advanced blend operation, then VkSubpassDescription::colorAttachmentCount of the subpass this pipeline is compiled against must be less than or equal to VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT::advancedBlendMaxColorAttachmentssrcColorBlendFactor must be a valid VkBlendFactor valuedstColorBlendFactor must be a valid VkBlendFactor valuecolorBlendOp must be a valid VkBlendOp valuesrcAlphaBlendFactor must be a valid VkBlendFactor valuedstAlphaBlendFactor must be a valid VkBlendFactor valuealphaBlendOp must be a valid VkBlendOp valuecolorWriteMask must be a valid combination of VkColorComponentFlagBits valuesVkPipelineColorBlendStateCreateInfo
blendEnable – controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment’s color for that attachment is passed through unmodified.srcColorBlendFactor – selects which blend factor is used to determine the source factors (Sr,Sg,Sb).dstColorBlendFactor – selects which blend factor is used to determine the destination factors (Dr,Dg,Db).colorBlendOp – selects which blend operation is used to calculate the RGB values to write to the color attachment.srcAlphaBlendFactor – selects which blend factor is used to determine the source factor Sa.dstAlphaBlendFactor – selects which blend factor is used to determine the destination factor Da.alphaBlendOp – selects which blend operation is use to calculate the alpha values to write to the color attachment.colorWriteMask – a bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask.
struct VkPipelineColorBlendAttachmentState {
VkBool32 blendEnable;
VkBlendFactor srcColorBlendFactor;
VkBlendFactor dstColorBlendFactor;
VkBlendOp colorBlendOp;
VkBlendFactor srcAlphaBlendFactor;
VkBlendFactor dstAlphaBlendFactor;
VkBlendOp alphaBlendOp;
VkColorComponentFlags colorWriteMask;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPipelineColorBlendAttachmentState.Buffer
An array of
VkPipelineColorBlendAttachmentState structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ALPHABLENDOP
The struct member offsets.
|
static int |
BLENDENABLE
The struct member offsets.
|
static int |
COLORBLENDOP
The struct member offsets.
|
static int |
COLORWRITEMASK
The struct member offsets.
|
static int |
DSTALPHABLENDFACTOR
The struct member offsets.
|
static int |
DSTCOLORBLENDFACTOR
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SRCALPHABLENDFACTOR
The struct member offsets.
|
static int |
SRCCOLORBLENDFACTOR
The struct member offsets.
|
| Constructor and Description |
|---|
VkPipelineColorBlendAttachmentState(java.nio.ByteBuffer container)
Creates a
VkPipelineColorBlendAttachmentState instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
alphaBlendOp()
Returns the value of the
alphaBlendOp field. |
VkPipelineColorBlendAttachmentState |
alphaBlendOp(int value)
Sets the specified value to the
alphaBlendOp field. |
boolean |
blendEnable()
Returns the value of the
blendEnable field. |
VkPipelineColorBlendAttachmentState |
blendEnable(boolean value)
Sets the specified value to the
blendEnable field. |
static VkPipelineColorBlendAttachmentState |
calloc()
Returns a new
VkPipelineColorBlendAttachmentState instance allocated with memCalloc. |
static VkPipelineColorBlendAttachmentState.Buffer |
calloc(int capacity)
Returns a new
VkPipelineColorBlendAttachmentState.Buffer instance allocated with memCalloc. |
static VkPipelineColorBlendAttachmentState |
callocStack()
Returns a new
VkPipelineColorBlendAttachmentState instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineColorBlendAttachmentState.Buffer |
callocStack(int capacity)
Returns a new
VkPipelineColorBlendAttachmentState.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineColorBlendAttachmentState.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineColorBlendAttachmentState.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineColorBlendAttachmentState |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineColorBlendAttachmentState instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
colorBlendOp()
Returns the value of the
colorBlendOp field. |
VkPipelineColorBlendAttachmentState |
colorBlendOp(int value)
Sets the specified value to the
colorBlendOp field. |
int |
colorWriteMask()
Returns the value of the
colorWriteMask field. |
VkPipelineColorBlendAttachmentState |
colorWriteMask(int value)
Sets the specified value to the
colorWriteMask field. |
static VkPipelineColorBlendAttachmentState |
create()
Returns a new
VkPipelineColorBlendAttachmentState instance allocated with BufferUtils. |
static VkPipelineColorBlendAttachmentState.Buffer |
create(int capacity)
Returns a new
VkPipelineColorBlendAttachmentState.Buffer instance allocated with BufferUtils. |
static VkPipelineColorBlendAttachmentState |
create(long address)
Returns a new
VkPipelineColorBlendAttachmentState instance for the specified memory address. |
static VkPipelineColorBlendAttachmentState.Buffer |
create(long address,
int capacity)
Create a
VkPipelineColorBlendAttachmentState.Buffer instance at the specified memory. |
static VkPipelineColorBlendAttachmentState |
createSafe(long address)
|
static VkPipelineColorBlendAttachmentState.Buffer |
createSafe(long address,
int capacity)
|
int |
dstAlphaBlendFactor()
Returns the value of the
dstAlphaBlendFactor field. |
VkPipelineColorBlendAttachmentState |
dstAlphaBlendFactor(int value)
Sets the specified value to the
dstAlphaBlendFactor field. |
int |
dstColorBlendFactor()
Returns the value of the
dstColorBlendFactor field. |
VkPipelineColorBlendAttachmentState |
dstColorBlendFactor(int value)
Sets the specified value to the
dstColorBlendFactor field. |
static VkPipelineColorBlendAttachmentState |
malloc()
Returns a new
VkPipelineColorBlendAttachmentState instance allocated with memAlloc. |
static VkPipelineColorBlendAttachmentState.Buffer |
malloc(int capacity)
Returns a new
VkPipelineColorBlendAttachmentState.Buffer instance allocated with memAlloc. |
static VkPipelineColorBlendAttachmentState |
mallocStack()
Returns a new
VkPipelineColorBlendAttachmentState instance allocated on the thread-local MemoryStack. |
static VkPipelineColorBlendAttachmentState.Buffer |
mallocStack(int capacity)
Returns a new
VkPipelineColorBlendAttachmentState.Buffer instance allocated on the thread-local MemoryStack. |
static VkPipelineColorBlendAttachmentState.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineColorBlendAttachmentState.Buffer instance allocated on the specified MemoryStack. |
static VkPipelineColorBlendAttachmentState |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineColorBlendAttachmentState instance allocated on the specified MemoryStack. |
static int |
nalphaBlendOp(long struct)
Unsafe version of
alphaBlendOp(). |
static void |
nalphaBlendOp(long struct,
int value)
Unsafe version of
alphaBlendOp. |
static int |
nblendEnable(long struct)
Unsafe version of
blendEnable(). |
static void |
nblendEnable(long struct,
int value)
Unsafe version of
blendEnable. |
static int |
ncolorBlendOp(long struct)
Unsafe version of
colorBlendOp(). |
static void |
ncolorBlendOp(long struct,
int value)
Unsafe version of
colorBlendOp. |
static int |
ncolorWriteMask(long struct)
Unsafe version of
colorWriteMask(). |
static void |
ncolorWriteMask(long struct,
int value)
Unsafe version of
colorWriteMask. |
static int |
ndstAlphaBlendFactor(long struct)
Unsafe version of
dstAlphaBlendFactor(). |
static void |
ndstAlphaBlendFactor(long struct,
int value)
Unsafe version of
dstAlphaBlendFactor. |
static int |
ndstColorBlendFactor(long struct)
Unsafe version of
dstColorBlendFactor(). |
static void |
ndstColorBlendFactor(long struct,
int value)
Unsafe version of
dstColorBlendFactor. |
static int |
nsrcAlphaBlendFactor(long struct)
Unsafe version of
srcAlphaBlendFactor(). |
static void |
nsrcAlphaBlendFactor(long struct,
int value)
Unsafe version of
srcAlphaBlendFactor. |
static int |
nsrcColorBlendFactor(long struct)
Unsafe version of
srcColorBlendFactor(). |
static void |
nsrcColorBlendFactor(long struct,
int value)
Unsafe version of
srcColorBlendFactor. |
VkPipelineColorBlendAttachmentState |
set(boolean blendEnable,
int srcColorBlendFactor,
int dstColorBlendFactor,
int colorBlendOp,
int srcAlphaBlendFactor,
int dstAlphaBlendFactor,
int alphaBlendOp,
int colorWriteMask)
Initializes this struct with the specified values.
|
VkPipelineColorBlendAttachmentState |
set(VkPipelineColorBlendAttachmentState src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
srcAlphaBlendFactor()
Returns the value of the
srcAlphaBlendFactor field. |
VkPipelineColorBlendAttachmentState |
srcAlphaBlendFactor(int value)
Sets the specified value to the
srcAlphaBlendFactor field. |
int |
srcColorBlendFactor()
Returns the value of the
srcColorBlendFactor field. |
VkPipelineColorBlendAttachmentState |
srcColorBlendFactor(int value)
Sets the specified value to the
srcColorBlendFactor field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BLENDENABLE
public static final int SRCCOLORBLENDFACTOR
public static final int DSTCOLORBLENDFACTOR
public static final int COLORBLENDOP
public static final int SRCALPHABLENDFACTOR
public static final int DSTALPHABLENDFACTOR
public static final int ALPHABLENDOP
public static final int COLORWRITEMASK
public VkPipelineColorBlendAttachmentState(java.nio.ByteBuffer container)
VkPipelineColorBlendAttachmentState 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 boolean blendEnable()
blendEnable field.public int srcColorBlendFactor()
srcColorBlendFactor field.public int dstColorBlendFactor()
dstColorBlendFactor field.public int colorBlendOp()
colorBlendOp field.public int srcAlphaBlendFactor()
srcAlphaBlendFactor field.public int dstAlphaBlendFactor()
dstAlphaBlendFactor field.public int alphaBlendOp()
alphaBlendOp field.public int colorWriteMask()
colorWriteMask field.public VkPipelineColorBlendAttachmentState blendEnable(boolean value)
blendEnable field.public VkPipelineColorBlendAttachmentState srcColorBlendFactor(int value)
srcColorBlendFactor field.public VkPipelineColorBlendAttachmentState dstColorBlendFactor(int value)
dstColorBlendFactor field.public VkPipelineColorBlendAttachmentState colorBlendOp(int value)
colorBlendOp field.public VkPipelineColorBlendAttachmentState srcAlphaBlendFactor(int value)
srcAlphaBlendFactor field.public VkPipelineColorBlendAttachmentState dstAlphaBlendFactor(int value)
dstAlphaBlendFactor field.public VkPipelineColorBlendAttachmentState alphaBlendOp(int value)
alphaBlendOp field.public VkPipelineColorBlendAttachmentState colorWriteMask(int value)
colorWriteMask field.public VkPipelineColorBlendAttachmentState set(boolean blendEnable, int srcColorBlendFactor, int dstColorBlendFactor, int colorBlendOp, int srcAlphaBlendFactor, int dstAlphaBlendFactor, int alphaBlendOp, int colorWriteMask)
public VkPipelineColorBlendAttachmentState set(VkPipelineColorBlendAttachmentState src)
src - the source structpublic static VkPipelineColorBlendAttachmentState malloc()
VkPipelineColorBlendAttachmentState instance allocated with memAlloc. The instance must be explicitly freed.public static VkPipelineColorBlendAttachmentState calloc()
VkPipelineColorBlendAttachmentState instance allocated with memCalloc. The instance must be explicitly freed.public static VkPipelineColorBlendAttachmentState create()
VkPipelineColorBlendAttachmentState instance allocated with BufferUtils.public static VkPipelineColorBlendAttachmentState create(long address)
VkPipelineColorBlendAttachmentState instance for the specified memory address.@Nullable public static VkPipelineColorBlendAttachmentState createSafe(long address)
public static VkPipelineColorBlendAttachmentState.Buffer malloc(int capacity)
VkPipelineColorBlendAttachmentState.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineColorBlendAttachmentState.Buffer calloc(int capacity)
VkPipelineColorBlendAttachmentState.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineColorBlendAttachmentState.Buffer create(int capacity)
VkPipelineColorBlendAttachmentState.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPipelineColorBlendAttachmentState.Buffer create(long address, int capacity)
VkPipelineColorBlendAttachmentState.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPipelineColorBlendAttachmentState.Buffer createSafe(long address, int capacity)
public static VkPipelineColorBlendAttachmentState mallocStack()
VkPipelineColorBlendAttachmentState instance allocated on the thread-local MemoryStack.public static VkPipelineColorBlendAttachmentState callocStack()
VkPipelineColorBlendAttachmentState instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPipelineColorBlendAttachmentState mallocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineColorBlendAttachmentState instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPipelineColorBlendAttachmentState callocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineColorBlendAttachmentState instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPipelineColorBlendAttachmentState.Buffer mallocStack(int capacity)
VkPipelineColorBlendAttachmentState.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPipelineColorBlendAttachmentState.Buffer callocStack(int capacity)
VkPipelineColorBlendAttachmentState.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPipelineColorBlendAttachmentState.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineColorBlendAttachmentState.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPipelineColorBlendAttachmentState.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineColorBlendAttachmentState.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 nblendEnable(long struct)
blendEnable().public static int nsrcColorBlendFactor(long struct)
srcColorBlendFactor().public static int ndstColorBlendFactor(long struct)
dstColorBlendFactor().public static int ncolorBlendOp(long struct)
colorBlendOp().public static int nsrcAlphaBlendFactor(long struct)
srcAlphaBlendFactor().public static int ndstAlphaBlendFactor(long struct)
dstAlphaBlendFactor().public static int nalphaBlendOp(long struct)
alphaBlendOp().public static int ncolorWriteMask(long struct)
colorWriteMask().public static void nblendEnable(long struct,
int value)
blendEnable.public static void nsrcColorBlendFactor(long struct,
int value)
srcColorBlendFactor.public static void ndstColorBlendFactor(long struct,
int value)
dstColorBlendFactor.public static void ncolorBlendOp(long struct,
int value)
colorBlendOp.public static void nsrcAlphaBlendFactor(long struct,
int value)
srcAlphaBlendFactor.public static void ndstAlphaBlendFactor(long struct,
int value)
dstAlphaBlendFactor.public static void nalphaBlendOp(long struct,
int value)
alphaBlendOp.public static void ncolorWriteMask(long struct,
int value)
colorWriteMask.Copyright LWJGL. All Rights Reserved. License terms.