Class VkAttachmentSampleCountInfoAMD

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

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

If VkCommandBufferInheritanceInfo::renderPass is NULL_HANDLE, COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT is specified in VkCommandBufferBeginInfo::flags, and the pNext chain of VkCommandBufferInheritanceInfo includes VkAttachmentSampleCountInfoAMD, then this structure defines the sample counts of each attachment within the render pass instance. If VkAttachmentSampleCountInfoAMD is not included, the value of VkCommandBufferInheritanceRenderingInfo::rasterizationSamples is used as the sample count for each attachment. 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.

VkAttachmentSampleCountInfoAMD can also be included in the pNext chain of VkGraphicsPipelineCreateInfo. When a graphics pipeline is created without a VkRenderPass, if this structure is included in the pNext chain of VkGraphicsPipelineCreateInfo, it specifies the sample count of attachments used for rendering. If this structure is not specified, and the pipeline does not include a VkRenderPass, the value of VkPipelineMultisampleStateCreateInfo::rasterizationSamples is used as the sample count for each attachment. If a graphics pipeline is created with a valid VkRenderPass, parameters of this structure are ignored.

Valid Usage (Implicit)

Layout


 struct VkAttachmentSampleCountInfoAMD {
     VkStructureType sType();
     void const * pNext();
     uint32_t colorAttachmentCount();
     VkSampleCountFlagBits const * pColorAttachmentSamples();
     VkSampleCountFlagBits depthStencilAttachmentSamples();
 }
  • 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.
    • COLORATTACHMENTCOUNT

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

      public static final int PCOLORATTACHMENTSAMPLES
      The struct member offsets.
    • DEPTHSTENCILATTACHMENTSAMPLES

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

    • VkAttachmentSampleCountInfoAMD

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