{-# language CPP #-}
module Vulkan.Core11.Enums.ChromaLocation (ChromaLocation( CHROMA_LOCATION_COSITED_EVEN
, CHROMA_LOCATION_MIDPOINT
, ..
)) 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 ChromaLocation = ChromaLocation Int32
deriving newtype (ChromaLocation -> ChromaLocation -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChromaLocation -> ChromaLocation -> Bool
$c/= :: ChromaLocation -> ChromaLocation -> Bool
== :: ChromaLocation -> ChromaLocation -> Bool
$c== :: ChromaLocation -> ChromaLocation -> Bool
Eq, Eq ChromaLocation
ChromaLocation -> ChromaLocation -> Bool
ChromaLocation -> ChromaLocation -> Ordering
ChromaLocation -> ChromaLocation -> ChromaLocation
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 :: ChromaLocation -> ChromaLocation -> ChromaLocation
$cmin :: ChromaLocation -> ChromaLocation -> ChromaLocation
max :: ChromaLocation -> ChromaLocation -> ChromaLocation
$cmax :: ChromaLocation -> ChromaLocation -> ChromaLocation
>= :: ChromaLocation -> ChromaLocation -> Bool
$c>= :: ChromaLocation -> ChromaLocation -> Bool
> :: ChromaLocation -> ChromaLocation -> Bool
$c> :: ChromaLocation -> ChromaLocation -> Bool
<= :: ChromaLocation -> ChromaLocation -> Bool
$c<= :: ChromaLocation -> ChromaLocation -> Bool
< :: ChromaLocation -> ChromaLocation -> Bool
$c< :: ChromaLocation -> ChromaLocation -> Bool
compare :: ChromaLocation -> ChromaLocation -> Ordering
$ccompare :: ChromaLocation -> ChromaLocation -> Ordering
Ord, Ptr ChromaLocation -> IO ChromaLocation
Ptr ChromaLocation -> Int -> IO ChromaLocation
Ptr ChromaLocation -> Int -> ChromaLocation -> IO ()
Ptr ChromaLocation -> ChromaLocation -> IO ()
ChromaLocation -> Int
forall b. Ptr b -> Int -> IO ChromaLocation
forall b. Ptr b -> Int -> ChromaLocation -> 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 ChromaLocation -> ChromaLocation -> IO ()
$cpoke :: Ptr ChromaLocation -> ChromaLocation -> IO ()
peek :: Ptr ChromaLocation -> IO ChromaLocation
$cpeek :: Ptr ChromaLocation -> IO ChromaLocation
pokeByteOff :: forall b. Ptr b -> Int -> ChromaLocation -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> ChromaLocation -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO ChromaLocation
$cpeekByteOff :: forall b. Ptr b -> Int -> IO ChromaLocation
pokeElemOff :: Ptr ChromaLocation -> Int -> ChromaLocation -> IO ()
$cpokeElemOff :: Ptr ChromaLocation -> Int -> ChromaLocation -> IO ()
peekElemOff :: Ptr ChromaLocation -> Int -> IO ChromaLocation
$cpeekElemOff :: Ptr ChromaLocation -> Int -> IO ChromaLocation
alignment :: ChromaLocation -> Int
$calignment :: ChromaLocation -> Int
sizeOf :: ChromaLocation -> Int
$csizeOf :: ChromaLocation -> Int
Storable, ChromaLocation
forall a. a -> Zero a
zero :: ChromaLocation
$czero :: ChromaLocation
Zero)
pattern $bCHROMA_LOCATION_COSITED_EVEN :: ChromaLocation
$mCHROMA_LOCATION_COSITED_EVEN :: forall {r}. ChromaLocation -> ((# #) -> r) -> ((# #) -> r) -> r
CHROMA_LOCATION_COSITED_EVEN = ChromaLocation 0
pattern $bCHROMA_LOCATION_MIDPOINT :: ChromaLocation
$mCHROMA_LOCATION_MIDPOINT :: forall {r}. ChromaLocation -> ((# #) -> r) -> ((# #) -> r) -> r
CHROMA_LOCATION_MIDPOINT = ChromaLocation 1
{-# COMPLETE
CHROMA_LOCATION_COSITED_EVEN
, CHROMA_LOCATION_MIDPOINT ::
ChromaLocation
#-}
conNameChromaLocation :: String
conNameChromaLocation :: String
conNameChromaLocation = String
"ChromaLocation"
enumPrefixChromaLocation :: String
enumPrefixChromaLocation :: String
enumPrefixChromaLocation = String
"CHROMA_LOCATION_"
showTableChromaLocation :: [(ChromaLocation, String)]
showTableChromaLocation :: [(ChromaLocation, String)]
showTableChromaLocation =
[ (ChromaLocation
CHROMA_LOCATION_COSITED_EVEN, String
"COSITED_EVEN")
, (ChromaLocation
CHROMA_LOCATION_MIDPOINT, String
"MIDPOINT")
]
instance Show ChromaLocation where
showsPrec :: Int -> ChromaLocation -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixChromaLocation
[(ChromaLocation, String)]
showTableChromaLocation
String
conNameChromaLocation
(\(ChromaLocation Int32
x) -> Int32
x)
(forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)
instance Read ChromaLocation where
readPrec :: ReadPrec ChromaLocation
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixChromaLocation
[(ChromaLocation, String)]
showTableChromaLocation
String
conNameChromaLocation
Int32 -> ChromaLocation
ChromaLocation