{-# language CPP #-}
module Vulkan.Core10.Enums.BlendFactor (BlendFactor( BLEND_FACTOR_ZERO
, BLEND_FACTOR_ONE
, BLEND_FACTOR_SRC_COLOR
, BLEND_FACTOR_ONE_MINUS_SRC_COLOR
, BLEND_FACTOR_DST_COLOR
, BLEND_FACTOR_ONE_MINUS_DST_COLOR
, BLEND_FACTOR_SRC_ALPHA
, BLEND_FACTOR_ONE_MINUS_SRC_ALPHA
, BLEND_FACTOR_DST_ALPHA
, BLEND_FACTOR_ONE_MINUS_DST_ALPHA
, BLEND_FACTOR_CONSTANT_COLOR
, BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR
, BLEND_FACTOR_CONSTANT_ALPHA
, BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA
, BLEND_FACTOR_SRC_ALPHA_SATURATE
, BLEND_FACTOR_SRC1_COLOR
, BLEND_FACTOR_ONE_MINUS_SRC1_COLOR
, BLEND_FACTOR_SRC1_ALPHA
, BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA
, ..
)) 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 BlendFactor = BlendFactor Int32
deriving newtype (BlendFactor -> BlendFactor -> Bool
(BlendFactor -> BlendFactor -> Bool)
-> (BlendFactor -> BlendFactor -> Bool) -> Eq BlendFactor
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BlendFactor -> BlendFactor -> Bool
$c/= :: BlendFactor -> BlendFactor -> Bool
== :: BlendFactor -> BlendFactor -> Bool
$c== :: BlendFactor -> BlendFactor -> Bool
Eq, Eq BlendFactor
Eq BlendFactor =>
(BlendFactor -> BlendFactor -> Ordering)
-> (BlendFactor -> BlendFactor -> Bool)
-> (BlendFactor -> BlendFactor -> Bool)
-> (BlendFactor -> BlendFactor -> Bool)
-> (BlendFactor -> BlendFactor -> Bool)
-> (BlendFactor -> BlendFactor -> BlendFactor)
-> (BlendFactor -> BlendFactor -> BlendFactor)
-> Ord BlendFactor
BlendFactor -> BlendFactor -> Bool
BlendFactor -> BlendFactor -> Ordering
BlendFactor -> BlendFactor -> BlendFactor
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 :: BlendFactor -> BlendFactor -> BlendFactor
$cmin :: BlendFactor -> BlendFactor -> BlendFactor
max :: BlendFactor -> BlendFactor -> BlendFactor
$cmax :: BlendFactor -> BlendFactor -> BlendFactor
>= :: BlendFactor -> BlendFactor -> Bool
$c>= :: BlendFactor -> BlendFactor -> Bool
> :: BlendFactor -> BlendFactor -> Bool
$c> :: BlendFactor -> BlendFactor -> Bool
<= :: BlendFactor -> BlendFactor -> Bool
$c<= :: BlendFactor -> BlendFactor -> Bool
< :: BlendFactor -> BlendFactor -> Bool
$c< :: BlendFactor -> BlendFactor -> Bool
compare :: BlendFactor -> BlendFactor -> Ordering
$ccompare :: BlendFactor -> BlendFactor -> Ordering
$cp1Ord :: Eq BlendFactor
Ord, Ptr b -> Int -> IO BlendFactor
Ptr b -> Int -> BlendFactor -> IO ()
Ptr BlendFactor -> IO BlendFactor
Ptr BlendFactor -> Int -> IO BlendFactor
Ptr BlendFactor -> Int -> BlendFactor -> IO ()
Ptr BlendFactor -> BlendFactor -> IO ()
BlendFactor -> Int
(BlendFactor -> Int)
-> (BlendFactor -> Int)
-> (Ptr BlendFactor -> Int -> IO BlendFactor)
-> (Ptr BlendFactor -> Int -> BlendFactor -> IO ())
-> (forall b. Ptr b -> Int -> IO BlendFactor)
-> (forall b. Ptr b -> Int -> BlendFactor -> IO ())
-> (Ptr BlendFactor -> IO BlendFactor)
-> (Ptr BlendFactor -> BlendFactor -> IO ())
-> Storable BlendFactor
forall b. Ptr b -> Int -> IO BlendFactor
forall b. Ptr b -> Int -> BlendFactor -> 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 BlendFactor -> BlendFactor -> IO ()
$cpoke :: Ptr BlendFactor -> BlendFactor -> IO ()
peek :: Ptr BlendFactor -> IO BlendFactor
$cpeek :: Ptr BlendFactor -> IO BlendFactor
pokeByteOff :: Ptr b -> Int -> BlendFactor -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> BlendFactor -> IO ()
peekByteOff :: Ptr b -> Int -> IO BlendFactor
$cpeekByteOff :: forall b. Ptr b -> Int -> IO BlendFactor
pokeElemOff :: Ptr BlendFactor -> Int -> BlendFactor -> IO ()
$cpokeElemOff :: Ptr BlendFactor -> Int -> BlendFactor -> IO ()
peekElemOff :: Ptr BlendFactor -> Int -> IO BlendFactor
$cpeekElemOff :: Ptr BlendFactor -> Int -> IO BlendFactor
alignment :: BlendFactor -> Int
$calignment :: BlendFactor -> Int
sizeOf :: BlendFactor -> Int
$csizeOf :: BlendFactor -> Int
Storable, BlendFactor
BlendFactor -> Zero BlendFactor
forall a. a -> Zero a
zero :: BlendFactor
$czero :: BlendFactor
Zero)
pattern $bBLEND_FACTOR_ZERO :: BlendFactor
$mBLEND_FACTOR_ZERO :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_ZERO = BlendFactor 0
pattern $bBLEND_FACTOR_ONE :: BlendFactor
$mBLEND_FACTOR_ONE :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_ONE = BlendFactor 1
pattern $bBLEND_FACTOR_SRC_COLOR :: BlendFactor
$mBLEND_FACTOR_SRC_COLOR :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_SRC_COLOR = BlendFactor 2
pattern $bBLEND_FACTOR_ONE_MINUS_SRC_COLOR :: BlendFactor
$mBLEND_FACTOR_ONE_MINUS_SRC_COLOR :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_ONE_MINUS_SRC_COLOR = BlendFactor 3
pattern $bBLEND_FACTOR_DST_COLOR :: BlendFactor
$mBLEND_FACTOR_DST_COLOR :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_DST_COLOR = BlendFactor 4
pattern $bBLEND_FACTOR_ONE_MINUS_DST_COLOR :: BlendFactor
$mBLEND_FACTOR_ONE_MINUS_DST_COLOR :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_ONE_MINUS_DST_COLOR = BlendFactor 5
pattern $bBLEND_FACTOR_SRC_ALPHA :: BlendFactor
$mBLEND_FACTOR_SRC_ALPHA :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_SRC_ALPHA = BlendFactor 6
pattern $bBLEND_FACTOR_ONE_MINUS_SRC_ALPHA :: BlendFactor
$mBLEND_FACTOR_ONE_MINUS_SRC_ALPHA :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_ONE_MINUS_SRC_ALPHA = BlendFactor 7
pattern $bBLEND_FACTOR_DST_ALPHA :: BlendFactor
$mBLEND_FACTOR_DST_ALPHA :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_DST_ALPHA = BlendFactor 8
pattern $bBLEND_FACTOR_ONE_MINUS_DST_ALPHA :: BlendFactor
$mBLEND_FACTOR_ONE_MINUS_DST_ALPHA :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_ONE_MINUS_DST_ALPHA = BlendFactor 9
pattern $bBLEND_FACTOR_CONSTANT_COLOR :: BlendFactor
$mBLEND_FACTOR_CONSTANT_COLOR :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_CONSTANT_COLOR = BlendFactor 10
pattern $bBLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR :: BlendFactor
$mBLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR = BlendFactor 11
pattern $bBLEND_FACTOR_CONSTANT_ALPHA :: BlendFactor
$mBLEND_FACTOR_CONSTANT_ALPHA :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_CONSTANT_ALPHA = BlendFactor 12
pattern $bBLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA :: BlendFactor
$mBLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA = BlendFactor 13
pattern $bBLEND_FACTOR_SRC_ALPHA_SATURATE :: BlendFactor
$mBLEND_FACTOR_SRC_ALPHA_SATURATE :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_SRC_ALPHA_SATURATE = BlendFactor 14
pattern $bBLEND_FACTOR_SRC1_COLOR :: BlendFactor
$mBLEND_FACTOR_SRC1_COLOR :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_SRC1_COLOR = BlendFactor 15
pattern $bBLEND_FACTOR_ONE_MINUS_SRC1_COLOR :: BlendFactor
$mBLEND_FACTOR_ONE_MINUS_SRC1_COLOR :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_ONE_MINUS_SRC1_COLOR = BlendFactor 16
pattern $bBLEND_FACTOR_SRC1_ALPHA :: BlendFactor
$mBLEND_FACTOR_SRC1_ALPHA :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_SRC1_ALPHA = BlendFactor 17
pattern $bBLEND_FACTOR_ONE_MINUS_SRC1_ALPHA :: BlendFactor
$mBLEND_FACTOR_ONE_MINUS_SRC1_ALPHA :: forall r. BlendFactor -> (Void# -> r) -> (Void# -> r) -> r
BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA = BlendFactor 18
{-# complete BLEND_FACTOR_ZERO,
BLEND_FACTOR_ONE,
BLEND_FACTOR_SRC_COLOR,
BLEND_FACTOR_ONE_MINUS_SRC_COLOR,
BLEND_FACTOR_DST_COLOR,
BLEND_FACTOR_ONE_MINUS_DST_COLOR,
BLEND_FACTOR_SRC_ALPHA,
BLEND_FACTOR_ONE_MINUS_SRC_ALPHA,
BLEND_FACTOR_DST_ALPHA,
BLEND_FACTOR_ONE_MINUS_DST_ALPHA,
BLEND_FACTOR_CONSTANT_COLOR,
BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR,
BLEND_FACTOR_CONSTANT_ALPHA,
BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA,
BLEND_FACTOR_SRC_ALPHA_SATURATE,
BLEND_FACTOR_SRC1_COLOR,
BLEND_FACTOR_ONE_MINUS_SRC1_COLOR,
BLEND_FACTOR_SRC1_ALPHA,
BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA :: BlendFactor #-}
conNameBlendFactor :: String
conNameBlendFactor :: String
conNameBlendFactor = "BlendFactor"
enumPrefixBlendFactor :: String
enumPrefixBlendFactor :: String
enumPrefixBlendFactor = "BLEND_FACTOR_"
showTableBlendFactor :: [(BlendFactor, String)]
showTableBlendFactor :: [(BlendFactor, String)]
showTableBlendFactor =
[ (BlendFactor
BLEND_FACTOR_ZERO , "ZERO")
, (BlendFactor
BLEND_FACTOR_ONE , "ONE")
, (BlendFactor
BLEND_FACTOR_SRC_COLOR , "SRC_COLOR")
, (BlendFactor
BLEND_FACTOR_ONE_MINUS_SRC_COLOR , "ONE_MINUS_SRC_COLOR")
, (BlendFactor
BLEND_FACTOR_DST_COLOR , "DST_COLOR")
, (BlendFactor
BLEND_FACTOR_ONE_MINUS_DST_COLOR , "ONE_MINUS_DST_COLOR")
, (BlendFactor
BLEND_FACTOR_SRC_ALPHA , "SRC_ALPHA")
, (BlendFactor
BLEND_FACTOR_ONE_MINUS_SRC_ALPHA , "ONE_MINUS_SRC_ALPHA")
, (BlendFactor
BLEND_FACTOR_DST_ALPHA , "DST_ALPHA")
, (BlendFactor
BLEND_FACTOR_ONE_MINUS_DST_ALPHA , "ONE_MINUS_DST_ALPHA")
, (BlendFactor
BLEND_FACTOR_CONSTANT_COLOR , "CONSTANT_COLOR")
, (BlendFactor
BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR, "ONE_MINUS_CONSTANT_COLOR")
, (BlendFactor
BLEND_FACTOR_CONSTANT_ALPHA , "CONSTANT_ALPHA")
, (BlendFactor
BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA, "ONE_MINUS_CONSTANT_ALPHA")
, (BlendFactor
BLEND_FACTOR_SRC_ALPHA_SATURATE , "SRC_ALPHA_SATURATE")
, (BlendFactor
BLEND_FACTOR_SRC1_COLOR , "SRC1_COLOR")
, (BlendFactor
BLEND_FACTOR_ONE_MINUS_SRC1_COLOR , "ONE_MINUS_SRC1_COLOR")
, (BlendFactor
BLEND_FACTOR_SRC1_ALPHA , "SRC1_ALPHA")
, (BlendFactor
BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA , "ONE_MINUS_SRC1_ALPHA")
]
instance Show BlendFactor where
showsPrec :: Int -> BlendFactor -> ShowS
showsPrec =
String
-> [(BlendFactor, String)]
-> String
-> (BlendFactor -> Int32)
-> (Int32 -> ShowS)
-> Int
-> BlendFactor
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixBlendFactor [(BlendFactor, String)]
showTableBlendFactor String
conNameBlendFactor (\(BlendFactor x :: Int32
x) -> Int32
x) (Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11)
instance Read BlendFactor where
readPrec :: ReadPrec BlendFactor
readPrec = String
-> [(BlendFactor, String)]
-> String
-> (Int32 -> BlendFactor)
-> ReadPrec BlendFactor
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixBlendFactor [(BlendFactor, String)]
showTableBlendFactor String
conNameBlendFactor Int32 -> BlendFactor
BlendFactor