Class VkPipelineColorWriteCreateInfoEXT

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPipelineColorWriteCreateInfoEXT>
org.lwjgl.vulkan.VkPipelineColorWriteCreateInfoEXT
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkPipelineColorWriteCreateInfoEXT extends org.lwjgl.system.Struct<VkPipelineColorWriteCreateInfoEXT> 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, 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 Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • ATTACHMENTCOUNT

      public static final int ATTACHMENTCOUNT
      The struct member offsets.
    • PCOLORWRITEENABLES

      public static final int PCOLORWRITEENABLES
      The struct member offsets.
  • Constructor Details

    • VkPipelineColorWriteCreateInfoEXT

      public VkPipelineColorWriteCreateInfoEXT(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.

  • Method Details