{-# language CPP #-}
module Vulkan.Core10.Enums.PipelineDepthStencilStateCreateFlagBits ( PipelineDepthStencilStateCreateFlags
, PipelineDepthStencilStateCreateFlagBits( PIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_EXT
, PIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_DEPTH_ACCESS_BIT_EXT
, ..
)
) where
import Data.Bits (Bits)
import Data.Bits (FiniteBits)
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import GHC.Show (showString)
import Numeric (showHex)
import Vulkan.Zero (Zero)
import Foreign.Storable (Storable)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
import Vulkan.Core10.FundamentalTypes (Flags)
type PipelineDepthStencilStateCreateFlags = PipelineDepthStencilStateCreateFlagBits
newtype PipelineDepthStencilStateCreateFlagBits = PipelineDepthStencilStateCreateFlagBits Flags
deriving newtype (PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
$c/= :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
== :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
$c== :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
Eq, Eq PipelineDepthStencilStateCreateFlagBits
PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Ordering
PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
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 :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
$cmin :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
max :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
$cmax :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
>= :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
$c>= :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
> :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
$c> :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
<= :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
$c<= :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
< :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
$c< :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Bool
compare :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Ordering
$ccompare :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> Ordering
Ord, Ptr PipelineDepthStencilStateCreateFlagBits
-> IO PipelineDepthStencilStateCreateFlagBits
Ptr PipelineDepthStencilStateCreateFlagBits
-> Int -> IO PipelineDepthStencilStateCreateFlagBits
Ptr PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits -> IO ()
Ptr PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> IO ()
PipelineDepthStencilStateCreateFlagBits -> Int
forall b.
Ptr b -> Int -> IO PipelineDepthStencilStateCreateFlagBits
forall b.
Ptr b -> Int -> PipelineDepthStencilStateCreateFlagBits -> 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 PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> IO ()
$cpoke :: Ptr PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits -> IO ()
peek :: Ptr PipelineDepthStencilStateCreateFlagBits
-> IO PipelineDepthStencilStateCreateFlagBits
$cpeek :: Ptr PipelineDepthStencilStateCreateFlagBits
-> IO PipelineDepthStencilStateCreateFlagBits
pokeByteOff :: forall b.
Ptr b -> Int -> PipelineDepthStencilStateCreateFlagBits -> IO ()
$cpokeByteOff :: forall b.
Ptr b -> Int -> PipelineDepthStencilStateCreateFlagBits -> IO ()
peekByteOff :: forall b.
Ptr b -> Int -> IO PipelineDepthStencilStateCreateFlagBits
$cpeekByteOff :: forall b.
Ptr b -> Int -> IO PipelineDepthStencilStateCreateFlagBits
pokeElemOff :: Ptr PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits -> IO ()
$cpokeElemOff :: Ptr PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits -> IO ()
peekElemOff :: Ptr PipelineDepthStencilStateCreateFlagBits
-> Int -> IO PipelineDepthStencilStateCreateFlagBits
$cpeekElemOff :: Ptr PipelineDepthStencilStateCreateFlagBits
-> Int -> IO PipelineDepthStencilStateCreateFlagBits
alignment :: PipelineDepthStencilStateCreateFlagBits -> Int
$calignment :: PipelineDepthStencilStateCreateFlagBits -> Int
sizeOf :: PipelineDepthStencilStateCreateFlagBits -> Int
$csizeOf :: PipelineDepthStencilStateCreateFlagBits -> Int
Storable, PipelineDepthStencilStateCreateFlagBits
forall a. a -> Zero a
zero :: PipelineDepthStencilStateCreateFlagBits
$czero :: PipelineDepthStencilStateCreateFlagBits
Zero, Eq PipelineDepthStencilStateCreateFlagBits
PipelineDepthStencilStateCreateFlagBits
Int -> PipelineDepthStencilStateCreateFlagBits
PipelineDepthStencilStateCreateFlagBits -> Bool
PipelineDepthStencilStateCreateFlagBits -> Int
PipelineDepthStencilStateCreateFlagBits -> Maybe Int
PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
PipelineDepthStencilStateCreateFlagBits -> Int -> Bool
PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
forall a.
Eq a
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> a
-> (Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> Bool)
-> (a -> Maybe Int)
-> (a -> Int)
-> (a -> Bool)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int)
-> Bits a
popCount :: PipelineDepthStencilStateCreateFlagBits -> Int
$cpopCount :: PipelineDepthStencilStateCreateFlagBits -> Int
rotateR :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
$crotateR :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
rotateL :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
$crotateL :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
unsafeShiftR :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
$cunsafeShiftR :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
shiftR :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
$cshiftR :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
unsafeShiftL :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
$cunsafeShiftL :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
shiftL :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
$cshiftL :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
isSigned :: PipelineDepthStencilStateCreateFlagBits -> Bool
$cisSigned :: PipelineDepthStencilStateCreateFlagBits -> Bool
bitSize :: PipelineDepthStencilStateCreateFlagBits -> Int
$cbitSize :: PipelineDepthStencilStateCreateFlagBits -> Int
bitSizeMaybe :: PipelineDepthStencilStateCreateFlagBits -> Maybe Int
$cbitSizeMaybe :: PipelineDepthStencilStateCreateFlagBits -> Maybe Int
testBit :: PipelineDepthStencilStateCreateFlagBits -> Int -> Bool
$ctestBit :: PipelineDepthStencilStateCreateFlagBits -> Int -> Bool
complementBit :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
$ccomplementBit :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
clearBit :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
$cclearBit :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
setBit :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
$csetBit :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
bit :: Int -> PipelineDepthStencilStateCreateFlagBits
$cbit :: Int -> PipelineDepthStencilStateCreateFlagBits
zeroBits :: PipelineDepthStencilStateCreateFlagBits
$czeroBits :: PipelineDepthStencilStateCreateFlagBits
rotate :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
$crotate :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
shift :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
$cshift :: PipelineDepthStencilStateCreateFlagBits
-> Int -> PipelineDepthStencilStateCreateFlagBits
complement :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
$ccomplement :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
xor :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
$cxor :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
.|. :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
$c.|. :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
.&. :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
$c.&. :: PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
-> PipelineDepthStencilStateCreateFlagBits
Bits, Bits PipelineDepthStencilStateCreateFlagBits
PipelineDepthStencilStateCreateFlagBits -> Int
forall b.
Bits b -> (b -> Int) -> (b -> Int) -> (b -> Int) -> FiniteBits b
countTrailingZeros :: PipelineDepthStencilStateCreateFlagBits -> Int
$ccountTrailingZeros :: PipelineDepthStencilStateCreateFlagBits -> Int
countLeadingZeros :: PipelineDepthStencilStateCreateFlagBits -> Int
$ccountLeadingZeros :: PipelineDepthStencilStateCreateFlagBits -> Int
finiteBitSize :: PipelineDepthStencilStateCreateFlagBits -> Int
$cfiniteBitSize :: PipelineDepthStencilStateCreateFlagBits -> Int
FiniteBits)
pattern $bPIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_EXT :: PipelineDepthStencilStateCreateFlagBits
$mPIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_EXT :: forall {r}.
PipelineDepthStencilStateCreateFlagBits
-> ((# #) -> r) -> ((# #) -> r) -> r
PIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_EXT = PipelineDepthStencilStateCreateFlagBits 0x00000002
pattern $bPIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_DEPTH_ACCESS_BIT_EXT :: PipelineDepthStencilStateCreateFlagBits
$mPIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_DEPTH_ACCESS_BIT_EXT :: forall {r}.
PipelineDepthStencilStateCreateFlagBits
-> ((# #) -> r) -> ((# #) -> r) -> r
PIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_DEPTH_ACCESS_BIT_EXT = PipelineDepthStencilStateCreateFlagBits 0x00000001
conNamePipelineDepthStencilStateCreateFlagBits :: String
conNamePipelineDepthStencilStateCreateFlagBits :: String
conNamePipelineDepthStencilStateCreateFlagBits = String
"PipelineDepthStencilStateCreateFlagBits"
enumPrefixPipelineDepthStencilStateCreateFlagBits :: String
enumPrefixPipelineDepthStencilStateCreateFlagBits :: String
enumPrefixPipelineDepthStencilStateCreateFlagBits = String
"PIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_"
showTablePipelineDepthStencilStateCreateFlagBits :: [(PipelineDepthStencilStateCreateFlagBits, String)]
showTablePipelineDepthStencilStateCreateFlagBits :: [(PipelineDepthStencilStateCreateFlagBits, String)]
showTablePipelineDepthStencilStateCreateFlagBits =
[
( PipelineDepthStencilStateCreateFlagBits
PIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_EXT
, String
"STENCIL_ACCESS_BIT_EXT"
)
,
( PipelineDepthStencilStateCreateFlagBits
PIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_DEPTH_ACCESS_BIT_EXT
, String
"DEPTH_ACCESS_BIT_EXT"
)
]
instance Show PipelineDepthStencilStateCreateFlagBits where
showsPrec :: Int -> PipelineDepthStencilStateCreateFlagBits -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixPipelineDepthStencilStateCreateFlagBits
[(PipelineDepthStencilStateCreateFlagBits, String)]
showTablePipelineDepthStencilStateCreateFlagBits
String
conNamePipelineDepthStencilStateCreateFlagBits
(\(PipelineDepthStencilStateCreateFlagBits Flags
x) -> Flags
x)
(\Flags
x -> String -> ShowS
showString String
"0x" forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. (Integral a, Show a) => a -> ShowS
showHex Flags
x)
instance Read PipelineDepthStencilStateCreateFlagBits where
readPrec :: ReadPrec PipelineDepthStencilStateCreateFlagBits
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixPipelineDepthStencilStateCreateFlagBits
[(PipelineDepthStencilStateCreateFlagBits, String)]
showTablePipelineDepthStencilStateCreateFlagBits
String
conNamePipelineDepthStencilStateCreateFlagBits
Flags -> PipelineDepthStencilStateCreateFlagBits
PipelineDepthStencilStateCreateFlagBits