Class VkPipelineColorWriteCreateInfoEXT

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

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

    When this structure is included in the pNext chain of VkPipelineColorBlendStateCreateInfo, it defines per-attachment color write state. If this structure is not included in the pNext chain, it is equivalent to specifying this structure with attachmentCount equal to the attachmentCount member of VkPipelineColorBlendStateCreateInfo, and pColorWriteEnables pointing to an array of as many TRUE values.

    If the colorWriteEnable feature is not enabled on the device, all VkBool32 elements in the pColorWriteEnables array must be TRUE.

    Color Write Enable interacts with the Color Write Mask as follows:

    • If colorWriteEnable is TRUE, writes to the attachment are determined by the colorWriteMask.
    • If colorWriteEnable is FALSE, the colorWriteMask is ignored and writes to all components of the attachment are disabled. This is equivalent to specifying a colorWriteMask of 0.
    Valid Usage
    Valid Usage (Implicit)

    Layout

    
     struct VkPipelineColorWriteCreateInfoEXT {
         VkStructureType sType();
         void const * pNext();
         uint32_t attachmentCount();
         VkBool32 const * pColorWriteEnables();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, ATTACHMENTCOUNT, PCOLORWRITEENABLES

        The struct member offsets.
    • Constructor Detail

      • VkPipelineColorWriteCreateInfoEXT

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