{-# language CPP #-}
module Vulkan.Core10.Enums.ImageViewCreateFlagBits ( ImageViewCreateFlags
, ImageViewCreateFlagBits( IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DEFERRED_BIT_EXT
, IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXT
, ..
)
) 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 ImageViewCreateFlags = ImageViewCreateFlagBits
newtype ImageViewCreateFlagBits = ImageViewCreateFlagBits Flags
deriving newtype (ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
(ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool)
-> (ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool)
-> Eq ImageViewCreateFlagBits
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
$c/= :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
== :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
$c== :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
Eq, Eq ImageViewCreateFlagBits
Eq ImageViewCreateFlagBits =>
(ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Ordering)
-> (ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool)
-> (ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool)
-> (ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool)
-> (ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool)
-> (ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits)
-> Ord ImageViewCreateFlagBits
ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Ordering
ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits
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 :: ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits
$cmin :: ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits
max :: ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits
$cmax :: ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits
>= :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
$c>= :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
> :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
$c> :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
<= :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
$c<= :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
< :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
$c< :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Bool
compare :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Ordering
$ccompare :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> Ordering
$cp1Ord :: Eq ImageViewCreateFlagBits
Ord, Ptr b -> Int -> IO ImageViewCreateFlagBits
Ptr b -> Int -> ImageViewCreateFlagBits -> IO ()
Ptr ImageViewCreateFlagBits -> IO ImageViewCreateFlagBits
Ptr ImageViewCreateFlagBits -> Int -> IO ImageViewCreateFlagBits
Ptr ImageViewCreateFlagBits
-> Int -> ImageViewCreateFlagBits -> IO ()
Ptr ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> IO ()
ImageViewCreateFlagBits -> Int
(ImageViewCreateFlagBits -> Int)
-> (ImageViewCreateFlagBits -> Int)
-> (Ptr ImageViewCreateFlagBits
-> Int -> IO ImageViewCreateFlagBits)
-> (Ptr ImageViewCreateFlagBits
-> Int -> ImageViewCreateFlagBits -> IO ())
-> (forall b. Ptr b -> Int -> IO ImageViewCreateFlagBits)
-> (forall b. Ptr b -> Int -> ImageViewCreateFlagBits -> IO ())
-> (Ptr ImageViewCreateFlagBits -> IO ImageViewCreateFlagBits)
-> (Ptr ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> IO ())
-> Storable ImageViewCreateFlagBits
forall b. Ptr b -> Int -> IO ImageViewCreateFlagBits
forall b. Ptr b -> Int -> ImageViewCreateFlagBits -> 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 ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> IO ()
$cpoke :: Ptr ImageViewCreateFlagBits -> ImageViewCreateFlagBits -> IO ()
peek :: Ptr ImageViewCreateFlagBits -> IO ImageViewCreateFlagBits
$cpeek :: Ptr ImageViewCreateFlagBits -> IO ImageViewCreateFlagBits
pokeByteOff :: Ptr b -> Int -> ImageViewCreateFlagBits -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> ImageViewCreateFlagBits -> IO ()
peekByteOff :: Ptr b -> Int -> IO ImageViewCreateFlagBits
$cpeekByteOff :: forall b. Ptr b -> Int -> IO ImageViewCreateFlagBits
pokeElemOff :: Ptr ImageViewCreateFlagBits
-> Int -> ImageViewCreateFlagBits -> IO ()
$cpokeElemOff :: Ptr ImageViewCreateFlagBits
-> Int -> ImageViewCreateFlagBits -> IO ()
peekElemOff :: Ptr ImageViewCreateFlagBits -> Int -> IO ImageViewCreateFlagBits
$cpeekElemOff :: Ptr ImageViewCreateFlagBits -> Int -> IO ImageViewCreateFlagBits
alignment :: ImageViewCreateFlagBits -> Int
$calignment :: ImageViewCreateFlagBits -> Int
sizeOf :: ImageViewCreateFlagBits -> Int
$csizeOf :: ImageViewCreateFlagBits -> Int
Storable, ImageViewCreateFlagBits
ImageViewCreateFlagBits -> Zero ImageViewCreateFlagBits
forall a. a -> Zero a
zero :: ImageViewCreateFlagBits
$czero :: ImageViewCreateFlagBits
Zero, Eq ImageViewCreateFlagBits
ImageViewCreateFlagBits
Eq ImageViewCreateFlagBits =>
(ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits)
-> ImageViewCreateFlagBits
-> (Int -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits -> Int -> Bool)
-> (ImageViewCreateFlagBits -> Maybe Int)
-> (ImageViewCreateFlagBits -> Int)
-> (ImageViewCreateFlagBits -> Bool)
-> (ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits)
-> (ImageViewCreateFlagBits -> Int)
-> Bits ImageViewCreateFlagBits
Int -> ImageViewCreateFlagBits
ImageViewCreateFlagBits -> Bool
ImageViewCreateFlagBits -> Int
ImageViewCreateFlagBits -> Maybe Int
ImageViewCreateFlagBits -> ImageViewCreateFlagBits
ImageViewCreateFlagBits -> Int -> Bool
ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits
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 :: ImageViewCreateFlagBits -> Int
$cpopCount :: ImageViewCreateFlagBits -> Int
rotateR :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
$crotateR :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
rotateL :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
$crotateL :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
unsafeShiftR :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
$cunsafeShiftR :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
shiftR :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
$cshiftR :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
unsafeShiftL :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
$cunsafeShiftL :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
shiftL :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
$cshiftL :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
isSigned :: ImageViewCreateFlagBits -> Bool
$cisSigned :: ImageViewCreateFlagBits -> Bool
bitSize :: ImageViewCreateFlagBits -> Int
$cbitSize :: ImageViewCreateFlagBits -> Int
bitSizeMaybe :: ImageViewCreateFlagBits -> Maybe Int
$cbitSizeMaybe :: ImageViewCreateFlagBits -> Maybe Int
testBit :: ImageViewCreateFlagBits -> Int -> Bool
$ctestBit :: ImageViewCreateFlagBits -> Int -> Bool
complementBit :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
$ccomplementBit :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
clearBit :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
$cclearBit :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
setBit :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
$csetBit :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
bit :: Int -> ImageViewCreateFlagBits
$cbit :: Int -> ImageViewCreateFlagBits
zeroBits :: ImageViewCreateFlagBits
$czeroBits :: ImageViewCreateFlagBits
rotate :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
$crotate :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
shift :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
$cshift :: ImageViewCreateFlagBits -> Int -> ImageViewCreateFlagBits
complement :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits
$ccomplement :: ImageViewCreateFlagBits -> ImageViewCreateFlagBits
xor :: ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits
$cxor :: ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits
.|. :: ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits
$c.|. :: ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits
.&. :: ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits
$c.&. :: ImageViewCreateFlagBits
-> ImageViewCreateFlagBits -> ImageViewCreateFlagBits
$cp1Bits :: Eq ImageViewCreateFlagBits
Bits, Bits ImageViewCreateFlagBits
Bits ImageViewCreateFlagBits =>
(ImageViewCreateFlagBits -> Int)
-> (ImageViewCreateFlagBits -> Int)
-> (ImageViewCreateFlagBits -> Int)
-> FiniteBits ImageViewCreateFlagBits
ImageViewCreateFlagBits -> Int
forall b.
Bits b =>
(b -> Int) -> (b -> Int) -> (b -> Int) -> FiniteBits b
countTrailingZeros :: ImageViewCreateFlagBits -> Int
$ccountTrailingZeros :: ImageViewCreateFlagBits -> Int
countLeadingZeros :: ImageViewCreateFlagBits -> Int
$ccountLeadingZeros :: ImageViewCreateFlagBits -> Int
finiteBitSize :: ImageViewCreateFlagBits -> Int
$cfiniteBitSize :: ImageViewCreateFlagBits -> Int
$cp1FiniteBits :: Bits ImageViewCreateFlagBits
FiniteBits)
pattern $bIMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DEFERRED_BIT_EXT :: ImageViewCreateFlagBits
$mIMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DEFERRED_BIT_EXT :: forall r.
ImageViewCreateFlagBits -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DEFERRED_BIT_EXT = ImageViewCreateFlagBits 0x00000002
pattern $bIMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXT :: ImageViewCreateFlagBits
$mIMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXT :: forall r.
ImageViewCreateFlagBits -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXT = ImageViewCreateFlagBits 0x00000001
conNameImageViewCreateFlagBits :: String
conNameImageViewCreateFlagBits :: String
conNameImageViewCreateFlagBits = "ImageViewCreateFlagBits"
enumPrefixImageViewCreateFlagBits :: String
enumPrefixImageViewCreateFlagBits :: String
enumPrefixImageViewCreateFlagBits = "IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_D"
showTableImageViewCreateFlagBits :: [(ImageViewCreateFlagBits, String)]
showTableImageViewCreateFlagBits :: [(ImageViewCreateFlagBits, String)]
showTableImageViewCreateFlagBits =
[ (ImageViewCreateFlagBits
IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DEFERRED_BIT_EXT, "EFERRED_BIT_EXT")
, (ImageViewCreateFlagBits
IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXT , "YNAMIC_BIT_EXT")
]
instance Show ImageViewCreateFlagBits where
showsPrec :: Int -> ImageViewCreateFlagBits -> ShowS
showsPrec = String
-> [(ImageViewCreateFlagBits, String)]
-> String
-> (ImageViewCreateFlagBits -> Flags)
-> (Flags -> ShowS)
-> Int
-> ImageViewCreateFlagBits
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixImageViewCreateFlagBits
[(ImageViewCreateFlagBits, String)]
showTableImageViewCreateFlagBits
String
conNameImageViewCreateFlagBits
(\(ImageViewCreateFlagBits x :: Flags
x) -> Flags
x)
(\x :: Flags
x -> String -> ShowS
showString "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 ImageViewCreateFlagBits where
readPrec :: ReadPrec ImageViewCreateFlagBits
readPrec = String
-> [(ImageViewCreateFlagBits, String)]
-> String
-> (Flags -> ImageViewCreateFlagBits)
-> ReadPrec ImageViewCreateFlagBits
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixImageViewCreateFlagBits
[(ImageViewCreateFlagBits, String)]
showTableImageViewCreateFlagBits
String
conNameImageViewCreateFlagBits
Flags -> ImageViewCreateFlagBits
ImageViewCreateFlagBits