{-# language CPP #-}
module Vulkan.Core11.Enums.SamplerYcbcrModelConversion (SamplerYcbcrModelConversion( SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY
, SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY
, SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709
, SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601
, SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020
, ..
)) 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)
newtype SamplerYcbcrModelConversion = SamplerYcbcrModelConversion Int32
deriving newtype (SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
(SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> Bool)
-> (SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> Bool)
-> Eq SamplerYcbcrModelConversion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
$c/= :: SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
== :: SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
$c== :: SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
Eq, Eq SamplerYcbcrModelConversion
Eq SamplerYcbcrModelConversion =>
(SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> Ordering)
-> (SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> Bool)
-> (SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> Bool)
-> (SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> Bool)
-> (SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> Bool)
-> (SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion)
-> (SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion)
-> Ord SamplerYcbcrModelConversion
SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> Ordering
SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion
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 :: SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion
$cmin :: SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion
max :: SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion
$cmax :: SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion
>= :: SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
$c>= :: SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
> :: SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
$c> :: SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
<= :: SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
$c<= :: SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
< :: SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
$c< :: SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
compare :: SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> Ordering
$ccompare :: SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> Ordering
$cp1Ord :: Eq SamplerYcbcrModelConversion
Ord, Ptr b -> Int -> IO SamplerYcbcrModelConversion
Ptr b -> Int -> SamplerYcbcrModelConversion -> IO ()
Ptr SamplerYcbcrModelConversion -> IO SamplerYcbcrModelConversion
Ptr SamplerYcbcrModelConversion
-> Int -> IO SamplerYcbcrModelConversion
Ptr SamplerYcbcrModelConversion
-> Int -> SamplerYcbcrModelConversion -> IO ()
Ptr SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> IO ()
SamplerYcbcrModelConversion -> Int
(SamplerYcbcrModelConversion -> Int)
-> (SamplerYcbcrModelConversion -> Int)
-> (Ptr SamplerYcbcrModelConversion
-> Int -> IO SamplerYcbcrModelConversion)
-> (Ptr SamplerYcbcrModelConversion
-> Int -> SamplerYcbcrModelConversion -> IO ())
-> (forall b. Ptr b -> Int -> IO SamplerYcbcrModelConversion)
-> (forall b. Ptr b -> Int -> SamplerYcbcrModelConversion -> IO ())
-> (Ptr SamplerYcbcrModelConversion
-> IO SamplerYcbcrModelConversion)
-> (Ptr SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> IO ())
-> Storable SamplerYcbcrModelConversion
forall b. Ptr b -> Int -> IO SamplerYcbcrModelConversion
forall b. Ptr b -> Int -> SamplerYcbcrModelConversion -> 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 SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> IO ()
$cpoke :: Ptr SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> IO ()
peek :: Ptr SamplerYcbcrModelConversion -> IO SamplerYcbcrModelConversion
$cpeek :: Ptr SamplerYcbcrModelConversion -> IO SamplerYcbcrModelConversion
pokeByteOff :: Ptr b -> Int -> SamplerYcbcrModelConversion -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> SamplerYcbcrModelConversion -> IO ()
peekByteOff :: Ptr b -> Int -> IO SamplerYcbcrModelConversion
$cpeekByteOff :: forall b. Ptr b -> Int -> IO SamplerYcbcrModelConversion
pokeElemOff :: Ptr SamplerYcbcrModelConversion
-> Int -> SamplerYcbcrModelConversion -> IO ()
$cpokeElemOff :: Ptr SamplerYcbcrModelConversion
-> Int -> SamplerYcbcrModelConversion -> IO ()
peekElemOff :: Ptr SamplerYcbcrModelConversion
-> Int -> IO SamplerYcbcrModelConversion
$cpeekElemOff :: Ptr SamplerYcbcrModelConversion
-> Int -> IO SamplerYcbcrModelConversion
alignment :: SamplerYcbcrModelConversion -> Int
$calignment :: SamplerYcbcrModelConversion -> Int
sizeOf :: SamplerYcbcrModelConversion -> Int
$csizeOf :: SamplerYcbcrModelConversion -> Int
Storable, SamplerYcbcrModelConversion
SamplerYcbcrModelConversion -> Zero SamplerYcbcrModelConversion
forall a. a -> Zero a
zero :: SamplerYcbcrModelConversion
$czero :: SamplerYcbcrModelConversion
Zero)
pattern $bSAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY :: SamplerYcbcrModelConversion
$mSAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY :: forall r.
SamplerYcbcrModelConversion -> (Void# -> r) -> (Void# -> r) -> r
SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY = SamplerYcbcrModelConversion 0
pattern $bSAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY :: SamplerYcbcrModelConversion
$mSAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY :: forall r.
SamplerYcbcrModelConversion -> (Void# -> r) -> (Void# -> r) -> r
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY = SamplerYcbcrModelConversion 1
pattern $bSAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709 :: SamplerYcbcrModelConversion
$mSAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709 :: forall r.
SamplerYcbcrModelConversion -> (Void# -> r) -> (Void# -> r) -> r
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709 = SamplerYcbcrModelConversion 2
pattern $bSAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601 :: SamplerYcbcrModelConversion
$mSAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601 :: forall r.
SamplerYcbcrModelConversion -> (Void# -> r) -> (Void# -> r) -> r
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601 = SamplerYcbcrModelConversion 3
pattern $bSAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020 :: SamplerYcbcrModelConversion
$mSAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020 :: forall r.
SamplerYcbcrModelConversion -> (Void# -> r) -> (Void# -> r) -> r
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020 = SamplerYcbcrModelConversion 4
{-# complete SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY,
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY,
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709,
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601,
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020 :: SamplerYcbcrModelConversion #-}
instance Show SamplerYcbcrModelConversion where
showsPrec :: Int -> SamplerYcbcrModelConversion -> ShowS
showsPrec p :: Int
p = \case
SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY -> String -> ShowS
showString "SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY"
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY -> String -> ShowS
showString "SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY"
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709 -> String -> ShowS
showString "SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709"
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601 -> String -> ShowS
showString "SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601"
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020 -> String -> ShowS
showString "SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020"
SamplerYcbcrModelConversion x :: Int32
x -> Bool -> ShowS -> ShowS
showParen (Int
p Int -> Int -> Bool
forall a. Ord a => a -> a -> Bool
>= 11) (String -> ShowS
showString "SamplerYcbcrModelConversion " 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 SamplerYcbcrModelConversion where
readPrec :: ReadPrec SamplerYcbcrModelConversion
readPrec = ReadPrec SamplerYcbcrModelConversion
-> ReadPrec SamplerYcbcrModelConversion
forall a. ReadPrec a -> ReadPrec a
parens ([(String, ReadPrec SamplerYcbcrModelConversion)]
-> ReadPrec SamplerYcbcrModelConversion
forall a. [(String, ReadPrec a)] -> ReadPrec a
choose [("SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY", SamplerYcbcrModelConversion -> ReadPrec SamplerYcbcrModelConversion
forall (f :: * -> *) a. Applicative f => a -> f a
pure SamplerYcbcrModelConversion
SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY)
, ("SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY", SamplerYcbcrModelConversion -> ReadPrec SamplerYcbcrModelConversion
forall (f :: * -> *) a. Applicative f => a -> f a
pure SamplerYcbcrModelConversion
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY)
, ("SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709", SamplerYcbcrModelConversion -> ReadPrec SamplerYcbcrModelConversion
forall (f :: * -> *) a. Applicative f => a -> f a
pure SamplerYcbcrModelConversion
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709)
, ("SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601", SamplerYcbcrModelConversion -> ReadPrec SamplerYcbcrModelConversion
forall (f :: * -> *) a. Applicative f => a -> f a
pure SamplerYcbcrModelConversion
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601)
, ("SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020", SamplerYcbcrModelConversion -> ReadPrec SamplerYcbcrModelConversion
forall (f :: * -> *) a. Applicative f => a -> f a
pure SamplerYcbcrModelConversion
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020)]
ReadPrec SamplerYcbcrModelConversion
-> ReadPrec SamplerYcbcrModelConversion
-> ReadPrec SamplerYcbcrModelConversion
forall a. ReadPrec a -> ReadPrec a -> ReadPrec a
+++
Int
-> ReadPrec SamplerYcbcrModelConversion
-> ReadPrec SamplerYcbcrModelConversion
forall a. Int -> ReadPrec a -> ReadPrec a
prec 10 (do
Lexeme -> ReadPrec ()
expectP (String -> Lexeme
Ident "SamplerYcbcrModelConversion")
Int32
v <- ReadPrec Int32 -> ReadPrec Int32
forall a. ReadPrec a -> ReadPrec a
step ReadPrec Int32
forall a. Read a => ReadPrec a
readPrec
SamplerYcbcrModelConversion -> ReadPrec SamplerYcbcrModelConversion
forall (f :: * -> *) a. Applicative f => a -> f a
pure (Int32 -> SamplerYcbcrModelConversion
SamplerYcbcrModelConversion Int32
v)))