{-# language CPP #-}
-- No documentation found for Chapter "DescriptorSetLayoutCreateFlagBits"
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

-- | VkDescriptorSetLayoutCreateFlagBits - Bitmask specifying descriptor set
-- layout properties
--
-- = See Also
--
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_VERSION_1_0 VK_VERSION_1_0>,
-- 'DescriptorSetLayoutCreateFlags'
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)

-- | 'DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT' specifies that
-- descriptor sets using this layout /must/ be allocated from a descriptor
-- pool created with the
-- 'Vulkan.Core10.Enums.DescriptorPoolCreateFlagBits.DESCRIPTOR_POOL_CREATE_HOST_ONLY_BIT_EXT'
-- bit set. Descriptor set layouts created with this bit have no
-- expressible limit for maximum number of descriptors per-stage. Host
-- descriptor sets are limited only by available host memory, but /may/ be
-- limited for implementation specific reasons. Implementations /may/ limit
-- the number of supported descriptors to UpdateAfterBind limits or
-- non-UpdateAfterBind limits, whichever is larger.
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

-- | 'DESCRIPTOR_SET_LAYOUT_CREATE_INDIRECT_BINDABLE_BIT_NV' specifies that
-- descriptor sets using this layout allows them to be bound with compute
-- pipelines that are created with
-- 'Vulkan.Core10.Enums.PipelineCreateFlagBits.PIPELINE_CREATE_INDIRECT_BINDABLE_BIT_NV'
-- flag set to be used in
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#device-generated-commands Device-Generated Commands>.
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

-- | 'DESCRIPTOR_SET_LAYOUT_CREATE_EMBEDDED_IMMUTABLE_SAMPLERS_BIT_EXT'
-- specifies that this is a layout only containing immutable samplers that
-- /can/ be bound by
-- 'Vulkan.Extensions.VK_EXT_descriptor_buffer.cmdBindDescriptorBufferEmbeddedSamplersEXT'.
-- Unlike normal immutable samplers, embedded immutable samplers do not
-- require the application to provide them in a descriptor buffer.
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

-- | 'DESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT' specifies that
-- this layout /must/ only be used with descriptor buffers.
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

-- | 'DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR' specifies that
-- descriptor sets /must/ not be allocated using this layout, and
-- descriptors are instead pushed by
-- 'Vulkan.Extensions.VK_KHR_push_descriptor.cmdPushDescriptorSetKHR'.
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

-- | 'DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT' specifies that
-- descriptor sets using this layout /must/ be allocated from a descriptor
-- pool created with the
-- 'Vulkan.Core10.Enums.DescriptorPoolCreateFlagBits.DESCRIPTOR_POOL_CREATE_UPDATE_AFTER_BIND_BIT'
-- bit set. Descriptor set layouts created with this bit set have alternate
-- limits for the maximum number of descriptors per-stage and per-pipeline
-- layout. The non-UpdateAfterBind limits only count descriptors in sets
-- created without this flag. The UpdateAfterBind limits count all
-- descriptors, but the limits /may/ be higher than the non-UpdateAfterBind
-- limits.
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