{-# language CPP #-}
module Vulkan.Core11.Enums.TessellationDomainOrigin (TessellationDomainOrigin( TESSELLATION_DOMAIN_ORIGIN_UPPER_LEFT
, TESSELLATION_DOMAIN_ORIGIN_LOWER_LEFT
, ..
)) 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 TessellationDomainOrigin = TessellationDomainOrigin Int32
deriving newtype (TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
(TessellationDomainOrigin -> TessellationDomainOrigin -> Bool)
-> (TessellationDomainOrigin -> TessellationDomainOrigin -> Bool)
-> Eq TessellationDomainOrigin
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
$c/= :: TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
== :: TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
$c== :: TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
Eq, Eq TessellationDomainOrigin
Eq TessellationDomainOrigin =>
(TessellationDomainOrigin -> TessellationDomainOrigin -> Ordering)
-> (TessellationDomainOrigin -> TessellationDomainOrigin -> Bool)
-> (TessellationDomainOrigin -> TessellationDomainOrigin -> Bool)
-> (TessellationDomainOrigin -> TessellationDomainOrigin -> Bool)
-> (TessellationDomainOrigin -> TessellationDomainOrigin -> Bool)
-> (TessellationDomainOrigin
-> TessellationDomainOrigin -> TessellationDomainOrigin)
-> (TessellationDomainOrigin
-> TessellationDomainOrigin -> TessellationDomainOrigin)
-> Ord TessellationDomainOrigin
TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
TessellationDomainOrigin -> TessellationDomainOrigin -> Ordering
TessellationDomainOrigin
-> TessellationDomainOrigin -> TessellationDomainOrigin
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 :: TessellationDomainOrigin
-> TessellationDomainOrigin -> TessellationDomainOrigin
$cmin :: TessellationDomainOrigin
-> TessellationDomainOrigin -> TessellationDomainOrigin
max :: TessellationDomainOrigin
-> TessellationDomainOrigin -> TessellationDomainOrigin
$cmax :: TessellationDomainOrigin
-> TessellationDomainOrigin -> TessellationDomainOrigin
>= :: TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
$c>= :: TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
> :: TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
$c> :: TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
<= :: TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
$c<= :: TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
< :: TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
$c< :: TessellationDomainOrigin -> TessellationDomainOrigin -> Bool
compare :: TessellationDomainOrigin -> TessellationDomainOrigin -> Ordering
$ccompare :: TessellationDomainOrigin -> TessellationDomainOrigin -> Ordering
$cp1Ord :: Eq TessellationDomainOrigin
Ord, Ptr b -> Int -> IO TessellationDomainOrigin
Ptr b -> Int -> TessellationDomainOrigin -> IO ()
Ptr TessellationDomainOrigin -> IO TessellationDomainOrigin
Ptr TessellationDomainOrigin -> Int -> IO TessellationDomainOrigin
Ptr TessellationDomainOrigin
-> Int -> TessellationDomainOrigin -> IO ()
Ptr TessellationDomainOrigin -> TessellationDomainOrigin -> IO ()
TessellationDomainOrigin -> Int
(TessellationDomainOrigin -> Int)
-> (TessellationDomainOrigin -> Int)
-> (Ptr TessellationDomainOrigin
-> Int -> IO TessellationDomainOrigin)
-> (Ptr TessellationDomainOrigin
-> Int -> TessellationDomainOrigin -> IO ())
-> (forall b. Ptr b -> Int -> IO TessellationDomainOrigin)
-> (forall b. Ptr b -> Int -> TessellationDomainOrigin -> IO ())
-> (Ptr TessellationDomainOrigin -> IO TessellationDomainOrigin)
-> (Ptr TessellationDomainOrigin
-> TessellationDomainOrigin -> IO ())
-> Storable TessellationDomainOrigin
forall b. Ptr b -> Int -> IO TessellationDomainOrigin
forall b. Ptr b -> Int -> TessellationDomainOrigin -> 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 TessellationDomainOrigin -> TessellationDomainOrigin -> IO ()
$cpoke :: Ptr TessellationDomainOrigin -> TessellationDomainOrigin -> IO ()
peek :: Ptr TessellationDomainOrigin -> IO TessellationDomainOrigin
$cpeek :: Ptr TessellationDomainOrigin -> IO TessellationDomainOrigin
pokeByteOff :: Ptr b -> Int -> TessellationDomainOrigin -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> TessellationDomainOrigin -> IO ()
peekByteOff :: Ptr b -> Int -> IO TessellationDomainOrigin
$cpeekByteOff :: forall b. Ptr b -> Int -> IO TessellationDomainOrigin
pokeElemOff :: Ptr TessellationDomainOrigin
-> Int -> TessellationDomainOrigin -> IO ()
$cpokeElemOff :: Ptr TessellationDomainOrigin
-> Int -> TessellationDomainOrigin -> IO ()
peekElemOff :: Ptr TessellationDomainOrigin -> Int -> IO TessellationDomainOrigin
$cpeekElemOff :: Ptr TessellationDomainOrigin -> Int -> IO TessellationDomainOrigin
alignment :: TessellationDomainOrigin -> Int
$calignment :: TessellationDomainOrigin -> Int
sizeOf :: TessellationDomainOrigin -> Int
$csizeOf :: TessellationDomainOrigin -> Int
Storable, TessellationDomainOrigin
TessellationDomainOrigin -> Zero TessellationDomainOrigin
forall a. a -> Zero a
zero :: TessellationDomainOrigin
$czero :: TessellationDomainOrigin
Zero)
pattern $bTESSELLATION_DOMAIN_ORIGIN_UPPER_LEFT :: TessellationDomainOrigin
$mTESSELLATION_DOMAIN_ORIGIN_UPPER_LEFT :: forall r.
TessellationDomainOrigin -> (Void# -> r) -> (Void# -> r) -> r
TESSELLATION_DOMAIN_ORIGIN_UPPER_LEFT = TessellationDomainOrigin 0
pattern $bTESSELLATION_DOMAIN_ORIGIN_LOWER_LEFT :: TessellationDomainOrigin
$mTESSELLATION_DOMAIN_ORIGIN_LOWER_LEFT :: forall r.
TessellationDomainOrigin -> (Void# -> r) -> (Void# -> r) -> r
TESSELLATION_DOMAIN_ORIGIN_LOWER_LEFT = TessellationDomainOrigin 1
{-# complete TESSELLATION_DOMAIN_ORIGIN_UPPER_LEFT,
TESSELLATION_DOMAIN_ORIGIN_LOWER_LEFT :: TessellationDomainOrigin #-}
conNameTessellationDomainOrigin :: String
conNameTessellationDomainOrigin :: String
conNameTessellationDomainOrigin = "TessellationDomainOrigin"
enumPrefixTessellationDomainOrigin :: String
enumPrefixTessellationDomainOrigin :: String
enumPrefixTessellationDomainOrigin = "TESSELLATION_DOMAIN_ORIGIN_"
showTableTessellationDomainOrigin :: [(TessellationDomainOrigin, String)]
showTableTessellationDomainOrigin :: [(TessellationDomainOrigin, String)]
showTableTessellationDomainOrigin =
[(TessellationDomainOrigin
TESSELLATION_DOMAIN_ORIGIN_UPPER_LEFT, "UPPER_LEFT"), (TessellationDomainOrigin
TESSELLATION_DOMAIN_ORIGIN_LOWER_LEFT, "LOWER_LEFT")]
instance Show TessellationDomainOrigin where
showsPrec :: Int -> TessellationDomainOrigin -> ShowS
showsPrec = String
-> [(TessellationDomainOrigin, String)]
-> String
-> (TessellationDomainOrigin -> Int32)
-> (Int32 -> ShowS)
-> Int
-> TessellationDomainOrigin
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixTessellationDomainOrigin
[(TessellationDomainOrigin, String)]
showTableTessellationDomainOrigin
String
conNameTessellationDomainOrigin
(\(TessellationDomainOrigin x :: Int32
x) -> Int32
x)
(Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11)
instance Read TessellationDomainOrigin where
readPrec :: ReadPrec TessellationDomainOrigin
readPrec = String
-> [(TessellationDomainOrigin, String)]
-> String
-> (Int32 -> TessellationDomainOrigin)
-> ReadPrec TessellationDomainOrigin
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixTessellationDomainOrigin
[(TessellationDomainOrigin, String)]
showTableTessellationDomainOrigin
String
conNameTessellationDomainOrigin
Int32 -> TessellationDomainOrigin
TessellationDomainOrigin