vulkan-3.26.6: src/Vulkan/Core10/Enums/AttachmentLoadOp.hs
{-# language CPP #-}
-- No documentation found for Chapter "AttachmentLoadOp"
module Vulkan.Core10.Enums.AttachmentLoadOp (AttachmentLoadOp( ATTACHMENT_LOAD_OP_LOAD
, ATTACHMENT_LOAD_OP_CLEAR
, ATTACHMENT_LOAD_OP_DONT_CARE
, ATTACHMENT_LOAD_OP_NONE_KHR
, ..
)) where
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import GHC.Show (showsPrec)
import Vulkan.Zero (Zero)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
-- | VkAttachmentLoadOp - Specify how contents of an attachment are treated
-- at the beginning of the subpass where it is first used
--
-- = See Also
--
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_VERSION_1_0 VK_VERSION_1_0>,
-- 'Vulkan.Core10.Pass.AttachmentDescription',
-- 'Vulkan.Core12.Promoted_From_VK_KHR_create_renderpass2.AttachmentDescription2',
-- 'Vulkan.Core13.Promoted_From_VK_KHR_dynamic_rendering.RenderingAttachmentInfo'
newtype AttachmentLoadOp = AttachmentLoadOp Int32
deriving newtype (Eq, Ord, Storable, Zero)
-- | '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
-- 'Vulkan.Core10.Enums.AccessFlagBits.ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT'.
-- For attachments with a color format, this uses the access type
-- 'Vulkan.Core10.Enums.AccessFlagBits.ACCESS_COLOR_ATTACHMENT_READ_BIT'.
pattern ATTACHMENT_LOAD_OP_LOAD = AttachmentLoadOp 0
-- | '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
-- 'Vulkan.Core10.Enums.AccessFlagBits.ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT'.
-- For attachments with a color format, this uses the access type
-- 'Vulkan.Core10.Enums.AccessFlagBits.ACCESS_COLOR_ATTACHMENT_WRITE_BIT'.
pattern ATTACHMENT_LOAD_OP_CLEAR = AttachmentLoadOp 1
-- | '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
-- 'Vulkan.Core10.Enums.AccessFlagBits.ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT'.
-- For attachments with a color format, this uses the access type
-- 'Vulkan.Core10.Enums.AccessFlagBits.ACCESS_COLOR_ATTACHMENT_WRITE_BIT'.
pattern ATTACHMENT_LOAD_OP_DONT_CARE = AttachmentLoadOp 2
-- | 'ATTACHMENT_LOAD_OP_NONE_KHR' 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.
pattern ATTACHMENT_LOAD_OP_NONE_KHR = AttachmentLoadOp 1000400000
{-# COMPLETE
ATTACHMENT_LOAD_OP_LOAD
, ATTACHMENT_LOAD_OP_CLEAR
, ATTACHMENT_LOAD_OP_DONT_CARE
, ATTACHMENT_LOAD_OP_NONE_KHR ::
AttachmentLoadOp
#-}
conNameAttachmentLoadOp :: String
conNameAttachmentLoadOp = "AttachmentLoadOp"
enumPrefixAttachmentLoadOp :: String
enumPrefixAttachmentLoadOp = "ATTACHMENT_LOAD_OP_"
showTableAttachmentLoadOp :: [(AttachmentLoadOp, String)]
showTableAttachmentLoadOp =
[ (ATTACHMENT_LOAD_OP_LOAD, "LOAD")
, (ATTACHMENT_LOAD_OP_CLEAR, "CLEAR")
, (ATTACHMENT_LOAD_OP_DONT_CARE, "DONT_CARE")
, (ATTACHMENT_LOAD_OP_NONE_KHR, "NONE_KHR")
]
instance Show AttachmentLoadOp where
showsPrec =
enumShowsPrec
enumPrefixAttachmentLoadOp
showTableAttachmentLoadOp
conNameAttachmentLoadOp
(\(AttachmentLoadOp x) -> x)
(showsPrec 11)
instance Read AttachmentLoadOp where
readPrec =
enumReadPrec
enumPrefixAttachmentLoadOp
showTableAttachmentLoadOp
conNameAttachmentLoadOp
AttachmentLoadOp