{-# language CPP #-}
module Vulkan.Core11.Enums.SamplerYcbcrRange (SamplerYcbcrRange( SAMPLER_YCBCR_RANGE_ITU_FULL
, SAMPLER_YCBCR_RANGE_ITU_NARROW
, ..
)) 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 SamplerYcbcrRange = SamplerYcbcrRange Int32
deriving newtype (SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
(SamplerYcbcrRange -> SamplerYcbcrRange -> Bool)
-> (SamplerYcbcrRange -> SamplerYcbcrRange -> Bool)
-> Eq SamplerYcbcrRange
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
$c/= :: SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
== :: SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
$c== :: SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
Eq, Eq SamplerYcbcrRange
Eq SamplerYcbcrRange =>
(SamplerYcbcrRange -> SamplerYcbcrRange -> Ordering)
-> (SamplerYcbcrRange -> SamplerYcbcrRange -> Bool)
-> (SamplerYcbcrRange -> SamplerYcbcrRange -> Bool)
-> (SamplerYcbcrRange -> SamplerYcbcrRange -> Bool)
-> (SamplerYcbcrRange -> SamplerYcbcrRange -> Bool)
-> (SamplerYcbcrRange -> SamplerYcbcrRange -> SamplerYcbcrRange)
-> (SamplerYcbcrRange -> SamplerYcbcrRange -> SamplerYcbcrRange)
-> Ord SamplerYcbcrRange
SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
SamplerYcbcrRange -> SamplerYcbcrRange -> Ordering
SamplerYcbcrRange -> SamplerYcbcrRange -> SamplerYcbcrRange
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 :: SamplerYcbcrRange -> SamplerYcbcrRange -> SamplerYcbcrRange
$cmin :: SamplerYcbcrRange -> SamplerYcbcrRange -> SamplerYcbcrRange
max :: SamplerYcbcrRange -> SamplerYcbcrRange -> SamplerYcbcrRange
$cmax :: SamplerYcbcrRange -> SamplerYcbcrRange -> SamplerYcbcrRange
>= :: SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
$c>= :: SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
> :: SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
$c> :: SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
<= :: SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
$c<= :: SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
< :: SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
$c< :: SamplerYcbcrRange -> SamplerYcbcrRange -> Bool
compare :: SamplerYcbcrRange -> SamplerYcbcrRange -> Ordering
$ccompare :: SamplerYcbcrRange -> SamplerYcbcrRange -> Ordering
$cp1Ord :: Eq SamplerYcbcrRange
Ord, Ptr b -> Int -> IO SamplerYcbcrRange
Ptr b -> Int -> SamplerYcbcrRange -> IO ()
Ptr SamplerYcbcrRange -> IO SamplerYcbcrRange
Ptr SamplerYcbcrRange -> Int -> IO SamplerYcbcrRange
Ptr SamplerYcbcrRange -> Int -> SamplerYcbcrRange -> IO ()
Ptr SamplerYcbcrRange -> SamplerYcbcrRange -> IO ()
SamplerYcbcrRange -> Int
(SamplerYcbcrRange -> Int)
-> (SamplerYcbcrRange -> Int)
-> (Ptr SamplerYcbcrRange -> Int -> IO SamplerYcbcrRange)
-> (Ptr SamplerYcbcrRange -> Int -> SamplerYcbcrRange -> IO ())
-> (forall b. Ptr b -> Int -> IO SamplerYcbcrRange)
-> (forall b. Ptr b -> Int -> SamplerYcbcrRange -> IO ())
-> (Ptr SamplerYcbcrRange -> IO SamplerYcbcrRange)
-> (Ptr SamplerYcbcrRange -> SamplerYcbcrRange -> IO ())
-> Storable SamplerYcbcrRange
forall b. Ptr b -> Int -> IO SamplerYcbcrRange
forall b. Ptr b -> Int -> SamplerYcbcrRange -> 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 SamplerYcbcrRange -> SamplerYcbcrRange -> IO ()
$cpoke :: Ptr SamplerYcbcrRange -> SamplerYcbcrRange -> IO ()
peek :: Ptr SamplerYcbcrRange -> IO SamplerYcbcrRange
$cpeek :: Ptr SamplerYcbcrRange -> IO SamplerYcbcrRange
pokeByteOff :: Ptr b -> Int -> SamplerYcbcrRange -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> SamplerYcbcrRange -> IO ()
peekByteOff :: Ptr b -> Int -> IO SamplerYcbcrRange
$cpeekByteOff :: forall b. Ptr b -> Int -> IO SamplerYcbcrRange
pokeElemOff :: Ptr SamplerYcbcrRange -> Int -> SamplerYcbcrRange -> IO ()
$cpokeElemOff :: Ptr SamplerYcbcrRange -> Int -> SamplerYcbcrRange -> IO ()
peekElemOff :: Ptr SamplerYcbcrRange -> Int -> IO SamplerYcbcrRange
$cpeekElemOff :: Ptr SamplerYcbcrRange -> Int -> IO SamplerYcbcrRange
alignment :: SamplerYcbcrRange -> Int
$calignment :: SamplerYcbcrRange -> Int
sizeOf :: SamplerYcbcrRange -> Int
$csizeOf :: SamplerYcbcrRange -> Int
Storable, SamplerYcbcrRange
SamplerYcbcrRange -> Zero SamplerYcbcrRange
forall a. a -> Zero a
zero :: SamplerYcbcrRange
$czero :: SamplerYcbcrRange
Zero)
pattern $bSAMPLER_YCBCR_RANGE_ITU_FULL :: SamplerYcbcrRange
$mSAMPLER_YCBCR_RANGE_ITU_FULL :: forall r. SamplerYcbcrRange -> (Void# -> r) -> (Void# -> r) -> r
SAMPLER_YCBCR_RANGE_ITU_FULL = SamplerYcbcrRange 0
pattern $bSAMPLER_YCBCR_RANGE_ITU_NARROW :: SamplerYcbcrRange
$mSAMPLER_YCBCR_RANGE_ITU_NARROW :: forall r. SamplerYcbcrRange -> (Void# -> r) -> (Void# -> r) -> r
SAMPLER_YCBCR_RANGE_ITU_NARROW = SamplerYcbcrRange 1
{-# complete SAMPLER_YCBCR_RANGE_ITU_FULL,
SAMPLER_YCBCR_RANGE_ITU_NARROW :: SamplerYcbcrRange #-}
conNameSamplerYcbcrRange :: String
conNameSamplerYcbcrRange :: String
conNameSamplerYcbcrRange = "SamplerYcbcrRange"
enumPrefixSamplerYcbcrRange :: String
enumPrefixSamplerYcbcrRange :: String
enumPrefixSamplerYcbcrRange = "SAMPLER_YCBCR_RANGE_ITU_"
showTableSamplerYcbcrRange :: [(SamplerYcbcrRange, String)]
showTableSamplerYcbcrRange :: [(SamplerYcbcrRange, String)]
showTableSamplerYcbcrRange = [(SamplerYcbcrRange
SAMPLER_YCBCR_RANGE_ITU_FULL, "FULL"), (SamplerYcbcrRange
SAMPLER_YCBCR_RANGE_ITU_NARROW, "NARROW")]
instance Show SamplerYcbcrRange where
showsPrec :: Int -> SamplerYcbcrRange -> ShowS
showsPrec = String
-> [(SamplerYcbcrRange, String)]
-> String
-> (SamplerYcbcrRange -> Int32)
-> (Int32 -> ShowS)
-> Int
-> SamplerYcbcrRange
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixSamplerYcbcrRange
[(SamplerYcbcrRange, String)]
showTableSamplerYcbcrRange
String
conNameSamplerYcbcrRange
(\(SamplerYcbcrRange x :: Int32
x) -> Int32
x)
(Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11)
instance Read SamplerYcbcrRange where
readPrec :: ReadPrec SamplerYcbcrRange
readPrec =
String
-> [(SamplerYcbcrRange, String)]
-> String
-> (Int32 -> SamplerYcbcrRange)
-> ReadPrec SamplerYcbcrRange
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixSamplerYcbcrRange [(SamplerYcbcrRange, String)]
showTableSamplerYcbcrRange String
conNameSamplerYcbcrRange Int32 -> SamplerYcbcrRange
SamplerYcbcrRange