Class VkPipelineRenderingCreateInfo

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPipelineRenderingCreateInfo>
org.lwjgl.vulkan.VkPipelineRenderingCreateInfo
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Direct Known Subclasses:
VkPipelineRenderingCreateInfoKHR

public class VkPipelineRenderingCreateInfo extends org.lwjgl.system.Struct<VkPipelineRenderingCreateInfo> implements org.lwjgl.system.NativeResource
Structure specifying attachment formats.
Description

When a pipeline is created without a VkRenderPass, if the pNext chain of VkGraphicsPipelineCreateInfo includes this structure, it specifies the view mask and format of attachments used for rendering. If this structure is not specified, and the pipeline does not include a VkRenderPass, viewMask and colorAttachmentCount are 0, and depthAttachmentFormat and stencilAttachmentFormat are FORMAT_UNDEFINED. If a graphics pipeline is created with a valid VkRenderPass, parameters of this structure are ignored.

If depthAttachmentFormat, stencilAttachmentFormat, or any element of pColorAttachmentFormats is FORMAT_UNDEFINED, it indicates that the corresponding attachment is unused within the render pass. Valid formats indicate that an attachment can be used - but it is still valid to set the attachment to NULL when beginning rendering.

If the render pass is going to be used with an external format resolve attachment, a VkExternalFormatANDROID structure must also be included in the pNext chain of VkGraphicsPipelineCreateInfo, defining the external format of the resolve attachment that will be used.

Valid Usage
Valid Usage (Implicit)

Layout


 struct VkPipelineRenderingCreateInfo {
     VkStructureType sType();
     void const * pNext();
     uint32_t viewMask();
     uint32_t colorAttachmentCount();
     VkFormat const * pColorAttachmentFormats();
     VkFormat depthAttachmentFormat();
     VkFormat stencilAttachmentFormat();
 }
  • 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.
    • VIEWMASK

      public static final int VIEWMASK
      The struct member offsets.
    • COLORATTACHMENTCOUNT

      public static final int COLORATTACHMENTCOUNT
      The struct member offsets.
    • PCOLORATTACHMENTFORMATS

      public static final int PCOLORATTACHMENTFORMATS
      The struct member offsets.
    • DEPTHATTACHMENTFORMAT

      public static final int DEPTHATTACHMENTFORMAT
      The struct member offsets.
    • STENCILATTACHMENTFORMAT

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

    • VkPipelineRenderingCreateInfo

      public VkPipelineRenderingCreateInfo(ByteBuffer container)
      Creates a VkPipelineRenderingCreateInfo 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