VkAttachmentLoadOp - Specify how contents of an attachment are treated at the beginning of the subpass where it is first used
Description
ATTACHMENT_LOAD_OP_LOAD specifies that the previous contents of the image within the render area will be preserved as the initial values. For attachments with a depth/stencil format, this uses the access type ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT. For attachments with a color format, this uses the access type ACCESS_COLOR_ATTACHMENT_READ_BIT.
ATTACHMENT_LOAD_OP_CLEAR specifies that the contents within the render area will be cleared to a uniform value, which is specified when a render pass instance is begun. For attachments with a depth/stencil format, this uses the access type ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT. For attachments with a color format, this uses the access type ACCESS_COLOR_ATTACHMENT_WRITE_BIT.
ATTACHMENT_LOAD_OP_DONT_CARE specifies that the previous contents within the area need not be preserved; the contents of the attachment will be undefined inside the render area. For attachments with a depth/stencil format, this uses the access type ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT. For attachments with a color format, this uses the access type ACCESS_COLOR_ATTACHMENT_WRITE_BIT.
ATTACHMENT_LOAD_OP_NONE specifies that the previous contents of the image will be undefined inside the render pass. No access type is used as the image is not accessed.
See Also
VK_VERSION_1_0, AttachmentDescription, AttachmentDescription2, RenderingAttachmentInfo
Constructors
Instances6Eq, Ord, Read, Show, Storable, Zero
Eq AttachmentLoadOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.AttachmentLoadOpOrd AttachmentLoadOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.AttachmentLoadOpRead AttachmentLoadOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.AttachmentLoadOpShow AttachmentLoadOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.AttachmentLoadOpStorable AttachmentLoadOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.AttachmentLoadOpZero AttachmentLoadOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.AttachmentLoadOp