Class VkPipelineColorBlendStateCreateInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class VkPipelineColorBlendStateCreateInfo
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying parameters of a newly created pipeline color blend state.
    Description

    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.

    Valid Usage
    • If the independent blending feature is not enabled, all elements of pAttachments must be identical
    • If the logic operations feature is not enabled, logicOpEnable must be FALSE
    • If logicOpEnable is TRUE, logicOp must be a valid VkLogicOp value
    Valid Usage (Implicit)
    See Also

    VkGraphicsPipelineCreateInfo, VkPipelineColorBlendAttachmentState

    Member documentation

    • sType – the type of this structure.
    • pNextNULL 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 array of per target attachment states.
    • blendConstants[4] – 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.

    Layout

    
     struct VkPipelineColorBlendStateCreateInfo {
         VkStructureType sType;
         void const * pNext;
         VkPipelineColorBlendStateCreateFlags flags;
         VkBool32 logicOpEnable;
         VkLogicOp logicOp;
         uint32_t attachmentCount;
         VkPipelineColorBlendAttachmentState const * pAttachments;
         float blendConstants[4];
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, LOGICOPENABLE, LOGICOP, ATTACHMENTCOUNT, PATTACHMENTS, BLENDCONSTANTS

        The struct member offsets.
    • Constructor Detail

      • VkPipelineColorBlendStateCreateInfo

        public VkPipelineColorBlendStateCreateInfo​(java.nio.ByteBuffer container)
        Creates a 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.