{-# 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 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 SamplerYcbcrModelConversion = SamplerYcbcrModelConversion Int32
deriving newtype (SamplerYcbcrModelConversion -> SamplerYcbcrModelConversion -> Bool
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
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
Ord, Ptr SamplerYcbcrModelConversion -> IO SamplerYcbcrModelConversion
Ptr SamplerYcbcrModelConversion
-> Int -> IO SamplerYcbcrModelConversion
Ptr SamplerYcbcrModelConversion
-> Int -> SamplerYcbcrModelConversion -> IO ()
Ptr SamplerYcbcrModelConversion
-> SamplerYcbcrModelConversion -> IO ()
SamplerYcbcrModelConversion -> Int
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 :: forall b. Ptr b -> Int -> SamplerYcbcrModelConversion -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> SamplerYcbcrModelConversion -> IO ()
peekByteOff :: forall b. 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
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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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
#-}
conNameSamplerYcbcrModelConversion :: String
conNameSamplerYcbcrModelConversion :: String
conNameSamplerYcbcrModelConversion = String
"SamplerYcbcrModelConversion"
enumPrefixSamplerYcbcrModelConversion :: String
enumPrefixSamplerYcbcrModelConversion :: String
enumPrefixSamplerYcbcrModelConversion = String
"SAMPLER_YCBCR_MODEL_CONVERSION_"
showTableSamplerYcbcrModelConversion :: [(SamplerYcbcrModelConversion, String)]
showTableSamplerYcbcrModelConversion :: [(SamplerYcbcrModelConversion, String)]
showTableSamplerYcbcrModelConversion =
[
( SamplerYcbcrModelConversion
SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY
, String
"RGB_IDENTITY"
)
,
( SamplerYcbcrModelConversion
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY
, String
"YCBCR_IDENTITY"
)
,
( SamplerYcbcrModelConversion
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709
, String
"YCBCR_709"
)
,
( SamplerYcbcrModelConversion
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601
, String
"YCBCR_601"
)
,
( SamplerYcbcrModelConversion
SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020
, String
"YCBCR_2020"
)
]
instance Show SamplerYcbcrModelConversion where
showsPrec :: Int -> SamplerYcbcrModelConversion -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixSamplerYcbcrModelConversion
[(SamplerYcbcrModelConversion, String)]
showTableSamplerYcbcrModelConversion
String
conNameSamplerYcbcrModelConversion
(\(SamplerYcbcrModelConversion Int32
x) -> Int32
x)
(forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)
instance Read SamplerYcbcrModelConversion where
readPrec :: ReadPrec SamplerYcbcrModelConversion
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixSamplerYcbcrModelConversion
[(SamplerYcbcrModelConversion, String)]
showTableSamplerYcbcrModelConversion
String
conNameSamplerYcbcrModelConversion
Int32 -> SamplerYcbcrModelConversion
SamplerYcbcrModelConversion