{-# language CPP #-}
module Vulkan.Core10.Enums.DescriptorType  (DescriptorType( DESCRIPTOR_TYPE_SAMPLER
                                                          , DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER
                                                          , DESCRIPTOR_TYPE_SAMPLED_IMAGE
                                                          , DESCRIPTOR_TYPE_STORAGE_IMAGE
                                                          , DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER
                                                          , DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER
                                                          , DESCRIPTOR_TYPE_UNIFORM_BUFFER
                                                          , DESCRIPTOR_TYPE_STORAGE_BUFFER
                                                          , DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC
                                                          , DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC
                                                          , DESCRIPTOR_TYPE_INPUT_ATTACHMENT
                                                          , DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR
                                                          , DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT
                                                          , ..
                                                          )) where

import GHC.Read (choose)
import GHC.Read (expectP)
import GHC.Read (parens)
import GHC.Show (showParen)
import GHC.Show (showString)
import GHC.Show (showsPrec)
import Text.ParserCombinators.ReadPrec ((+++))
import Text.ParserCombinators.ReadPrec (prec)
import Text.ParserCombinators.ReadPrec (step)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import Text.Read.Lex (Lexeme(Ident))
import Vulkan.Zero (Zero)
-- | VkDescriptorType - Specifies the type of a descriptor in a descriptor
-- set
--
-- = Description
--
-- -   'DESCRIPTOR_TYPE_SAMPLER' specifies a
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#descriptorsets-sampler sampler descriptor>.
--
-- -   'DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER' specifies a
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#descriptorsets-combinedimagesampler combined image sampler descriptor>.
--
-- -   'DESCRIPTOR_TYPE_SAMPLED_IMAGE' specifies a
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#descriptorsets-sampledimage sampled image descriptor>.
--
-- -   'DESCRIPTOR_TYPE_STORAGE_IMAGE' specifies a
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#descriptorsets-storageimage storage image descriptor>.
--
-- -   'DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER' specifies a
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#descriptorsets-uniformtexelbuffer uniform texel buffer descriptor>.
--
-- -   'DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER' specifies a
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#descriptorsets-storagetexelbuffer storage texel buffer descriptor>.
--
-- -   'DESCRIPTOR_TYPE_UNIFORM_BUFFER' specifies a
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#descriptorsets-uniformbuffer uniform buffer descriptor>.
--
-- -   'DESCRIPTOR_TYPE_STORAGE_BUFFER' specifies a
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#descriptorsets-storagebuffer storage buffer descriptor>.
--
-- -   'DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC' specifies a
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#descriptorsets-uniformbufferdynamic dynamic uniform buffer descriptor>.
--
-- -   'DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC' specifies a
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#descriptorsets-storagebufferdynamic dynamic storage buffer descriptor>.
--
-- -   'DESCRIPTOR_TYPE_INPUT_ATTACHMENT' specifies an
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#descriptorsets-inputattachment input attachment descriptor>.
--
-- -   'DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT' specifies an
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#descriptorsets-inlineuniformblock inline uniform block>.
--
-- When a descriptor set is updated via elements of
-- 'Vulkan.Core10.DescriptorSet.WriteDescriptorSet', members of
-- @pImageInfo@, @pBufferInfo@ and @pTexelBufferView@ are only accessed by
-- the implementation when they correspond to descriptor type being defined
-- - otherwise they are ignored. The members accessed are as follows for
-- each descriptor type:
--
-- -   For 'DESCRIPTOR_TYPE_SAMPLER', only the @sampler@ member of each
--     element of
--     'Vulkan.Core10.DescriptorSet.WriteDescriptorSet'::@pImageInfo@ is
--     accessed.
--
-- -   For 'DESCRIPTOR_TYPE_SAMPLED_IMAGE',
--     'DESCRIPTOR_TYPE_STORAGE_IMAGE', or
--     'DESCRIPTOR_TYPE_INPUT_ATTACHMENT', only the @imageView@ and
--     @imageLayout@ members of each element of
--     'Vulkan.Core10.DescriptorSet.WriteDescriptorSet'::@pImageInfo@ are
--     accessed.
--
-- -   For 'DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER', all members of each
--     element of
--     'Vulkan.Core10.DescriptorSet.WriteDescriptorSet'::@pImageInfo@ are
--     accessed.
--
-- -   For 'DESCRIPTOR_TYPE_UNIFORM_BUFFER',
--     'DESCRIPTOR_TYPE_STORAGE_BUFFER',
--     'DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC', or
--     'DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC', all members of each
--     element of
--     'Vulkan.Core10.DescriptorSet.WriteDescriptorSet'::@pBufferInfo@ are
--     accessed.
--
-- -   For 'DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER' or
--     'DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER', each element of
--     'Vulkan.Core10.DescriptorSet.WriteDescriptorSet'::@pTexelBufferView@
--     is accessed.
--
-- When updating descriptors with a @descriptorType@ of
-- 'DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT', none of the @pImageInfo@,
-- @pBufferInfo@, or @pTexelBufferView@ members are accessed, instead the
-- source data of the descriptor update operation is taken from the
-- 'Vulkan.Extensions.VK_EXT_inline_uniform_block.WriteDescriptorSetInlineUniformBlockEXT'
-- structure in the @pNext@ chain of
-- 'Vulkan.Core10.DescriptorSet.WriteDescriptorSet'. When updating
-- descriptors with a @descriptorType@ of
-- 'DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR', none of the @pImageInfo@,
-- @pBufferInfo@, or @pTexelBufferView@ members are accessed, instead the
-- source data of the descriptor update operation is taken from the
-- 'Vulkan.Extensions.VK_KHR_ray_tracing.WriteDescriptorSetAccelerationStructureKHR'
-- structure in the @pNext@ chain of
-- 'Vulkan.Core10.DescriptorSet.WriteDescriptorSet'.
--
-- = See Also
--
-- 'Vulkan.Core10.DescriptorSet.DescriptorPoolSize',
-- 'Vulkan.Core10.DescriptorSet.DescriptorSetLayoutBinding',
-- 'Vulkan.Core11.Promoted_From_VK_KHR_descriptor_update_template.DescriptorUpdateTemplateEntry',
-- 'Vulkan.Extensions.VK_NVX_image_view_handle.ImageViewHandleInfoNVX',
-- 'Vulkan.Core10.DescriptorSet.WriteDescriptorSet'
newtype DescriptorType = DescriptorType Int32
  deriving newtype (DescriptorType -> DescriptorType -> Bool
(DescriptorType -> DescriptorType -> Bool)
-> (DescriptorType -> DescriptorType -> Bool) -> Eq DescriptorType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescriptorType -> DescriptorType -> Bool
$c/= :: DescriptorType -> DescriptorType -> Bool
== :: DescriptorType -> DescriptorType -> Bool
$c== :: DescriptorType -> DescriptorType -> Bool
Eq, Eq DescriptorType
Eq DescriptorType =>
(DescriptorType -> DescriptorType -> Ordering)
-> (DescriptorType -> DescriptorType -> Bool)
-> (DescriptorType -> DescriptorType -> Bool)
-> (DescriptorType -> DescriptorType -> Bool)
-> (DescriptorType -> DescriptorType -> Bool)
-> (DescriptorType -> DescriptorType -> DescriptorType)
-> (DescriptorType -> DescriptorType -> DescriptorType)
-> Ord DescriptorType
DescriptorType -> DescriptorType -> Bool
DescriptorType -> DescriptorType -> Ordering
DescriptorType -> DescriptorType -> DescriptorType
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 :: DescriptorType -> DescriptorType -> DescriptorType
$cmin :: DescriptorType -> DescriptorType -> DescriptorType
max :: DescriptorType -> DescriptorType -> DescriptorType
$cmax :: DescriptorType -> DescriptorType -> DescriptorType
>= :: DescriptorType -> DescriptorType -> Bool
$c>= :: DescriptorType -> DescriptorType -> Bool
> :: DescriptorType -> DescriptorType -> Bool
$c> :: DescriptorType -> DescriptorType -> Bool
<= :: DescriptorType -> DescriptorType -> Bool
$c<= :: DescriptorType -> DescriptorType -> Bool
< :: DescriptorType -> DescriptorType -> Bool
$c< :: DescriptorType -> DescriptorType -> Bool
compare :: DescriptorType -> DescriptorType -> Ordering
$ccompare :: DescriptorType -> DescriptorType -> Ordering
$cp1Ord :: Eq DescriptorType
Ord, Ptr b -> Int -> IO DescriptorType
Ptr b -> Int -> DescriptorType -> IO ()
Ptr DescriptorType -> IO DescriptorType
Ptr DescriptorType -> Int -> IO DescriptorType
Ptr DescriptorType -> Int -> DescriptorType -> IO ()
Ptr DescriptorType -> DescriptorType -> IO ()
DescriptorType -> Int
(DescriptorType -> Int)
-> (DescriptorType -> Int)
-> (Ptr DescriptorType -> Int -> IO DescriptorType)
-> (Ptr DescriptorType -> Int -> DescriptorType -> IO ())
-> (forall b. Ptr b -> Int -> IO DescriptorType)
-> (forall b. Ptr b -> Int -> DescriptorType -> IO ())
-> (Ptr DescriptorType -> IO DescriptorType)
-> (Ptr DescriptorType -> DescriptorType -> IO ())
-> Storable DescriptorType
forall b. Ptr b -> Int -> IO DescriptorType
forall b. Ptr b -> Int -> DescriptorType -> 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 DescriptorType -> DescriptorType -> IO ()
$cpoke :: Ptr DescriptorType -> DescriptorType -> IO ()
peek :: Ptr DescriptorType -> IO DescriptorType
$cpeek :: Ptr DescriptorType -> IO DescriptorType
pokeByteOff :: Ptr b -> Int -> DescriptorType -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> DescriptorType -> IO ()
peekByteOff :: Ptr b -> Int -> IO DescriptorType
$cpeekByteOff :: forall b. Ptr b -> Int -> IO DescriptorType
pokeElemOff :: Ptr DescriptorType -> Int -> DescriptorType -> IO ()
$cpokeElemOff :: Ptr DescriptorType -> Int -> DescriptorType -> IO ()
peekElemOff :: Ptr DescriptorType -> Int -> IO DescriptorType
$cpeekElemOff :: Ptr DescriptorType -> Int -> IO DescriptorType
alignment :: DescriptorType -> Int
$calignment :: DescriptorType -> Int
sizeOf :: DescriptorType -> Int
$csizeOf :: DescriptorType -> Int
Storable, DescriptorType
DescriptorType -> Zero DescriptorType
forall a. a -> Zero a
zero :: DescriptorType
$czero :: DescriptorType
Zero)

-- No documentation found for Nested "VkDescriptorType" "VK_DESCRIPTOR_TYPE_SAMPLER"
pattern $bDESCRIPTOR_TYPE_SAMPLER :: DescriptorType
$mDESCRIPTOR_TYPE_SAMPLER :: forall r. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_SAMPLER = DescriptorType 0
-- No documentation found for Nested "VkDescriptorType" "VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER"
pattern $bDESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER :: DescriptorType
$mDESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER :: forall r. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = DescriptorType 1
-- No documentation found for Nested "VkDescriptorType" "VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE"
pattern $bDESCRIPTOR_TYPE_SAMPLED_IMAGE :: DescriptorType
$mDESCRIPTOR_TYPE_SAMPLED_IMAGE :: forall r. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_SAMPLED_IMAGE = DescriptorType 2
-- No documentation found for Nested "VkDescriptorType" "VK_DESCRIPTOR_TYPE_STORAGE_IMAGE"
pattern $bDESCRIPTOR_TYPE_STORAGE_IMAGE :: DescriptorType
$mDESCRIPTOR_TYPE_STORAGE_IMAGE :: forall r. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_STORAGE_IMAGE = DescriptorType 3
-- No documentation found for Nested "VkDescriptorType" "VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER"
pattern $bDESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER :: DescriptorType
$mDESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER :: forall r. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = DescriptorType 4
-- No documentation found for Nested "VkDescriptorType" "VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER"
pattern $bDESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER :: DescriptorType
$mDESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER :: forall r. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = DescriptorType 5
-- No documentation found for Nested "VkDescriptorType" "VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER"
pattern $bDESCRIPTOR_TYPE_UNIFORM_BUFFER :: DescriptorType
$mDESCRIPTOR_TYPE_UNIFORM_BUFFER :: forall r. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_UNIFORM_BUFFER = DescriptorType 6
-- No documentation found for Nested "VkDescriptorType" "VK_DESCRIPTOR_TYPE_STORAGE_BUFFER"
pattern $bDESCRIPTOR_TYPE_STORAGE_BUFFER :: DescriptorType
$mDESCRIPTOR_TYPE_STORAGE_BUFFER :: forall r. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_STORAGE_BUFFER = DescriptorType 7
-- No documentation found for Nested "VkDescriptorType" "VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC"
pattern $bDESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC :: DescriptorType
$mDESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC :: forall r. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = DescriptorType 8
-- No documentation found for Nested "VkDescriptorType" "VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC"
pattern $bDESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC :: DescriptorType
$mDESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC :: forall r. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = DescriptorType 9
-- No documentation found for Nested "VkDescriptorType" "VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT"
pattern $bDESCRIPTOR_TYPE_INPUT_ATTACHMENT :: DescriptorType
$mDESCRIPTOR_TYPE_INPUT_ATTACHMENT :: forall r. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_INPUT_ATTACHMENT = DescriptorType 10
-- No documentation found for Nested "VkDescriptorType" "VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR"
pattern $bDESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR :: DescriptorType
$mDESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR :: forall r. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR = DescriptorType 1000165000
-- No documentation found for Nested "VkDescriptorType" "VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT"
pattern $bDESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT :: DescriptorType
$mDESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT :: forall r. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT = DescriptorType 1000138000
{-# complete DESCRIPTOR_TYPE_SAMPLER,
             DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER,
             DESCRIPTOR_TYPE_SAMPLED_IMAGE,
             DESCRIPTOR_TYPE_STORAGE_IMAGE,
             DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER,
             DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER,
             DESCRIPTOR_TYPE_UNIFORM_BUFFER,
             DESCRIPTOR_TYPE_STORAGE_BUFFER,
             DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC,
             DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC,
             DESCRIPTOR_TYPE_INPUT_ATTACHMENT,
             DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR,
             DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT :: DescriptorType #-}

instance Show DescriptorType where
  showsPrec :: Int -> DescriptorType -> ShowS
showsPrec p :: Int
p = \case
    DESCRIPTOR_TYPE_SAMPLER -> String -> ShowS
showString "DESCRIPTOR_TYPE_SAMPLER"
    DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER -> String -> ShowS
showString "DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER"
    DESCRIPTOR_TYPE_SAMPLED_IMAGE -> String -> ShowS
showString "DESCRIPTOR_TYPE_SAMPLED_IMAGE"
    DESCRIPTOR_TYPE_STORAGE_IMAGE -> String -> ShowS
showString "DESCRIPTOR_TYPE_STORAGE_IMAGE"
    DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER -> String -> ShowS
showString "DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER"
    DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER -> String -> ShowS
showString "DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER"
    DESCRIPTOR_TYPE_UNIFORM_BUFFER -> String -> ShowS
showString "DESCRIPTOR_TYPE_UNIFORM_BUFFER"
    DESCRIPTOR_TYPE_STORAGE_BUFFER -> String -> ShowS
showString "DESCRIPTOR_TYPE_STORAGE_BUFFER"
    DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC -> String -> ShowS
showString "DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC"
    DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC -> String -> ShowS
showString "DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC"
    DESCRIPTOR_TYPE_INPUT_ATTACHMENT -> String -> ShowS
showString "DESCRIPTOR_TYPE_INPUT_ATTACHMENT"
    DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR -> String -> ShowS
showString "DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR"
    DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT -> String -> ShowS
showString "DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT"
    DescriptorType x :: Int32
x -> Bool -> ShowS -> ShowS
showParen (Int
p Int -> Int -> Bool
forall a. Ord a => a -> a -> Bool
>= 11) (String -> ShowS
showString "DescriptorType " ShowS -> ShowS -> ShowS
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11 Int32
x)

instance Read DescriptorType where
  readPrec :: ReadPrec DescriptorType
readPrec = ReadPrec DescriptorType -> ReadPrec DescriptorType
forall a. ReadPrec a -> ReadPrec a
parens ([(String, ReadPrec DescriptorType)] -> ReadPrec DescriptorType
forall a. [(String, ReadPrec a)] -> ReadPrec a
choose [("DESCRIPTOR_TYPE_SAMPLER", DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure DescriptorType
DESCRIPTOR_TYPE_SAMPLER)
                            , ("DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER", DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure DescriptorType
DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER)
                            , ("DESCRIPTOR_TYPE_SAMPLED_IMAGE", DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure DescriptorType
DESCRIPTOR_TYPE_SAMPLED_IMAGE)
                            , ("DESCRIPTOR_TYPE_STORAGE_IMAGE", DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure DescriptorType
DESCRIPTOR_TYPE_STORAGE_IMAGE)
                            , ("DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER", DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure DescriptorType
DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER)
                            , ("DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER", DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure DescriptorType
DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER)
                            , ("DESCRIPTOR_TYPE_UNIFORM_BUFFER", DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure DescriptorType
DESCRIPTOR_TYPE_UNIFORM_BUFFER)
                            , ("DESCRIPTOR_TYPE_STORAGE_BUFFER", DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure DescriptorType
DESCRIPTOR_TYPE_STORAGE_BUFFER)
                            , ("DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC", DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure DescriptorType
DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC)
                            , ("DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC", DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure DescriptorType
DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC)
                            , ("DESCRIPTOR_TYPE_INPUT_ATTACHMENT", DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure DescriptorType
DESCRIPTOR_TYPE_INPUT_ATTACHMENT)
                            , ("DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR", DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure DescriptorType
DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR)
                            , ("DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT", DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure DescriptorType
DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT)]
                     ReadPrec DescriptorType
-> ReadPrec DescriptorType -> ReadPrec DescriptorType
forall a. ReadPrec a -> ReadPrec a -> ReadPrec a
+++
                     Int -> ReadPrec DescriptorType -> ReadPrec DescriptorType
forall a. Int -> ReadPrec a -> ReadPrec a
prec 10 (do
                       Lexeme -> ReadPrec ()
expectP (String -> Lexeme
Ident "DescriptorType")
                       Int32
v <- ReadPrec Int32 -> ReadPrec Int32
forall a. ReadPrec a -> ReadPrec a
step ReadPrec Int32
forall a. Read a => ReadPrec a
readPrec
                       DescriptorType -> ReadPrec DescriptorType
forall (f :: * -> *) a. Applicative f => a -> f a
pure (Int32 -> DescriptorType
DescriptorType Int32
v)))