{-# language CPP #-} -- No documentation found for Chapter "ColorComponentFlagBits" module Vulkan.Core10.Enums.ColorComponentFlagBits ( ColorComponentFlags , ColorComponentFlagBits( COLOR_COMPONENT_R_BIT , COLOR_COMPONENT_G_BIT , COLOR_COMPONENT_B_BIT , COLOR_COMPONENT_A_BIT , .. ) ) where import Vulkan.Internal.Utils (enumReadPrec) import Vulkan.Internal.Utils (enumShowsPrec) import GHC.Show (showString) import Numeric (showHex) import Data.Bits (Bits) import Data.Bits (FiniteBits) import Foreign.Storable (Storable) import GHC.Read (Read(readPrec)) import GHC.Show (Show(showsPrec)) import Vulkan.Core10.FundamentalTypes (Flags) import Vulkan.Zero (Zero) type ColorComponentFlags = ColorComponentFlagBits -- | VkColorComponentFlagBits - Bitmask controlling which components are -- written to the framebuffer -- -- = Description -- -- The color write mask operation is applied regardless of whether blending -- is enabled. -- -- = See Also -- -- 'ColorComponentFlags' newtype ColorComponentFlagBits = ColorComponentFlagBits Flags deriving newtype (Eq, Ord, Storable, Zero, Bits, FiniteBits) -- | 'COLOR_COMPONENT_R_BIT' specifies that the R value is written to the -- color attachment for the appropriate sample. Otherwise, the value in -- memory is unmodified. pattern COLOR_COMPONENT_R_BIT = ColorComponentFlagBits 0x00000001 -- | 'COLOR_COMPONENT_G_BIT' specifies that the G value is written to the -- color attachment for the appropriate sample. Otherwise, the value in -- memory is unmodified. pattern COLOR_COMPONENT_G_BIT = ColorComponentFlagBits 0x00000002 -- | 'COLOR_COMPONENT_B_BIT' specifies that the B value is written to the -- color attachment for the appropriate sample. Otherwise, the value in -- memory is unmodified. pattern COLOR_COMPONENT_B_BIT = ColorComponentFlagBits 0x00000004 -- | 'COLOR_COMPONENT_A_BIT' specifies that the A value is written to the -- color attachment for the appropriate sample. Otherwise, the value in -- memory is unmodified. pattern COLOR_COMPONENT_A_BIT = ColorComponentFlagBits 0x00000008 conNameColorComponentFlagBits :: String conNameColorComponentFlagBits = "ColorComponentFlagBits" enumPrefixColorComponentFlagBits :: String enumPrefixColorComponentFlagBits = "COLOR_COMPONENT_" showTableColorComponentFlagBits :: [(ColorComponentFlagBits, String)] showTableColorComponentFlagBits = [ (COLOR_COMPONENT_R_BIT, "R_BIT") , (COLOR_COMPONENT_G_BIT, "G_BIT") , (COLOR_COMPONENT_B_BIT, "B_BIT") , (COLOR_COMPONENT_A_BIT, "A_BIT") ] instance Show ColorComponentFlagBits where showsPrec = enumShowsPrec enumPrefixColorComponentFlagBits showTableColorComponentFlagBits conNameColorComponentFlagBits (\(ColorComponentFlagBits x) -> x) (\x -> showString "0x" . showHex x) instance Read ColorComponentFlagBits where readPrec = enumReadPrec enumPrefixColorComponentFlagBits showTableColorComponentFlagBits conNameColorComponentFlagBits ColorComponentFlagBits