{-# language CPP #-}
module Vulkan.Core10.Enums.FormatFeatureFlagBits ( FormatFeatureFlagBits( FORMAT_FEATURE_SAMPLED_IMAGE_BIT
, FORMAT_FEATURE_STORAGE_IMAGE_BIT
, FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT
, FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT
, FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT
, FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT
, FORMAT_FEATURE_VERTEX_BUFFER_BIT
, FORMAT_FEATURE_COLOR_ATTACHMENT_BIT
, FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
, FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT
, FORMAT_FEATURE_BLIT_SRC_BIT
, FORMAT_FEATURE_BLIT_DST_BIT
, FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
, FORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT
, FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR
, FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG
, FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT
, FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT
, FORMAT_FEATURE_DISJOINT_BIT
, FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT
, FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT
, FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT
, FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT
, FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT
, FORMAT_FEATURE_TRANSFER_DST_BIT
, FORMAT_FEATURE_TRANSFER_SRC_BIT
, ..
)
, FormatFeatureFlags
) where
import GHC.Read (choose)
import GHC.Read (expectP)
import GHC.Read (parens)
import GHC.Show (showParen)
import GHC.Show (showString)
import Numeric (showHex)
import Text.ParserCombinators.ReadPrec ((+++))
import Text.ParserCombinators.ReadPrec (prec)
import Text.ParserCombinators.ReadPrec (step)
import Data.Bits (Bits)
import Foreign.Storable (Storable)
import GHC.Read (Read(readPrec))
import Text.Read.Lex (Lexeme(Ident))
import Vulkan.Core10.BaseType (Flags)
import Vulkan.Zero (Zero)
newtype FormatFeatureFlagBits = FormatFeatureFlagBits Flags
deriving newtype (FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
(FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool)
-> (FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool)
-> Eq FormatFeatureFlagBits
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
$c/= :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
== :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
$c== :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
Eq, Eq FormatFeatureFlagBits
Eq FormatFeatureFlagBits =>
(FormatFeatureFlagBits -> FormatFeatureFlagBits -> Ordering)
-> (FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool)
-> (FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool)
-> (FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool)
-> (FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool)
-> (FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits)
-> Ord FormatFeatureFlagBits
FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
FormatFeatureFlagBits -> FormatFeatureFlagBits -> Ordering
FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits
$cmin :: FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits
max :: FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits
$cmax :: FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits
>= :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
$c>= :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
> :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
$c> :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
<= :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
$c<= :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
< :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
$c< :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Bool
compare :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Ordering
$ccompare :: FormatFeatureFlagBits -> FormatFeatureFlagBits -> Ordering
$cp1Ord :: Eq FormatFeatureFlagBits
Ord, Ptr b -> Int -> IO FormatFeatureFlagBits
Ptr b -> Int -> FormatFeatureFlagBits -> IO ()
Ptr FormatFeatureFlagBits -> IO FormatFeatureFlagBits
Ptr FormatFeatureFlagBits -> Int -> IO FormatFeatureFlagBits
Ptr FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits -> IO ()
Ptr FormatFeatureFlagBits -> FormatFeatureFlagBits -> IO ()
FormatFeatureFlagBits -> Int
(FormatFeatureFlagBits -> Int)
-> (FormatFeatureFlagBits -> Int)
-> (Ptr FormatFeatureFlagBits -> Int -> IO FormatFeatureFlagBits)
-> (Ptr FormatFeatureFlagBits
-> Int -> FormatFeatureFlagBits -> IO ())
-> (forall b. Ptr b -> Int -> IO FormatFeatureFlagBits)
-> (forall b. Ptr b -> Int -> FormatFeatureFlagBits -> IO ())
-> (Ptr FormatFeatureFlagBits -> IO FormatFeatureFlagBits)
-> (Ptr FormatFeatureFlagBits -> FormatFeatureFlagBits -> IO ())
-> Storable FormatFeatureFlagBits
forall b. Ptr b -> Int -> IO FormatFeatureFlagBits
forall b. Ptr b -> Int -> FormatFeatureFlagBits -> IO ()
forall a.
(a -> Int)
-> (a -> Int)
-> (Ptr a -> Int -> IO a)
-> (Ptr a -> Int -> a -> IO ())
-> (forall b. Ptr b -> Int -> IO a)
-> (forall b. Ptr b -> Int -> a -> IO ())
-> (Ptr a -> IO a)
-> (Ptr a -> a -> IO ())
-> Storable a
poke :: Ptr FormatFeatureFlagBits -> FormatFeatureFlagBits -> IO ()
$cpoke :: Ptr FormatFeatureFlagBits -> FormatFeatureFlagBits -> IO ()
peek :: Ptr FormatFeatureFlagBits -> IO FormatFeatureFlagBits
$cpeek :: Ptr FormatFeatureFlagBits -> IO FormatFeatureFlagBits
pokeByteOff :: Ptr b -> Int -> FormatFeatureFlagBits -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> FormatFeatureFlagBits -> IO ()
peekByteOff :: Ptr b -> Int -> IO FormatFeatureFlagBits
$cpeekByteOff :: forall b. Ptr b -> Int -> IO FormatFeatureFlagBits
pokeElemOff :: Ptr FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits -> IO ()
$cpokeElemOff :: Ptr FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits -> IO ()
peekElemOff :: Ptr FormatFeatureFlagBits -> Int -> IO FormatFeatureFlagBits
$cpeekElemOff :: Ptr FormatFeatureFlagBits -> Int -> IO FormatFeatureFlagBits
alignment :: FormatFeatureFlagBits -> Int
$calignment :: FormatFeatureFlagBits -> Int
sizeOf :: FormatFeatureFlagBits -> Int
$csizeOf :: FormatFeatureFlagBits -> Int
Storable, FormatFeatureFlagBits
FormatFeatureFlagBits -> Zero FormatFeatureFlagBits
forall a. a -> Zero a
zero :: FormatFeatureFlagBits
$czero :: FormatFeatureFlagBits
Zero, Eq FormatFeatureFlagBits
FormatFeatureFlagBits
Eq FormatFeatureFlagBits =>
(FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits)
-> FormatFeatureFlagBits
-> (Int -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits -> Int -> Bool)
-> (FormatFeatureFlagBits -> Maybe Int)
-> (FormatFeatureFlagBits -> Int)
-> (FormatFeatureFlagBits -> Bool)
-> (FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits)
-> (FormatFeatureFlagBits -> Int)
-> Bits FormatFeatureFlagBits
Int -> FormatFeatureFlagBits
FormatFeatureFlagBits -> Bool
FormatFeatureFlagBits -> Int
FormatFeatureFlagBits -> Maybe Int
FormatFeatureFlagBits -> FormatFeatureFlagBits
FormatFeatureFlagBits -> Int -> Bool
FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits
forall a.
Eq a =>
(a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> a
-> (Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> Bool)
-> (a -> Maybe Int)
-> (a -> Int)
-> (a -> Bool)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int)
-> Bits a
popCount :: FormatFeatureFlagBits -> Int
$cpopCount :: FormatFeatureFlagBits -> Int
rotateR :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
$crotateR :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
rotateL :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
$crotateL :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
unsafeShiftR :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
$cunsafeShiftR :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
shiftR :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
$cshiftR :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
unsafeShiftL :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
$cunsafeShiftL :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
shiftL :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
$cshiftL :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
isSigned :: FormatFeatureFlagBits -> Bool
$cisSigned :: FormatFeatureFlagBits -> Bool
bitSize :: FormatFeatureFlagBits -> Int
$cbitSize :: FormatFeatureFlagBits -> Int
bitSizeMaybe :: FormatFeatureFlagBits -> Maybe Int
$cbitSizeMaybe :: FormatFeatureFlagBits -> Maybe Int
testBit :: FormatFeatureFlagBits -> Int -> Bool
$ctestBit :: FormatFeatureFlagBits -> Int -> Bool
complementBit :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
$ccomplementBit :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
clearBit :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
$cclearBit :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
setBit :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
$csetBit :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
bit :: Int -> FormatFeatureFlagBits
$cbit :: Int -> FormatFeatureFlagBits
zeroBits :: FormatFeatureFlagBits
$czeroBits :: FormatFeatureFlagBits
rotate :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
$crotate :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
shift :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
$cshift :: FormatFeatureFlagBits -> Int -> FormatFeatureFlagBits
complement :: FormatFeatureFlagBits -> FormatFeatureFlagBits
$ccomplement :: FormatFeatureFlagBits -> FormatFeatureFlagBits
xor :: FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits
$cxor :: FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits
.|. :: FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits
$c.|. :: FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits
.&. :: FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits
$c.&. :: FormatFeatureFlagBits
-> FormatFeatureFlagBits -> FormatFeatureFlagBits
$cp1Bits :: Eq FormatFeatureFlagBits
Bits)
pattern $bFORMAT_FEATURE_SAMPLED_IMAGE_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_SAMPLED_IMAGE_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_SAMPLED_IMAGE_BIT = FormatFeatureFlagBits 0x00000001
pattern $bFORMAT_FEATURE_STORAGE_IMAGE_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_STORAGE_IMAGE_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_STORAGE_IMAGE_BIT = FormatFeatureFlagBits 0x00000002
pattern $bFORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = FormatFeatureFlagBits 0x00000004
pattern $bFORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = FormatFeatureFlagBits 0x00000008
pattern $bFORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = FormatFeatureFlagBits 0x00000010
pattern $bFORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = FormatFeatureFlagBits 0x00000020
pattern $bFORMAT_FEATURE_VERTEX_BUFFER_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_VERTEX_BUFFER_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_VERTEX_BUFFER_BIT = FormatFeatureFlagBits 0x00000040
pattern $bFORMAT_FEATURE_COLOR_ATTACHMENT_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_COLOR_ATTACHMENT_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = FormatFeatureFlagBits 0x00000080
pattern $bFORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = FormatFeatureFlagBits 0x00000100
pattern $bFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = FormatFeatureFlagBits 0x00000200
pattern $bFORMAT_FEATURE_BLIT_SRC_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_BLIT_SRC_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_BLIT_SRC_BIT = FormatFeatureFlagBits 0x00000400
pattern $bFORMAT_FEATURE_BLIT_DST_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_BLIT_DST_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_BLIT_DST_BIT = FormatFeatureFlagBits 0x00000800
pattern $bFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT = FormatFeatureFlagBits 0x00001000
pattern $bFORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT = FormatFeatureFlagBits 0x01000000
pattern $bFORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR :: FormatFeatureFlagBits
$mFORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR = FormatFeatureFlagBits 0x20000000
pattern $bFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG :: FormatFeatureFlagBits
$mFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG = FormatFeatureFlagBits 0x00002000
pattern $bFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT = FormatFeatureFlagBits 0x00010000
pattern $bFORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT = FormatFeatureFlagBits 0x00800000
pattern $bFORMAT_FEATURE_DISJOINT_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_DISJOINT_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_DISJOINT_BIT = FormatFeatureFlagBits 0x00400000
pattern $bFORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT = FormatFeatureFlagBits 0x00200000
pattern $bFORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT = FormatFeatureFlagBits 0x00100000
pattern $bFORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT = FormatFeatureFlagBits 0x00080000
pattern $bFORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT = FormatFeatureFlagBits 0x00040000
pattern $bFORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT = FormatFeatureFlagBits 0x00020000
pattern $bFORMAT_FEATURE_TRANSFER_DST_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_TRANSFER_DST_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_TRANSFER_DST_BIT = FormatFeatureFlagBits 0x00008000
pattern $bFORMAT_FEATURE_TRANSFER_SRC_BIT :: FormatFeatureFlagBits
$mFORMAT_FEATURE_TRANSFER_SRC_BIT :: forall r.
FormatFeatureFlagBits -> (Void# -> r) -> (Void# -> r) -> r
FORMAT_FEATURE_TRANSFER_SRC_BIT = FormatFeatureFlagBits 0x00004000
type FormatFeatureFlags = FormatFeatureFlagBits
instance Show FormatFeatureFlagBits where
showsPrec :: Int -> FormatFeatureFlagBits -> ShowS
showsPrec p :: Int
p = \case
FORMAT_FEATURE_SAMPLED_IMAGE_BIT -> String -> ShowS
showString "FORMAT_FEATURE_SAMPLED_IMAGE_BIT"
FORMAT_FEATURE_STORAGE_IMAGE_BIT -> String -> ShowS
showString "FORMAT_FEATURE_STORAGE_IMAGE_BIT"
FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT -> String -> ShowS
showString "FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT"
FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT -> String -> ShowS
showString "FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT"
FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT -> String -> ShowS
showString "FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT"
FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT -> String -> ShowS
showString "FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT"
FORMAT_FEATURE_VERTEX_BUFFER_BIT -> String -> ShowS
showString "FORMAT_FEATURE_VERTEX_BUFFER_BIT"
FORMAT_FEATURE_COLOR_ATTACHMENT_BIT -> String -> ShowS
showString "FORMAT_FEATURE_COLOR_ATTACHMENT_BIT"
FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT -> String -> ShowS
showString "FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT"
FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT -> String -> ShowS
showString "FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT"
FORMAT_FEATURE_BLIT_SRC_BIT -> String -> ShowS
showString "FORMAT_FEATURE_BLIT_SRC_BIT"
FORMAT_FEATURE_BLIT_DST_BIT -> String -> ShowS
showString "FORMAT_FEATURE_BLIT_DST_BIT"
FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT -> String -> ShowS
showString "FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT"
FORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT -> String -> ShowS
showString "FORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT"
FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR -> String -> ShowS
showString "FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR"
FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG -> String -> ShowS
showString "FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG"
FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT -> String -> ShowS
showString "FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT"
FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT -> String -> ShowS
showString "FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT"
FORMAT_FEATURE_DISJOINT_BIT -> String -> ShowS
showString "FORMAT_FEATURE_DISJOINT_BIT"
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT -> String -> ShowS
showString "FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT"
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT -> String -> ShowS
showString "FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT"
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT -> String -> ShowS
showString "FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT"
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT -> String -> ShowS
showString "FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT"
FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT -> String -> ShowS
showString "FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT"
FORMAT_FEATURE_TRANSFER_DST_BIT -> String -> ShowS
showString "FORMAT_FEATURE_TRANSFER_DST_BIT"
FORMAT_FEATURE_TRANSFER_SRC_BIT -> String -> ShowS
showString "FORMAT_FEATURE_TRANSFER_SRC_BIT"
FormatFeatureFlagBits x :: Flags
x -> Bool -> ShowS -> ShowS
showParen (Int
p Int -> Int -> Bool
forall a. Ord a => a -> a -> Bool
>= 11) (String -> ShowS
showString "FormatFeatureFlagBits 0x" ShowS -> ShowS -> ShowS
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Flags -> ShowS
forall a. (Integral a, Show a) => a -> ShowS
showHex Flags
x)
instance Read FormatFeatureFlagBits where
readPrec :: ReadPrec FormatFeatureFlagBits
readPrec = ReadPrec FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall a. ReadPrec a -> ReadPrec a
parens ([(String, ReadPrec FormatFeatureFlagBits)]
-> ReadPrec FormatFeatureFlagBits
forall a. [(String, ReadPrec a)] -> ReadPrec a
choose [("FORMAT_FEATURE_SAMPLED_IMAGE_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_SAMPLED_IMAGE_BIT)
, ("FORMAT_FEATURE_STORAGE_IMAGE_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_STORAGE_IMAGE_BIT)
, ("FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT)
, ("FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT)
, ("FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT)
, ("FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT)
, ("FORMAT_FEATURE_VERTEX_BUFFER_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_VERTEX_BUFFER_BIT)
, ("FORMAT_FEATURE_COLOR_ATTACHMENT_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_COLOR_ATTACHMENT_BIT)
, ("FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT)
, ("FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT)
, ("FORMAT_FEATURE_BLIT_SRC_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_BLIT_SRC_BIT)
, ("FORMAT_FEATURE_BLIT_DST_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_BLIT_DST_BIT)
, ("FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT)
, ("FORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT)
, ("FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR)
, ("FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG)
, ("FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT)
, ("FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT)
, ("FORMAT_FEATURE_DISJOINT_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_DISJOINT_BIT)
, ("FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT)
, ("FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT)
, ("FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT)
, ("FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT)
, ("FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT)
, ("FORMAT_FEATURE_TRANSFER_DST_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_TRANSFER_DST_BIT)
, ("FORMAT_FEATURE_TRANSFER_SRC_BIT", FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure FormatFeatureFlagBits
FORMAT_FEATURE_TRANSFER_SRC_BIT)]
ReadPrec FormatFeatureFlagBits
-> ReadPrec FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall a. ReadPrec a -> ReadPrec a -> ReadPrec a
+++
Int
-> ReadPrec FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall a. Int -> ReadPrec a -> ReadPrec a
prec 10 (do
Lexeme -> ReadPrec ()
expectP (String -> Lexeme
Ident "FormatFeatureFlagBits")
Flags
v <- ReadPrec Flags -> ReadPrec Flags
forall a. ReadPrec a -> ReadPrec a
step ReadPrec Flags
forall a. Read a => ReadPrec a
readPrec
FormatFeatureFlagBits -> ReadPrec FormatFeatureFlagBits
forall (f :: * -> *) a. Applicative f => a -> f a
pure (Flags -> FormatFeatureFlagBits
FormatFeatureFlagBits Flags
v)))