{-# language CPP #-}
module Vulkan.Core10.Enums.SamplerMipmapMode (SamplerMipmapMode( SAMPLER_MIPMAP_MODE_NEAREST
, SAMPLER_MIPMAP_MODE_LINEAR
, ..
)) 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 SamplerMipmapMode = SamplerMipmapMode Int32
deriving newtype (SamplerMipmapMode -> SamplerMipmapMode -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SamplerMipmapMode -> SamplerMipmapMode -> Bool
$c/= :: SamplerMipmapMode -> SamplerMipmapMode -> Bool
== :: SamplerMipmapMode -> SamplerMipmapMode -> Bool
$c== :: SamplerMipmapMode -> SamplerMipmapMode -> Bool
Eq, Eq SamplerMipmapMode
SamplerMipmapMode -> SamplerMipmapMode -> Bool
SamplerMipmapMode -> SamplerMipmapMode -> Ordering
SamplerMipmapMode -> SamplerMipmapMode -> SamplerMipmapMode
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 :: SamplerMipmapMode -> SamplerMipmapMode -> SamplerMipmapMode
$cmin :: SamplerMipmapMode -> SamplerMipmapMode -> SamplerMipmapMode
max :: SamplerMipmapMode -> SamplerMipmapMode -> SamplerMipmapMode
$cmax :: SamplerMipmapMode -> SamplerMipmapMode -> SamplerMipmapMode
>= :: SamplerMipmapMode -> SamplerMipmapMode -> Bool
$c>= :: SamplerMipmapMode -> SamplerMipmapMode -> Bool
> :: SamplerMipmapMode -> SamplerMipmapMode -> Bool
$c> :: SamplerMipmapMode -> SamplerMipmapMode -> Bool
<= :: SamplerMipmapMode -> SamplerMipmapMode -> Bool
$c<= :: SamplerMipmapMode -> SamplerMipmapMode -> Bool
< :: SamplerMipmapMode -> SamplerMipmapMode -> Bool
$c< :: SamplerMipmapMode -> SamplerMipmapMode -> Bool
compare :: SamplerMipmapMode -> SamplerMipmapMode -> Ordering
$ccompare :: SamplerMipmapMode -> SamplerMipmapMode -> Ordering
Ord, Ptr SamplerMipmapMode -> IO SamplerMipmapMode
Ptr SamplerMipmapMode -> Int -> IO SamplerMipmapMode
Ptr SamplerMipmapMode -> Int -> SamplerMipmapMode -> IO ()
Ptr SamplerMipmapMode -> SamplerMipmapMode -> IO ()
SamplerMipmapMode -> Int
forall b. Ptr b -> Int -> IO SamplerMipmapMode
forall b. Ptr b -> Int -> SamplerMipmapMode -> 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 SamplerMipmapMode -> SamplerMipmapMode -> IO ()
$cpoke :: Ptr SamplerMipmapMode -> SamplerMipmapMode -> IO ()
peek :: Ptr SamplerMipmapMode -> IO SamplerMipmapMode
$cpeek :: Ptr SamplerMipmapMode -> IO SamplerMipmapMode
pokeByteOff :: forall b. Ptr b -> Int -> SamplerMipmapMode -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> SamplerMipmapMode -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO SamplerMipmapMode
$cpeekByteOff :: forall b. Ptr b -> Int -> IO SamplerMipmapMode
pokeElemOff :: Ptr SamplerMipmapMode -> Int -> SamplerMipmapMode -> IO ()
$cpokeElemOff :: Ptr SamplerMipmapMode -> Int -> SamplerMipmapMode -> IO ()
peekElemOff :: Ptr SamplerMipmapMode -> Int -> IO SamplerMipmapMode
$cpeekElemOff :: Ptr SamplerMipmapMode -> Int -> IO SamplerMipmapMode
alignment :: SamplerMipmapMode -> Int
$calignment :: SamplerMipmapMode -> Int
sizeOf :: SamplerMipmapMode -> Int
$csizeOf :: SamplerMipmapMode -> Int
Storable, SamplerMipmapMode
forall a. a -> Zero a
zero :: SamplerMipmapMode
$czero :: SamplerMipmapMode
Zero)
pattern $bSAMPLER_MIPMAP_MODE_NEAREST :: SamplerMipmapMode
$mSAMPLER_MIPMAP_MODE_NEAREST :: forall {r}. SamplerMipmapMode -> ((# #) -> r) -> ((# #) -> r) -> r
SAMPLER_MIPMAP_MODE_NEAREST = SamplerMipmapMode 0
pattern $bSAMPLER_MIPMAP_MODE_LINEAR :: SamplerMipmapMode
$mSAMPLER_MIPMAP_MODE_LINEAR :: forall {r}. SamplerMipmapMode -> ((# #) -> r) -> ((# #) -> r) -> r
SAMPLER_MIPMAP_MODE_LINEAR = SamplerMipmapMode 1
{-# COMPLETE
SAMPLER_MIPMAP_MODE_NEAREST
, SAMPLER_MIPMAP_MODE_LINEAR ::
SamplerMipmapMode
#-}
conNameSamplerMipmapMode :: String
conNameSamplerMipmapMode :: String
conNameSamplerMipmapMode = String
"SamplerMipmapMode"
enumPrefixSamplerMipmapMode :: String
enumPrefixSamplerMipmapMode :: String
enumPrefixSamplerMipmapMode = String
"SAMPLER_MIPMAP_MODE_"
showTableSamplerMipmapMode :: [(SamplerMipmapMode, String)]
showTableSamplerMipmapMode :: [(SamplerMipmapMode, String)]
showTableSamplerMipmapMode =
[ (SamplerMipmapMode
SAMPLER_MIPMAP_MODE_NEAREST, String
"NEAREST")
, (SamplerMipmapMode
SAMPLER_MIPMAP_MODE_LINEAR, String
"LINEAR")
]
instance Show SamplerMipmapMode where
showsPrec :: Int -> SamplerMipmapMode -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixSamplerMipmapMode
[(SamplerMipmapMode, String)]
showTableSamplerMipmapMode
String
conNameSamplerMipmapMode
(\(SamplerMipmapMode Int32
x) -> Int32
x)
(forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)
instance Read SamplerMipmapMode where
readPrec :: ReadPrec SamplerMipmapMode
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixSamplerMipmapMode
[(SamplerMipmapMode, String)]
showTableSamplerMipmapMode
String
conNameSamplerMipmapMode
Int32 -> SamplerMipmapMode
SamplerMipmapMode