{-# language CPP #-}
module Vulkan.Core10.Enums.ImageLayout (ImageLayout( IMAGE_LAYOUT_UNDEFINED
, IMAGE_LAYOUT_GENERAL
, IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL
, IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL
, IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
, IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
, IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL
, IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL
, IMAGE_LAYOUT_PREINITIALIZED
, IMAGE_LAYOUT_FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR
, IMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT
, IMAGE_LAYOUT_SHARED_PRESENT_KHR
, IMAGE_LAYOUT_PRESENT_SRC_KHR
, IMAGE_LAYOUT_ATTACHMENT_OPTIMAL
, IMAGE_LAYOUT_READ_ONLY_OPTIMAL
, IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL
, IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL
, IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL
, IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL
, IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
, IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
, ..
)) 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 ImageLayout = ImageLayout Int32
deriving newtype (ImageLayout -> ImageLayout -> Bool
(ImageLayout -> ImageLayout -> Bool)
-> (ImageLayout -> ImageLayout -> Bool) -> Eq ImageLayout
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImageLayout -> ImageLayout -> Bool
$c/= :: ImageLayout -> ImageLayout -> Bool
== :: ImageLayout -> ImageLayout -> Bool
$c== :: ImageLayout -> ImageLayout -> Bool
Eq, Eq ImageLayout
Eq ImageLayout
-> (ImageLayout -> ImageLayout -> Ordering)
-> (ImageLayout -> ImageLayout -> Bool)
-> (ImageLayout -> ImageLayout -> Bool)
-> (ImageLayout -> ImageLayout -> Bool)
-> (ImageLayout -> ImageLayout -> Bool)
-> (ImageLayout -> ImageLayout -> ImageLayout)
-> (ImageLayout -> ImageLayout -> ImageLayout)
-> Ord ImageLayout
ImageLayout -> ImageLayout -> Bool
ImageLayout -> ImageLayout -> Ordering
ImageLayout -> ImageLayout -> ImageLayout
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 :: ImageLayout -> ImageLayout -> ImageLayout
$cmin :: ImageLayout -> ImageLayout -> ImageLayout
max :: ImageLayout -> ImageLayout -> ImageLayout
$cmax :: ImageLayout -> ImageLayout -> ImageLayout
>= :: ImageLayout -> ImageLayout -> Bool
$c>= :: ImageLayout -> ImageLayout -> Bool
> :: ImageLayout -> ImageLayout -> Bool
$c> :: ImageLayout -> ImageLayout -> Bool
<= :: ImageLayout -> ImageLayout -> Bool
$c<= :: ImageLayout -> ImageLayout -> Bool
< :: ImageLayout -> ImageLayout -> Bool
$c< :: ImageLayout -> ImageLayout -> Bool
compare :: ImageLayout -> ImageLayout -> Ordering
$ccompare :: ImageLayout -> ImageLayout -> Ordering
$cp1Ord :: Eq ImageLayout
Ord, Ptr b -> Int -> IO ImageLayout
Ptr b -> Int -> ImageLayout -> IO ()
Ptr ImageLayout -> IO ImageLayout
Ptr ImageLayout -> Int -> IO ImageLayout
Ptr ImageLayout -> Int -> ImageLayout -> IO ()
Ptr ImageLayout -> ImageLayout -> IO ()
ImageLayout -> Int
(ImageLayout -> Int)
-> (ImageLayout -> Int)
-> (Ptr ImageLayout -> Int -> IO ImageLayout)
-> (Ptr ImageLayout -> Int -> ImageLayout -> IO ())
-> (forall b. Ptr b -> Int -> IO ImageLayout)
-> (forall b. Ptr b -> Int -> ImageLayout -> IO ())
-> (Ptr ImageLayout -> IO ImageLayout)
-> (Ptr ImageLayout -> ImageLayout -> IO ())
-> Storable ImageLayout
forall b. Ptr b -> Int -> IO ImageLayout
forall b. Ptr b -> Int -> ImageLayout -> 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 ImageLayout -> ImageLayout -> IO ()
$cpoke :: Ptr ImageLayout -> ImageLayout -> IO ()
peek :: Ptr ImageLayout -> IO ImageLayout
$cpeek :: Ptr ImageLayout -> IO ImageLayout
pokeByteOff :: Ptr b -> Int -> ImageLayout -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> ImageLayout -> IO ()
peekByteOff :: Ptr b -> Int -> IO ImageLayout
$cpeekByteOff :: forall b. Ptr b -> Int -> IO ImageLayout
pokeElemOff :: Ptr ImageLayout -> Int -> ImageLayout -> IO ()
$cpokeElemOff :: Ptr ImageLayout -> Int -> ImageLayout -> IO ()
peekElemOff :: Ptr ImageLayout -> Int -> IO ImageLayout
$cpeekElemOff :: Ptr ImageLayout -> Int -> IO ImageLayout
alignment :: ImageLayout -> Int
$calignment :: ImageLayout -> Int
sizeOf :: ImageLayout -> Int
$csizeOf :: ImageLayout -> Int
Storable, ImageLayout
ImageLayout -> Zero ImageLayout
forall a. a -> Zero a
zero :: ImageLayout
$czero :: ImageLayout
Zero)
pattern $bIMAGE_LAYOUT_UNDEFINED :: ImageLayout
$mIMAGE_LAYOUT_UNDEFINED :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_UNDEFINED = ImageLayout 0
pattern $bIMAGE_LAYOUT_GENERAL :: ImageLayout
$mIMAGE_LAYOUT_GENERAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_GENERAL = ImageLayout 1
pattern $bIMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL = ImageLayout 2
pattern $bIMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL = ImageLayout 3
pattern $bIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL = ImageLayout 4
pattern $bIMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL = ImageLayout 5
pattern $bIMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL = ImageLayout 6
pattern $bIMAGE_LAYOUT_TRANSFER_DST_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_TRANSFER_DST_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL = ImageLayout 7
pattern $bIMAGE_LAYOUT_PREINITIALIZED :: ImageLayout
$mIMAGE_LAYOUT_PREINITIALIZED :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_PREINITIALIZED = ImageLayout 8
pattern $bIMAGE_LAYOUT_FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR :: ImageLayout
$mIMAGE_LAYOUT_FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR = ImageLayout 1000164003
pattern $bIMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT :: ImageLayout
$mIMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT = ImageLayout 1000218000
pattern $bIMAGE_LAYOUT_SHARED_PRESENT_KHR :: ImageLayout
$mIMAGE_LAYOUT_SHARED_PRESENT_KHR :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_SHARED_PRESENT_KHR = ImageLayout 1000111000
pattern $bIMAGE_LAYOUT_PRESENT_SRC_KHR :: ImageLayout
$mIMAGE_LAYOUT_PRESENT_SRC_KHR :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_PRESENT_SRC_KHR = ImageLayout 1000001002
pattern $bIMAGE_LAYOUT_ATTACHMENT_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_ATTACHMENT_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_ATTACHMENT_OPTIMAL = ImageLayout 1000314001
pattern $bIMAGE_LAYOUT_READ_ONLY_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_READ_ONLY_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_READ_ONLY_OPTIMAL = ImageLayout 1000314000
pattern $bIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL = ImageLayout 1000241003
pattern $bIMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL = ImageLayout 1000241002
pattern $bIMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL = ImageLayout 1000241001
pattern $bIMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL = ImageLayout 1000241000
pattern $bIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL = ImageLayout 1000117001
pattern $bIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL :: ImageLayout
$mIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL :: forall r. ImageLayout -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL = ImageLayout 1000117000
{-# complete IMAGE_LAYOUT_UNDEFINED,
IMAGE_LAYOUT_GENERAL,
IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL,
IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL,
IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL,
IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,
IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,
IMAGE_LAYOUT_PREINITIALIZED,
IMAGE_LAYOUT_FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR,
IMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT,
IMAGE_LAYOUT_SHARED_PRESENT_KHR,
IMAGE_LAYOUT_PRESENT_SRC_KHR,
IMAGE_LAYOUT_ATTACHMENT_OPTIMAL,
IMAGE_LAYOUT_READ_ONLY_OPTIMAL,
IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL,
IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL,
IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,
IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,
IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL,
IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL :: ImageLayout #-}
conNameImageLayout :: String
conNameImageLayout :: String
conNameImageLayout = String
"ImageLayout"
enumPrefixImageLayout :: String
enumPrefixImageLayout :: String
enumPrefixImageLayout = String
"IMAGE_LAYOUT_"
showTableImageLayout :: [(ImageLayout, String)]
showTableImageLayout :: [(ImageLayout, String)]
showTableImageLayout =
[ (ImageLayout
IMAGE_LAYOUT_UNDEFINED , String
"UNDEFINED")
, (ImageLayout
IMAGE_LAYOUT_GENERAL , String
"GENERAL")
, (ImageLayout
IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL , String
"COLOR_ATTACHMENT_OPTIMAL")
, (ImageLayout
IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, String
"DEPTH_STENCIL_ATTACHMENT_OPTIMAL")
, (ImageLayout
IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL , String
"DEPTH_STENCIL_READ_ONLY_OPTIMAL")
, (ImageLayout
IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL , String
"SHADER_READ_ONLY_OPTIMAL")
, (ImageLayout
IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL , String
"TRANSFER_SRC_OPTIMAL")
, (ImageLayout
IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL , String
"TRANSFER_DST_OPTIMAL")
, (ImageLayout
IMAGE_LAYOUT_PREINITIALIZED , String
"PREINITIALIZED")
, (ImageLayout
IMAGE_LAYOUT_FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR, String
"FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR")
, (ImageLayout
IMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT, String
"FRAGMENT_DENSITY_MAP_OPTIMAL_EXT")
, (ImageLayout
IMAGE_LAYOUT_SHARED_PRESENT_KHR , String
"SHARED_PRESENT_KHR")
, (ImageLayout
IMAGE_LAYOUT_PRESENT_SRC_KHR , String
"PRESENT_SRC_KHR")
, (ImageLayout
IMAGE_LAYOUT_ATTACHMENT_OPTIMAL , String
"ATTACHMENT_OPTIMAL")
, (ImageLayout
IMAGE_LAYOUT_READ_ONLY_OPTIMAL , String
"READ_ONLY_OPTIMAL")
, (ImageLayout
IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL , String
"STENCIL_READ_ONLY_OPTIMAL")
, (ImageLayout
IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL , String
"STENCIL_ATTACHMENT_OPTIMAL")
, (ImageLayout
IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL , String
"DEPTH_READ_ONLY_OPTIMAL")
, (ImageLayout
IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL , String
"DEPTH_ATTACHMENT_OPTIMAL")
, (ImageLayout
IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL, String
"DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL")
, (ImageLayout
IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL, String
"DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL")
]
instance Show ImageLayout where
showsPrec :: Int -> ImageLayout -> ShowS
showsPrec =
String
-> [(ImageLayout, String)]
-> String
-> (ImageLayout -> Int32)
-> (Int32 -> ShowS)
-> Int
-> ImageLayout
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixImageLayout [(ImageLayout, String)]
showTableImageLayout String
conNameImageLayout (\(ImageLayout Int32
x) -> Int32
x) (Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)
instance Read ImageLayout where
readPrec :: ReadPrec ImageLayout
readPrec = String
-> [(ImageLayout, String)]
-> String
-> (Int32 -> ImageLayout)
-> ReadPrec ImageLayout
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixImageLayout [(ImageLayout, String)]
showTableImageLayout String
conNameImageLayout Int32 -> ImageLayout
ImageLayout