dualSrcBlend feature is not enabled, srcColorBlendFactor must not be BLEND_FACTOR_SRC1_COLOR, BLEND_FACTOR_ONE_MINUS_SRC1_COLOR, BLEND_FACTOR_SRC1_ALPHA, or BLEND_FACTOR_ONE_MINUS_SRC1_ALPHAdualSrcBlend feature is not enabled, dstColorBlendFactor must not be BLEND_FACTOR_SRC1_COLOR, BLEND_FACTOR_ONE_MINUS_SRC1_COLOR, BLEND_FACTOR_SRC1_ALPHA, or BLEND_FACTOR_ONE_MINUS_SRC1_ALPHAdualSrcBlend feature is not enabled, srcAlphaBlendFactor must not be BLEND_FACTOR_SRC1_COLOR, BLEND_FACTOR_ONE_MINUS_SRC1_COLOR, BLEND_FACTOR_SRC1_ALPHA, or BLEND_FACTOR_ONE_MINUS_SRC1_ALPHAdualSrcBlend feature is not enabled, dstAlphaBlendFactor 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 attachmentsVkPhysicalDeviceBlendOperationAdvancedPropertiesEXT::advancedBlendIndependentBlend is FALSE and alphaBlendOp is an advanced blend operation, then alphaBlendOp must be the same for all attachmentsVkPhysicalDeviceBlendOperationAdvancedPropertiesEXT::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 colorAttachmentCount of the subpass this pipeline is compiled against must be less than or equal to VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT::advancedBlendMaxColorAttachmentsVK_KHR_portability_subset extension is enabled, and VkPhysicalDevicePortabilitySubsetFeaturesKHR::constantAlphaColorBlendFactors is FALSE, srcColorBlendFactor must not be BLEND_FACTOR_CONSTANT_ALPHA or BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHAVK_KHR_portability_subset extension is enabled, and VkPhysicalDevicePortabilitySubsetFeaturesKHR::constantAlphaColorBlendFactors is FALSE, dstColorBlendFactor must not be BLEND_FACTOR_CONSTANT_ALPHA or BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHAsrcColorBlendFactor 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
struct VkPipelineColorBlendAttachmentState {
VkBool32 blendEnable;
VkBlendFactor srcColorBlendFactor;
VkBlendFactor dstColorBlendFactor;
VkBlendOp colorBlendOp;
VkBlendFactor srcAlphaBlendFactor;
VkBlendFactor dstAlphaBlendFactor;
VkBlendOp alphaBlendOp;
VkColorComponentFlags colorWriteMask;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkPipelineColorBlendAttachmentState.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ALPHABLENDOP
The struct member offsets. |
| public static final int | BLENDENABLE
The struct member offsets. |
| public static final int | COLORBLENDOP
The struct member offsets. |
| public static final int | COLORWRITEMASK
The struct member offsets. |
| public static final int | DSTALPHABLENDFACTOR
The struct member offsets. |
| public static final int | DSTCOLORBLENDFACTOR
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SRCALPHABLENDFACTOR
The struct member offsets. |
| public static final int | SRCCOLORBLENDFACTOR
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkPipelineColorBlendAttachmentState(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | alphaBlendOp()
selects which blend operation is used to calculate the alpha values to write to the color attachment. |
| public VkPipelineColorBlendAttachmentState | |
| public boolean | |
| public VkPipelineColorBlendAttachmentState | |
| public static VkPipelineColorBlendAttachmentState | |
| public static VkPipelineColorBlendAttachmentState. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkPipelineColorBlendAttachmentState | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkPipelineColorBlendAttachmentState. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkPipelineColorBlendAttachmentState | |
| public static VkPipelineColorBlendAttachmentState | |
| public static VkPipelineColorBlendAttachmentState. | |
| public static VkPipelineColorBlendAttachmentState. | |
| public int | colorBlendOp()
selects which blend operation is used to calculate the RGB values to write to the color attachment. |
| public VkPipelineColorBlendAttachmentState | |
| public int | colorWriteMask()
a bitmask of |
| public VkPipelineColorBlendAttachmentState | |
| protected VkPipelineColorBlendAttachmentState | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkPipelineColorBlendAttachmentState | |
| public static VkPipelineColorBlendAttachmentState | create(long address)
Returns a new |
| public static VkPipelineColorBlendAttachmentState. | create(int
the buffer capacity capacity)Returns a new |
| public static VkPipelineColorBlendAttachmentState. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkPipelineColorBlendAttachmentState | |
| public static VkPipelineColorBlendAttachmentState. | |
| public int | |
| public VkPipelineColorBlendAttachmentState | |
| public int | dstColorBlendFactor()
selects which blend factor is used to determine the destination factors |
| public VkPipelineColorBlendAttachmentState | |
| public static VkPipelineColorBlendAttachmentState | |
| public static VkPipelineColorBlendAttachmentState. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkPipelineColorBlendAttachmentState | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkPipelineColorBlendAttachmentState. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkPipelineColorBlendAttachmentState | |
| public static VkPipelineColorBlendAttachmentState | |
| public static VkPipelineColorBlendAttachmentState. | |
| public static VkPipelineColorBlendAttachmentState. | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public 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. |
| public VkPipelineColorBlendAttachmentState | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkPipelineColorBlendAttachmentState | |
| public int | |
| public VkPipelineColorBlendAttachmentState |