{-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE TypeSynonymInstances #-} module Data.SpirV.Enum.SamplerFilterMode where import Data.Word (Word32) import Foreign.Storable (Storable) newtype SamplerFilterMode = SamplerFilterMode Word32 deriving newtype (SamplerFilterMode -> SamplerFilterMode -> Bool (SamplerFilterMode -> SamplerFilterMode -> Bool) -> (SamplerFilterMode -> SamplerFilterMode -> Bool) -> Eq SamplerFilterMode forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a $c== :: SamplerFilterMode -> SamplerFilterMode -> Bool == :: SamplerFilterMode -> SamplerFilterMode -> Bool $c/= :: SamplerFilterMode -> SamplerFilterMode -> Bool /= :: SamplerFilterMode -> SamplerFilterMode -> Bool Eq, Eq SamplerFilterMode Eq SamplerFilterMode => (SamplerFilterMode -> SamplerFilterMode -> Ordering) -> (SamplerFilterMode -> SamplerFilterMode -> Bool) -> (SamplerFilterMode -> SamplerFilterMode -> Bool) -> (SamplerFilterMode -> SamplerFilterMode -> Bool) -> (SamplerFilterMode -> SamplerFilterMode -> Bool) -> (SamplerFilterMode -> SamplerFilterMode -> SamplerFilterMode) -> (SamplerFilterMode -> SamplerFilterMode -> SamplerFilterMode) -> Ord SamplerFilterMode SamplerFilterMode -> SamplerFilterMode -> Bool SamplerFilterMode -> SamplerFilterMode -> Ordering SamplerFilterMode -> SamplerFilterMode -> SamplerFilterMode 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 $ccompare :: SamplerFilterMode -> SamplerFilterMode -> Ordering compare :: SamplerFilterMode -> SamplerFilterMode -> Ordering $c< :: SamplerFilterMode -> SamplerFilterMode -> Bool < :: SamplerFilterMode -> SamplerFilterMode -> Bool $c<= :: SamplerFilterMode -> SamplerFilterMode -> Bool <= :: SamplerFilterMode -> SamplerFilterMode -> Bool $c> :: SamplerFilterMode -> SamplerFilterMode -> Bool > :: SamplerFilterMode -> SamplerFilterMode -> Bool $c>= :: SamplerFilterMode -> SamplerFilterMode -> Bool >= :: SamplerFilterMode -> SamplerFilterMode -> Bool $cmax :: SamplerFilterMode -> SamplerFilterMode -> SamplerFilterMode max :: SamplerFilterMode -> SamplerFilterMode -> SamplerFilterMode $cmin :: SamplerFilterMode -> SamplerFilterMode -> SamplerFilterMode min :: SamplerFilterMode -> SamplerFilterMode -> SamplerFilterMode Ord, Ptr SamplerFilterMode -> IO SamplerFilterMode Ptr SamplerFilterMode -> Int -> IO SamplerFilterMode Ptr SamplerFilterMode -> Int -> SamplerFilterMode -> IO () Ptr SamplerFilterMode -> SamplerFilterMode -> IO () SamplerFilterMode -> Int (SamplerFilterMode -> Int) -> (SamplerFilterMode -> Int) -> (Ptr SamplerFilterMode -> Int -> IO SamplerFilterMode) -> (Ptr SamplerFilterMode -> Int -> SamplerFilterMode -> IO ()) -> (forall b. Ptr b -> Int -> IO SamplerFilterMode) -> (forall b. Ptr b -> Int -> SamplerFilterMode -> IO ()) -> (Ptr SamplerFilterMode -> IO SamplerFilterMode) -> (Ptr SamplerFilterMode -> SamplerFilterMode -> IO ()) -> Storable SamplerFilterMode forall b. Ptr b -> Int -> IO SamplerFilterMode forall b. Ptr b -> Int -> SamplerFilterMode -> 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 $csizeOf :: SamplerFilterMode -> Int sizeOf :: SamplerFilterMode -> Int $calignment :: SamplerFilterMode -> Int alignment :: SamplerFilterMode -> Int $cpeekElemOff :: Ptr SamplerFilterMode -> Int -> IO SamplerFilterMode peekElemOff :: Ptr SamplerFilterMode -> Int -> IO SamplerFilterMode $cpokeElemOff :: Ptr SamplerFilterMode -> Int -> SamplerFilterMode -> IO () pokeElemOff :: Ptr SamplerFilterMode -> Int -> SamplerFilterMode -> IO () $cpeekByteOff :: forall b. Ptr b -> Int -> IO SamplerFilterMode peekByteOff :: forall b. Ptr b -> Int -> IO SamplerFilterMode $cpokeByteOff :: forall b. Ptr b -> Int -> SamplerFilterMode -> IO () pokeByteOff :: forall b. Ptr b -> Int -> SamplerFilterMode -> IO () $cpeek :: Ptr SamplerFilterMode -> IO SamplerFilterMode peek :: Ptr SamplerFilterMode -> IO SamplerFilterMode $cpoke :: Ptr SamplerFilterMode -> SamplerFilterMode -> IO () poke :: Ptr SamplerFilterMode -> SamplerFilterMode -> IO () Storable) instance Show SamplerFilterMode where showsPrec :: Int -> SamplerFilterMode -> ShowS showsPrec Int p (SamplerFilterMode Word32 v) = case Word32 v of Word32 0 -> String -> ShowS showString String "Nearest" Word32 1 -> String -> ShowS showString String "Linear" Word32 x -> Bool -> ShowS -> ShowS showParen (Int p Int -> Int -> Bool forall a. Ord a => a -> a -> Bool > Int 10) (ShowS -> ShowS) -> ShowS -> ShowS forall a b. (a -> b) -> a -> b $ String -> ShowS showString String "SamplerFilterMode " ShowS -> ShowS -> ShowS forall b c a. (b -> c) -> (a -> b) -> a -> c . Int -> Word32 -> ShowS forall a. Show a => Int -> a -> ShowS showsPrec (Int p Int -> Int -> Int forall a. Num a => a -> a -> a + Int 1) Word32 x pattern Nearest :: SamplerFilterMode pattern $mNearest :: forall {r}. SamplerFilterMode -> ((# #) -> r) -> ((# #) -> r) -> r $bNearest :: SamplerFilterMode Nearest = SamplerFilterMode 0 pattern Linear :: SamplerFilterMode pattern $mLinear :: forall {r}. SamplerFilterMode -> ((# #) -> r) -> ((# #) -> r) -> r $bLinear :: SamplerFilterMode Linear = SamplerFilterMode 1