{-# language CPP #-}
module Vulkan.Core10.Enums.DescriptorSetLayoutCreateFlagBits ( DescriptorSetLayoutCreateFlags
, DescriptorSetLayoutCreateFlagBits( DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT
, DESCRIPTOR_SET_LAYOUT_CREATE_INDIRECT_BINDABLE_BIT_NV
, DESCRIPTOR_SET_LAYOUT_CREATE_EMBEDDED_IMMUTABLE_SAMPLERS_BIT_EXT
, DESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
, DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR
, DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT
, ..
)
) where
import Data.Bits (Bits)
import Data.Bits (FiniteBits)
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import GHC.Show (showString)
import Numeric (showHex)
import Vulkan.Zero (Zero)
import Foreign.Storable (Storable)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
import Vulkan.Core10.FundamentalTypes (Flags)
type DescriptorSetLayoutCreateFlags = DescriptorSetLayoutCreateFlagBits
newtype DescriptorSetLayoutCreateFlagBits = DescriptorSetLayoutCreateFlagBits Flags
deriving newtype (DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
$c/= :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
== :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
$c== :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
Eq, Eq DescriptorSetLayoutCreateFlagBits
DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Ordering
DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
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 :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
$cmin :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
max :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
$cmax :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
>= :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
$c>= :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
> :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
$c> :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
<= :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
$c<= :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
< :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
$c< :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Bool
compare :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Ordering
$ccompare :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> Ordering
Ord, Ptr DescriptorSetLayoutCreateFlagBits
-> IO DescriptorSetLayoutCreateFlagBits
Ptr DescriptorSetLayoutCreateFlagBits
-> Int -> IO DescriptorSetLayoutCreateFlagBits
Ptr DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits -> IO ()
Ptr DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> IO ()
DescriptorSetLayoutCreateFlagBits -> Int
forall b. Ptr b -> Int -> IO DescriptorSetLayoutCreateFlagBits
forall b.
Ptr b -> Int -> DescriptorSetLayoutCreateFlagBits -> 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 DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> IO ()
$cpoke :: Ptr DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits -> IO ()
peek :: Ptr DescriptorSetLayoutCreateFlagBits
-> IO DescriptorSetLayoutCreateFlagBits
$cpeek :: Ptr DescriptorSetLayoutCreateFlagBits
-> IO DescriptorSetLayoutCreateFlagBits
pokeByteOff :: forall b.
Ptr b -> Int -> DescriptorSetLayoutCreateFlagBits -> IO ()
$cpokeByteOff :: forall b.
Ptr b -> Int -> DescriptorSetLayoutCreateFlagBits -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO DescriptorSetLayoutCreateFlagBits
$cpeekByteOff :: forall b. Ptr b -> Int -> IO DescriptorSetLayoutCreateFlagBits
pokeElemOff :: Ptr DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits -> IO ()
$cpokeElemOff :: Ptr DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits -> IO ()
peekElemOff :: Ptr DescriptorSetLayoutCreateFlagBits
-> Int -> IO DescriptorSetLayoutCreateFlagBits
$cpeekElemOff :: Ptr DescriptorSetLayoutCreateFlagBits
-> Int -> IO DescriptorSetLayoutCreateFlagBits
alignment :: DescriptorSetLayoutCreateFlagBits -> Int
$calignment :: DescriptorSetLayoutCreateFlagBits -> Int
sizeOf :: DescriptorSetLayoutCreateFlagBits -> Int
$csizeOf :: DescriptorSetLayoutCreateFlagBits -> Int
Storable, DescriptorSetLayoutCreateFlagBits
forall a. a -> Zero a
zero :: DescriptorSetLayoutCreateFlagBits
$czero :: DescriptorSetLayoutCreateFlagBits
Zero, Eq DescriptorSetLayoutCreateFlagBits
DescriptorSetLayoutCreateFlagBits
Int -> DescriptorSetLayoutCreateFlagBits
DescriptorSetLayoutCreateFlagBits -> Bool
DescriptorSetLayoutCreateFlagBits -> Int
DescriptorSetLayoutCreateFlagBits -> Maybe Int
DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
DescriptorSetLayoutCreateFlagBits -> Int -> Bool
DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
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 :: DescriptorSetLayoutCreateFlagBits -> Int
$cpopCount :: DescriptorSetLayoutCreateFlagBits -> Int
rotateR :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
$crotateR :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
rotateL :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
$crotateL :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
unsafeShiftR :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
$cunsafeShiftR :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
shiftR :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
$cshiftR :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
unsafeShiftL :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
$cunsafeShiftL :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
shiftL :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
$cshiftL :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
isSigned :: DescriptorSetLayoutCreateFlagBits -> Bool
$cisSigned :: DescriptorSetLayoutCreateFlagBits -> Bool
bitSize :: DescriptorSetLayoutCreateFlagBits -> Int
$cbitSize :: DescriptorSetLayoutCreateFlagBits -> Int
bitSizeMaybe :: DescriptorSetLayoutCreateFlagBits -> Maybe Int
$cbitSizeMaybe :: DescriptorSetLayoutCreateFlagBits -> Maybe Int
testBit :: DescriptorSetLayoutCreateFlagBits -> Int -> Bool
$ctestBit :: DescriptorSetLayoutCreateFlagBits -> Int -> Bool
complementBit :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
$ccomplementBit :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
clearBit :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
$cclearBit :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
setBit :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
$csetBit :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
bit :: Int -> DescriptorSetLayoutCreateFlagBits
$cbit :: Int -> DescriptorSetLayoutCreateFlagBits
zeroBits :: DescriptorSetLayoutCreateFlagBits
$czeroBits :: DescriptorSetLayoutCreateFlagBits
rotate :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
$crotate :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
shift :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
$cshift :: DescriptorSetLayoutCreateFlagBits
-> Int -> DescriptorSetLayoutCreateFlagBits
complement :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
$ccomplement :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
xor :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
$cxor :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
.|. :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
$c.|. :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
.&. :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
$c.&. :: DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
-> DescriptorSetLayoutCreateFlagBits
Bits, Bits DescriptorSetLayoutCreateFlagBits
DescriptorSetLayoutCreateFlagBits -> Int
forall b.
Bits b -> (b -> Int) -> (b -> Int) -> (b -> Int) -> FiniteBits b
countTrailingZeros :: DescriptorSetLayoutCreateFlagBits -> Int
$ccountTrailingZeros :: DescriptorSetLayoutCreateFlagBits -> Int
countLeadingZeros :: DescriptorSetLayoutCreateFlagBits -> Int
$ccountLeadingZeros :: DescriptorSetLayoutCreateFlagBits -> Int
finiteBitSize :: DescriptorSetLayoutCreateFlagBits -> Int
$cfiniteBitSize :: DescriptorSetLayoutCreateFlagBits -> Int
FiniteBits)
pattern $bDESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT :: DescriptorSetLayoutCreateFlagBits
$mDESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT :: forall {r}.
DescriptorSetLayoutCreateFlagBits
-> ((# #) -> r) -> ((# #) -> r) -> r
DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT = DescriptorSetLayoutCreateFlagBits 0x00000004
pattern $bDESCRIPTOR_SET_LAYOUT_CREATE_INDIRECT_BINDABLE_BIT_NV :: DescriptorSetLayoutCreateFlagBits
$mDESCRIPTOR_SET_LAYOUT_CREATE_INDIRECT_BINDABLE_BIT_NV :: forall {r}.
DescriptorSetLayoutCreateFlagBits
-> ((# #) -> r) -> ((# #) -> r) -> r
DESCRIPTOR_SET_LAYOUT_CREATE_INDIRECT_BINDABLE_BIT_NV = DescriptorSetLayoutCreateFlagBits 0x00000080
pattern $bDESCRIPTOR_SET_LAYOUT_CREATE_EMBEDDED_IMMUTABLE_SAMPLERS_BIT_EXT :: DescriptorSetLayoutCreateFlagBits
$mDESCRIPTOR_SET_LAYOUT_CREATE_EMBEDDED_IMMUTABLE_SAMPLERS_BIT_EXT :: forall {r}.
DescriptorSetLayoutCreateFlagBits
-> ((# #) -> r) -> ((# #) -> r) -> r
DESCRIPTOR_SET_LAYOUT_CREATE_EMBEDDED_IMMUTABLE_SAMPLERS_BIT_EXT = DescriptorSetLayoutCreateFlagBits 0x00000020
pattern $bDESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT :: DescriptorSetLayoutCreateFlagBits
$mDESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT :: forall {r}.
DescriptorSetLayoutCreateFlagBits
-> ((# #) -> r) -> ((# #) -> r) -> r
DESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT = DescriptorSetLayoutCreateFlagBits 0x00000010
pattern $bDESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR :: DescriptorSetLayoutCreateFlagBits
$mDESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR :: forall {r}.
DescriptorSetLayoutCreateFlagBits
-> ((# #) -> r) -> ((# #) -> r) -> r
DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR = DescriptorSetLayoutCreateFlagBits 0x00000001
pattern $bDESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT :: DescriptorSetLayoutCreateFlagBits
$mDESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT :: forall {r}.
DescriptorSetLayoutCreateFlagBits
-> ((# #) -> r) -> ((# #) -> r) -> r
DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT = DescriptorSetLayoutCreateFlagBits 0x00000002
conNameDescriptorSetLayoutCreateFlagBits :: String
conNameDescriptorSetLayoutCreateFlagBits :: String
conNameDescriptorSetLayoutCreateFlagBits = String
"DescriptorSetLayoutCreateFlagBits"
enumPrefixDescriptorSetLayoutCreateFlagBits :: String
enumPrefixDescriptorSetLayoutCreateFlagBits :: String
enumPrefixDescriptorSetLayoutCreateFlagBits = String
"DESCRIPTOR_SET_LAYOUT_CREATE_"
showTableDescriptorSetLayoutCreateFlagBits :: [(DescriptorSetLayoutCreateFlagBits, String)]
showTableDescriptorSetLayoutCreateFlagBits :: [(DescriptorSetLayoutCreateFlagBits, String)]
showTableDescriptorSetLayoutCreateFlagBits =
[
( DescriptorSetLayoutCreateFlagBits
DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT
, String
"HOST_ONLY_POOL_BIT_EXT"
)
,
( DescriptorSetLayoutCreateFlagBits
DESCRIPTOR_SET_LAYOUT_CREATE_INDIRECT_BINDABLE_BIT_NV
, String
"INDIRECT_BINDABLE_BIT_NV"
)
,
( DescriptorSetLayoutCreateFlagBits
DESCRIPTOR_SET_LAYOUT_CREATE_EMBEDDED_IMMUTABLE_SAMPLERS_BIT_EXT
, String
"EMBEDDED_IMMUTABLE_SAMPLERS_BIT_EXT"
)
,
( DescriptorSetLayoutCreateFlagBits
DESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
, String
"DESCRIPTOR_BUFFER_BIT_EXT"
)
,
( DescriptorSetLayoutCreateFlagBits
DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR
, String
"PUSH_DESCRIPTOR_BIT_KHR"
)
,
( DescriptorSetLayoutCreateFlagBits
DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT
, String
"UPDATE_AFTER_BIND_POOL_BIT"
)
]
instance Show DescriptorSetLayoutCreateFlagBits where
showsPrec :: Int -> DescriptorSetLayoutCreateFlagBits -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixDescriptorSetLayoutCreateFlagBits
[(DescriptorSetLayoutCreateFlagBits, String)]
showTableDescriptorSetLayoutCreateFlagBits
String
conNameDescriptorSetLayoutCreateFlagBits
(\(DescriptorSetLayoutCreateFlagBits Flags
x) -> Flags
x)
(\Flags
x -> String -> ShowS
showString String
"0x" forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. (Integral a, Show a) => a -> ShowS
showHex Flags
x)
instance Read DescriptorSetLayoutCreateFlagBits where
readPrec :: ReadPrec DescriptorSetLayoutCreateFlagBits
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixDescriptorSetLayoutCreateFlagBits
[(DescriptorSetLayoutCreateFlagBits, String)]
showTableDescriptorSetLayoutCreateFlagBits
String
conNameDescriptorSetLayoutCreateFlagBits
Flags -> DescriptorSetLayoutCreateFlagBits
DescriptorSetLayoutCreateFlagBits