{-# language CPP #-}
module Vulkan.Core10.Enums.ImageTiling (ImageTiling( IMAGE_TILING_OPTIMAL
, IMAGE_TILING_LINEAR
, IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT
, ..
)) where
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import GHC.Show (showsPrec)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
import Vulkan.Zero (Zero)
newtype ImageTiling = ImageTiling Int32
deriving newtype (ImageTiling -> ImageTiling -> Bool
(ImageTiling -> ImageTiling -> Bool)
-> (ImageTiling -> ImageTiling -> Bool) -> Eq ImageTiling
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImageTiling -> ImageTiling -> Bool
$c/= :: ImageTiling -> ImageTiling -> Bool
== :: ImageTiling -> ImageTiling -> Bool
$c== :: ImageTiling -> ImageTiling -> Bool
Eq, Eq ImageTiling
Eq ImageTiling =>
(ImageTiling -> ImageTiling -> Ordering)
-> (ImageTiling -> ImageTiling -> Bool)
-> (ImageTiling -> ImageTiling -> Bool)
-> (ImageTiling -> ImageTiling -> Bool)
-> (ImageTiling -> ImageTiling -> Bool)
-> (ImageTiling -> ImageTiling -> ImageTiling)
-> (ImageTiling -> ImageTiling -> ImageTiling)
-> Ord ImageTiling
ImageTiling -> ImageTiling -> Bool
ImageTiling -> ImageTiling -> Ordering
ImageTiling -> ImageTiling -> ImageTiling
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 :: ImageTiling -> ImageTiling -> ImageTiling
$cmin :: ImageTiling -> ImageTiling -> ImageTiling
max :: ImageTiling -> ImageTiling -> ImageTiling
$cmax :: ImageTiling -> ImageTiling -> ImageTiling
>= :: ImageTiling -> ImageTiling -> Bool
$c>= :: ImageTiling -> ImageTiling -> Bool
> :: ImageTiling -> ImageTiling -> Bool
$c> :: ImageTiling -> ImageTiling -> Bool
<= :: ImageTiling -> ImageTiling -> Bool
$c<= :: ImageTiling -> ImageTiling -> Bool
< :: ImageTiling -> ImageTiling -> Bool
$c< :: ImageTiling -> ImageTiling -> Bool
compare :: ImageTiling -> ImageTiling -> Ordering
$ccompare :: ImageTiling -> ImageTiling -> Ordering
$cp1Ord :: Eq ImageTiling
Ord, Ptr b -> Int -> IO ImageTiling
Ptr b -> Int -> ImageTiling -> IO ()
Ptr ImageTiling -> IO ImageTiling
Ptr ImageTiling -> Int -> IO ImageTiling
Ptr ImageTiling -> Int -> ImageTiling -> IO ()
Ptr ImageTiling -> ImageTiling -> IO ()
ImageTiling -> Int
(ImageTiling -> Int)
-> (ImageTiling -> Int)
-> (Ptr ImageTiling -> Int -> IO ImageTiling)
-> (Ptr ImageTiling -> Int -> ImageTiling -> IO ())
-> (forall b. Ptr b -> Int -> IO ImageTiling)
-> (forall b. Ptr b -> Int -> ImageTiling -> IO ())
-> (Ptr ImageTiling -> IO ImageTiling)
-> (Ptr ImageTiling -> ImageTiling -> IO ())
-> Storable ImageTiling
forall b. Ptr b -> Int -> IO ImageTiling
forall b. Ptr b -> Int -> ImageTiling -> 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 ImageTiling -> ImageTiling -> IO ()
$cpoke :: Ptr ImageTiling -> ImageTiling -> IO ()
peek :: Ptr ImageTiling -> IO ImageTiling
$cpeek :: Ptr ImageTiling -> IO ImageTiling
pokeByteOff :: Ptr b -> Int -> ImageTiling -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> ImageTiling -> IO ()
peekByteOff :: Ptr b -> Int -> IO ImageTiling
$cpeekByteOff :: forall b. Ptr b -> Int -> IO ImageTiling
pokeElemOff :: Ptr ImageTiling -> Int -> ImageTiling -> IO ()
$cpokeElemOff :: Ptr ImageTiling -> Int -> ImageTiling -> IO ()
peekElemOff :: Ptr ImageTiling -> Int -> IO ImageTiling
$cpeekElemOff :: Ptr ImageTiling -> Int -> IO ImageTiling
alignment :: ImageTiling -> Int
$calignment :: ImageTiling -> Int
sizeOf :: ImageTiling -> Int
$csizeOf :: ImageTiling -> Int
Storable, ImageTiling
ImageTiling -> Zero ImageTiling
forall a. a -> Zero a
zero :: ImageTiling
$czero :: ImageTiling
Zero)
pattern $bIMAGE_TILING_OPTIMAL :: ImageTiling
$mIMAGE_TILING_OPTIMAL :: forall r. ImageTiling -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_TILING_OPTIMAL = ImageTiling 0
pattern $bIMAGE_TILING_LINEAR :: ImageTiling
$mIMAGE_TILING_LINEAR :: forall r. ImageTiling -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_TILING_LINEAR = ImageTiling 1
pattern $bIMAGE_TILING_DRM_FORMAT_MODIFIER_EXT :: ImageTiling
$mIMAGE_TILING_DRM_FORMAT_MODIFIER_EXT :: forall r. ImageTiling -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT = ImageTiling 1000158000
{-# complete IMAGE_TILING_OPTIMAL,
IMAGE_TILING_LINEAR,
IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT :: ImageTiling #-}
conNameImageTiling :: String
conNameImageTiling :: String
conNameImageTiling = "ImageTiling"
enumPrefixImageTiling :: String
enumPrefixImageTiling :: String
enumPrefixImageTiling = "IMAGE_TILING_"
showTableImageTiling :: [(ImageTiling, String)]
showTableImageTiling :: [(ImageTiling, String)]
showTableImageTiling =
[ (ImageTiling
IMAGE_TILING_OPTIMAL , "OPTIMAL")
, (ImageTiling
IMAGE_TILING_LINEAR , "LINEAR")
, (ImageTiling
IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT, "DRM_FORMAT_MODIFIER_EXT")
]
instance Show ImageTiling where
showsPrec :: Int -> ImageTiling -> ShowS
showsPrec =
String
-> [(ImageTiling, String)]
-> String
-> (ImageTiling -> Int32)
-> (Int32 -> ShowS)
-> Int
-> ImageTiling
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixImageTiling [(ImageTiling, String)]
showTableImageTiling String
conNameImageTiling (\(ImageTiling x :: Int32
x) -> Int32
x) (Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11)
instance Read ImageTiling where
readPrec :: ReadPrec ImageTiling
readPrec = String
-> [(ImageTiling, String)]
-> String
-> (Int32 -> ImageTiling)
-> ReadPrec ImageTiling
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixImageTiling [(ImageTiling, String)]
showTableImageTiling String
conNameImageTiling Int32 -> ImageTiling
ImageTiling