{-# 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_MUTABLE_EXT
, DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM
, DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM
, DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV
, DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR
, DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK
, ..
)) where
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import GHC.Show (showsPrec)
import Vulkan.Zero (Zero)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
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
Ord, 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 :: forall b. Ptr b -> Int -> DescriptorType -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> DescriptorType -> IO ()
peekByteOff :: forall b. 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)
pattern $bDESCRIPTOR_TYPE_SAMPLER :: DescriptorType
$mDESCRIPTOR_TYPE_SAMPLER :: forall {r}. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_SAMPLER = DescriptorType 0
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
pattern $bDESCRIPTOR_TYPE_SAMPLED_IMAGE :: DescriptorType
$mDESCRIPTOR_TYPE_SAMPLED_IMAGE :: forall {r}. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_SAMPLED_IMAGE = DescriptorType 2
pattern $bDESCRIPTOR_TYPE_STORAGE_IMAGE :: DescriptorType
$mDESCRIPTOR_TYPE_STORAGE_IMAGE :: forall {r}. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_STORAGE_IMAGE = DescriptorType 3
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
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
pattern $bDESCRIPTOR_TYPE_UNIFORM_BUFFER :: DescriptorType
$mDESCRIPTOR_TYPE_UNIFORM_BUFFER :: forall {r}. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_UNIFORM_BUFFER = DescriptorType 6
pattern $bDESCRIPTOR_TYPE_STORAGE_BUFFER :: DescriptorType
$mDESCRIPTOR_TYPE_STORAGE_BUFFER :: forall {r}. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_STORAGE_BUFFER = DescriptorType 7
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
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
pattern $bDESCRIPTOR_TYPE_INPUT_ATTACHMENT :: DescriptorType
$mDESCRIPTOR_TYPE_INPUT_ATTACHMENT :: forall {r}. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_INPUT_ATTACHMENT = DescriptorType 10
pattern $bDESCRIPTOR_TYPE_MUTABLE_EXT :: DescriptorType
$mDESCRIPTOR_TYPE_MUTABLE_EXT :: forall {r}. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_MUTABLE_EXT = DescriptorType 1000351000
pattern $bDESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM :: DescriptorType
$mDESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM :: forall {r}. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM = DescriptorType 1000440001
pattern $bDESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM :: DescriptorType
$mDESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM :: forall {r}. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM = DescriptorType 1000440000
pattern $bDESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV :: DescriptorType
$mDESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV :: forall {r}. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV = DescriptorType 1000165000
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 1000150000
pattern $bDESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK :: DescriptorType
$mDESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK :: forall {r}. DescriptorType -> (Void# -> r) -> (Void# -> r) -> r
DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK = 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_MUTABLE_EXT
, DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM
, DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM
, DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV
, DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR
, DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK ::
DescriptorType
#-}
conNameDescriptorType :: String
conNameDescriptorType :: String
conNameDescriptorType = String
"DescriptorType"
enumPrefixDescriptorType :: String
enumPrefixDescriptorType :: String
enumPrefixDescriptorType = String
"DESCRIPTOR_TYPE_"
showTableDescriptorType :: [(DescriptorType, String)]
showTableDescriptorType :: [(DescriptorType, String)]
showTableDescriptorType =
[ (DescriptorType
DESCRIPTOR_TYPE_SAMPLER, String
"SAMPLER")
,
( DescriptorType
DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER
, String
"COMBINED_IMAGE_SAMPLER"
)
, (DescriptorType
DESCRIPTOR_TYPE_SAMPLED_IMAGE, String
"SAMPLED_IMAGE")
, (DescriptorType
DESCRIPTOR_TYPE_STORAGE_IMAGE, String
"STORAGE_IMAGE")
,
( DescriptorType
DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER
, String
"UNIFORM_TEXEL_BUFFER"
)
,
( DescriptorType
DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER
, String
"STORAGE_TEXEL_BUFFER"
)
, (DescriptorType
DESCRIPTOR_TYPE_UNIFORM_BUFFER, String
"UNIFORM_BUFFER")
, (DescriptorType
DESCRIPTOR_TYPE_STORAGE_BUFFER, String
"STORAGE_BUFFER")
,
( DescriptorType
DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC
, String
"UNIFORM_BUFFER_DYNAMIC"
)
,
( DescriptorType
DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC
, String
"STORAGE_BUFFER_DYNAMIC"
)
,
( DescriptorType
DESCRIPTOR_TYPE_INPUT_ATTACHMENT
, String
"INPUT_ATTACHMENT"
)
, (DescriptorType
DESCRIPTOR_TYPE_MUTABLE_EXT, String
"MUTABLE_EXT")
,
( DescriptorType
DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM
, String
"BLOCK_MATCH_IMAGE_QCOM"
)
,
( DescriptorType
DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM
, String
"SAMPLE_WEIGHT_IMAGE_QCOM"
)
,
( DescriptorType
DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV
, String
"ACCELERATION_STRUCTURE_NV"
)
,
( DescriptorType
DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR
, String
"ACCELERATION_STRUCTURE_KHR"
)
,
( DescriptorType
DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK
, String
"INLINE_UNIFORM_BLOCK"
)
]
instance Show DescriptorType where
showsPrec :: Int -> DescriptorType -> ShowS
showsPrec =
String
-> [(DescriptorType, String)]
-> String
-> (DescriptorType -> Int32)
-> (Int32 -> ShowS)
-> Int
-> DescriptorType
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixDescriptorType
[(DescriptorType, String)]
showTableDescriptorType
String
conNameDescriptorType
(\(DescriptorType Int32
x) -> Int32
x)
(Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)
instance Read DescriptorType where
readPrec :: ReadPrec DescriptorType
readPrec =
String
-> [(DescriptorType, String)]
-> String
-> (Int32 -> DescriptorType)
-> ReadPrec DescriptorType
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixDescriptorType
[(DescriptorType, String)]
showTableDescriptorType
String
conNameDescriptorType
Int32 -> DescriptorType
DescriptorType