Class VkCommandBufferInheritanceRenderingInfo

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

public class VkCommandBufferInheritanceRenderingInfo extends org.lwjgl.system.Struct<VkCommandBufferInheritanceRenderingInfo> implements org.lwjgl.system.NativeResource
Structure specifying command buffer inheritance info for dynamic render pass instances.
Description

If the pNext chain of VkCommandBufferInheritanceInfo includes a VkCommandBufferInheritanceRenderingInfo structure, then that structure controls parameters of dynamic render pass instances that the VkCommandBuffer can be executed within. If VkCommandBufferInheritanceInfo::renderPass is not NULL_HANDLE, or COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT is not specified in VkCommandBufferBeginInfo::flags, parameters of this structure are ignored.

If colorAttachmentCount is 0 and the variableMultisampleRate feature is enabled, rasterizationSamples is ignored.

If depthAttachmentFormat, stencilAttachmentFormat, or any element of pColorAttachmentFormats is FORMAT_UNDEFINED, it indicates that the corresponding attachment is unused within the render pass and writes to those attachments are discarded.

Valid Usage
Valid Usage (Implicit)
  • sType must be STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_RENDERING_INFO
  • flags must be a valid combination of VkRenderingFlagBits values
  • If colorAttachmentCount is not 0, pColorAttachmentFormats must be a valid pointer to an array of colorAttachmentCount valid VkFormat values
  • depthAttachmentFormat must be a valid VkFormat value
  • stencilAttachmentFormat must be a valid VkFormat value
  • If rasterizationSamples is not 0, rasterizationSamples must be a valid VkSampleCountFlagBits value

Layout


 struct VkCommandBufferInheritanceRenderingInfo {
     VkStructureType sType();
     void const * pNext();
     VkRenderingFlags flags();
     uint32_t viewMask();
     uint32_t colorAttachmentCount();
     VkFormat const * pColorAttachmentFormats();
     VkFormat depthAttachmentFormat();
     VkFormat stencilAttachmentFormat();
     VkSampleCountFlagBits rasterizationSamples();
 }
  • 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.
    • FLAGS

      public static final int FLAGS
      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.
    • RASTERIZATIONSAMPLES

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

    • VkCommandBufferInheritanceRenderingInfo

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