{-# language CPP #-}
module Vulkan.Core10.Enums.DynamicState (DynamicState( DYNAMIC_STATE_VIEWPORT
, DYNAMIC_STATE_SCISSOR
, DYNAMIC_STATE_LINE_WIDTH
, DYNAMIC_STATE_DEPTH_BIAS
, DYNAMIC_STATE_BLEND_CONSTANTS
, DYNAMIC_STATE_DEPTH_BOUNDS
, DYNAMIC_STATE_STENCIL_COMPARE_MASK
, DYNAMIC_STATE_STENCIL_WRITE_MASK
, DYNAMIC_STATE_STENCIL_REFERENCE
, DYNAMIC_STATE_LINE_STIPPLE_EXT
, DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV
, DYNAMIC_STATE_VIEWPORT_COARSE_SAMPLE_ORDER_NV
, DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV
, DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
, DYNAMIC_STATE_DISCARD_RECTANGLE_EXT
, DYNAMIC_STATE_VIEWPORT_W_SCALING_NV
, ..
)) where
import GHC.Read (choose)
import GHC.Read (expectP)
import GHC.Read (parens)
import GHC.Show (showParen)
import GHC.Show (showString)
import GHC.Show (showsPrec)
import Text.ParserCombinators.ReadPrec ((+++))
import Text.ParserCombinators.ReadPrec (prec)
import Text.ParserCombinators.ReadPrec (step)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import Text.Read.Lex (Lexeme(Ident))
import Vulkan.Zero (Zero)
newtype DynamicState = DynamicState Int32
deriving newtype (DynamicState -> DynamicState -> Bool
(DynamicState -> DynamicState -> Bool)
-> (DynamicState -> DynamicState -> Bool) -> Eq DynamicState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DynamicState -> DynamicState -> Bool
$c/= :: DynamicState -> DynamicState -> Bool
== :: DynamicState -> DynamicState -> Bool
$c== :: DynamicState -> DynamicState -> Bool
Eq, Eq DynamicState
Eq DynamicState =>
(DynamicState -> DynamicState -> Ordering)
-> (DynamicState -> DynamicState -> Bool)
-> (DynamicState -> DynamicState -> Bool)
-> (DynamicState -> DynamicState -> Bool)
-> (DynamicState -> DynamicState -> Bool)
-> (DynamicState -> DynamicState -> DynamicState)
-> (DynamicState -> DynamicState -> DynamicState)
-> Ord DynamicState
DynamicState -> DynamicState -> Bool
DynamicState -> DynamicState -> Ordering
DynamicState -> DynamicState -> DynamicState
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 :: DynamicState -> DynamicState -> DynamicState
$cmin :: DynamicState -> DynamicState -> DynamicState
max :: DynamicState -> DynamicState -> DynamicState
$cmax :: DynamicState -> DynamicState -> DynamicState
>= :: DynamicState -> DynamicState -> Bool
$c>= :: DynamicState -> DynamicState -> Bool
> :: DynamicState -> DynamicState -> Bool
$c> :: DynamicState -> DynamicState -> Bool
<= :: DynamicState -> DynamicState -> Bool
$c<= :: DynamicState -> DynamicState -> Bool
< :: DynamicState -> DynamicState -> Bool
$c< :: DynamicState -> DynamicState -> Bool
compare :: DynamicState -> DynamicState -> Ordering
$ccompare :: DynamicState -> DynamicState -> Ordering
$cp1Ord :: Eq DynamicState
Ord, Ptr b -> Int -> IO DynamicState
Ptr b -> Int -> DynamicState -> IO ()
Ptr DynamicState -> IO DynamicState
Ptr DynamicState -> Int -> IO DynamicState
Ptr DynamicState -> Int -> DynamicState -> IO ()
Ptr DynamicState -> DynamicState -> IO ()
DynamicState -> Int
(DynamicState -> Int)
-> (DynamicState -> Int)
-> (Ptr DynamicState -> Int -> IO DynamicState)
-> (Ptr DynamicState -> Int -> DynamicState -> IO ())
-> (forall b. Ptr b -> Int -> IO DynamicState)
-> (forall b. Ptr b -> Int -> DynamicState -> IO ())
-> (Ptr DynamicState -> IO DynamicState)
-> (Ptr DynamicState -> DynamicState -> IO ())
-> Storable DynamicState
forall b. Ptr b -> Int -> IO DynamicState
forall b. Ptr b -> Int -> DynamicState -> 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 DynamicState -> DynamicState -> IO ()
$cpoke :: Ptr DynamicState -> DynamicState -> IO ()
peek :: Ptr DynamicState -> IO DynamicState
$cpeek :: Ptr DynamicState -> IO DynamicState
pokeByteOff :: Ptr b -> Int -> DynamicState -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> DynamicState -> IO ()
peekByteOff :: Ptr b -> Int -> IO DynamicState
$cpeekByteOff :: forall b. Ptr b -> Int -> IO DynamicState
pokeElemOff :: Ptr DynamicState -> Int -> DynamicState -> IO ()
$cpokeElemOff :: Ptr DynamicState -> Int -> DynamicState -> IO ()
peekElemOff :: Ptr DynamicState -> Int -> IO DynamicState
$cpeekElemOff :: Ptr DynamicState -> Int -> IO DynamicState
alignment :: DynamicState -> Int
$calignment :: DynamicState -> Int
sizeOf :: DynamicState -> Int
$csizeOf :: DynamicState -> Int
Storable, DynamicState
DynamicState -> Zero DynamicState
forall a. a -> Zero a
zero :: DynamicState
$czero :: DynamicState
Zero)
pattern $bDYNAMIC_STATE_VIEWPORT :: DynamicState
$mDYNAMIC_STATE_VIEWPORT :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_VIEWPORT = DynamicState 0
pattern $bDYNAMIC_STATE_SCISSOR :: DynamicState
$mDYNAMIC_STATE_SCISSOR :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_SCISSOR = DynamicState 1
pattern $bDYNAMIC_STATE_LINE_WIDTH :: DynamicState
$mDYNAMIC_STATE_LINE_WIDTH :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_LINE_WIDTH = DynamicState 2
pattern $bDYNAMIC_STATE_DEPTH_BIAS :: DynamicState
$mDYNAMIC_STATE_DEPTH_BIAS :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_DEPTH_BIAS = DynamicState 3
pattern $bDYNAMIC_STATE_BLEND_CONSTANTS :: DynamicState
$mDYNAMIC_STATE_BLEND_CONSTANTS :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_BLEND_CONSTANTS = DynamicState 4
pattern $bDYNAMIC_STATE_DEPTH_BOUNDS :: DynamicState
$mDYNAMIC_STATE_DEPTH_BOUNDS :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_DEPTH_BOUNDS = DynamicState 5
pattern $bDYNAMIC_STATE_STENCIL_COMPARE_MASK :: DynamicState
$mDYNAMIC_STATE_STENCIL_COMPARE_MASK :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_STENCIL_COMPARE_MASK = DynamicState 6
pattern $bDYNAMIC_STATE_STENCIL_WRITE_MASK :: DynamicState
$mDYNAMIC_STATE_STENCIL_WRITE_MASK :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_STENCIL_WRITE_MASK = DynamicState 7
pattern $bDYNAMIC_STATE_STENCIL_REFERENCE :: DynamicState
$mDYNAMIC_STATE_STENCIL_REFERENCE :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_STENCIL_REFERENCE = DynamicState 8
pattern $bDYNAMIC_STATE_LINE_STIPPLE_EXT :: DynamicState
$mDYNAMIC_STATE_LINE_STIPPLE_EXT :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_LINE_STIPPLE_EXT = DynamicState 1000259000
pattern $bDYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV :: DynamicState
$mDYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV = DynamicState 1000205001
pattern $bDYNAMIC_STATE_VIEWPORT_COARSE_SAMPLE_ORDER_NV :: DynamicState
$mDYNAMIC_STATE_VIEWPORT_COARSE_SAMPLE_ORDER_NV :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_VIEWPORT_COARSE_SAMPLE_ORDER_NV = DynamicState 1000164006
pattern $bDYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV :: DynamicState
$mDYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV = DynamicState 1000164004
pattern $bDYNAMIC_STATE_SAMPLE_LOCATIONS_EXT :: DynamicState
$mDYNAMIC_STATE_SAMPLE_LOCATIONS_EXT :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT = DynamicState 1000143000
pattern $bDYNAMIC_STATE_DISCARD_RECTANGLE_EXT :: DynamicState
$mDYNAMIC_STATE_DISCARD_RECTANGLE_EXT :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_DISCARD_RECTANGLE_EXT = DynamicState 1000099000
pattern $bDYNAMIC_STATE_VIEWPORT_W_SCALING_NV :: DynamicState
$mDYNAMIC_STATE_VIEWPORT_W_SCALING_NV :: forall r. DynamicState -> (Void# -> r) -> (Void# -> r) -> r
DYNAMIC_STATE_VIEWPORT_W_SCALING_NV = DynamicState 1000087000
{-# complete DYNAMIC_STATE_VIEWPORT,
DYNAMIC_STATE_SCISSOR,
DYNAMIC_STATE_LINE_WIDTH,
DYNAMIC_STATE_DEPTH_BIAS,
DYNAMIC_STATE_BLEND_CONSTANTS,
DYNAMIC_STATE_DEPTH_BOUNDS,
DYNAMIC_STATE_STENCIL_COMPARE_MASK,
DYNAMIC_STATE_STENCIL_WRITE_MASK,
DYNAMIC_STATE_STENCIL_REFERENCE,
DYNAMIC_STATE_LINE_STIPPLE_EXT,
DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV,
DYNAMIC_STATE_VIEWPORT_COARSE_SAMPLE_ORDER_NV,
DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV,
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT,
DYNAMIC_STATE_DISCARD_RECTANGLE_EXT,
DYNAMIC_STATE_VIEWPORT_W_SCALING_NV :: DynamicState #-}
instance Show DynamicState where
showsPrec :: Int -> DynamicState -> ShowS
showsPrec p :: Int
p = \case
DYNAMIC_STATE_VIEWPORT -> String -> ShowS
showString "DYNAMIC_STATE_VIEWPORT"
DYNAMIC_STATE_SCISSOR -> String -> ShowS
showString "DYNAMIC_STATE_SCISSOR"
DYNAMIC_STATE_LINE_WIDTH -> String -> ShowS
showString "DYNAMIC_STATE_LINE_WIDTH"
DYNAMIC_STATE_DEPTH_BIAS -> String -> ShowS
showString "DYNAMIC_STATE_DEPTH_BIAS"
DYNAMIC_STATE_BLEND_CONSTANTS -> String -> ShowS
showString "DYNAMIC_STATE_BLEND_CONSTANTS"
DYNAMIC_STATE_DEPTH_BOUNDS -> String -> ShowS
showString "DYNAMIC_STATE_DEPTH_BOUNDS"
DYNAMIC_STATE_STENCIL_COMPARE_MASK -> String -> ShowS
showString "DYNAMIC_STATE_STENCIL_COMPARE_MASK"
DYNAMIC_STATE_STENCIL_WRITE_MASK -> String -> ShowS
showString "DYNAMIC_STATE_STENCIL_WRITE_MASK"
DYNAMIC_STATE_STENCIL_REFERENCE -> String -> ShowS
showString "DYNAMIC_STATE_STENCIL_REFERENCE"
DYNAMIC_STATE_LINE_STIPPLE_EXT -> String -> ShowS
showString "DYNAMIC_STATE_LINE_STIPPLE_EXT"
DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV -> String -> ShowS
showString "DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV"
DYNAMIC_STATE_VIEWPORT_COARSE_SAMPLE_ORDER_NV -> String -> ShowS
showString "DYNAMIC_STATE_VIEWPORT_COARSE_SAMPLE_ORDER_NV"
DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV -> String -> ShowS
showString "DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV"
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT -> String -> ShowS
showString "DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT"
DYNAMIC_STATE_DISCARD_RECTANGLE_EXT -> String -> ShowS
showString "DYNAMIC_STATE_DISCARD_RECTANGLE_EXT"
DYNAMIC_STATE_VIEWPORT_W_SCALING_NV -> String -> ShowS
showString "DYNAMIC_STATE_VIEWPORT_W_SCALING_NV"
DynamicState x :: Int32
x -> Bool -> ShowS -> ShowS
showParen (Int
p Int -> Int -> Bool
forall a. Ord a => a -> a -> Bool
>= 11) (String -> ShowS
showString "DynamicState " ShowS -> ShowS -> ShowS
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11 Int32
x)
instance Read DynamicState where
readPrec :: ReadPrec DynamicState
readPrec = ReadPrec DynamicState -> ReadPrec DynamicState
forall a. ReadPrec a -> ReadPrec a
parens ([(String, ReadPrec DynamicState)] -> ReadPrec DynamicState
forall a. [(String, ReadPrec a)] -> ReadPrec a
choose [("DYNAMIC_STATE_VIEWPORT", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_VIEWPORT)
, ("DYNAMIC_STATE_SCISSOR", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_SCISSOR)
, ("DYNAMIC_STATE_LINE_WIDTH", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_LINE_WIDTH)
, ("DYNAMIC_STATE_DEPTH_BIAS", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_DEPTH_BIAS)
, ("DYNAMIC_STATE_BLEND_CONSTANTS", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_BLEND_CONSTANTS)
, ("DYNAMIC_STATE_DEPTH_BOUNDS", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_DEPTH_BOUNDS)
, ("DYNAMIC_STATE_STENCIL_COMPARE_MASK", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_STENCIL_COMPARE_MASK)
, ("DYNAMIC_STATE_STENCIL_WRITE_MASK", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_STENCIL_WRITE_MASK)
, ("DYNAMIC_STATE_STENCIL_REFERENCE", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_STENCIL_REFERENCE)
, ("DYNAMIC_STATE_LINE_STIPPLE_EXT", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_LINE_STIPPLE_EXT)
, ("DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV)
, ("DYNAMIC_STATE_VIEWPORT_COARSE_SAMPLE_ORDER_NV", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_VIEWPORT_COARSE_SAMPLE_ORDER_NV)
, ("DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV)
, ("DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT)
, ("DYNAMIC_STATE_DISCARD_RECTANGLE_EXT", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_DISCARD_RECTANGLE_EXT)
, ("DYNAMIC_STATE_VIEWPORT_W_SCALING_NV", DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure DynamicState
DYNAMIC_STATE_VIEWPORT_W_SCALING_NV)]
ReadPrec DynamicState
-> ReadPrec DynamicState -> ReadPrec DynamicState
forall a. ReadPrec a -> ReadPrec a -> ReadPrec a
+++
Int -> ReadPrec DynamicState -> ReadPrec DynamicState
forall a. Int -> ReadPrec a -> ReadPrec a
prec 10 (do
Lexeme -> ReadPrec ()
expectP (String -> Lexeme
Ident "DynamicState")
Int32
v <- ReadPrec Int32 -> ReadPrec Int32
forall a. ReadPrec a -> ReadPrec a
step ReadPrec Int32
forall a. Read a => ReadPrec a
readPrec
DynamicState -> ReadPrec DynamicState
forall (f :: * -> *) a. Applicative f => a -> f a
pure (Int32 -> DynamicState
DynamicState Int32
v)))