{-# language CPP #-}
-- No documentation found for Chapter "ImageViewType"
module Vulkan.Core10.Enums.ImageViewType  (ImageViewType( IMAGE_VIEW_TYPE_1D
                                                        , IMAGE_VIEW_TYPE_2D
                                                        , IMAGE_VIEW_TYPE_3D
                                                        , IMAGE_VIEW_TYPE_CUBE
                                                        , IMAGE_VIEW_TYPE_1D_ARRAY
                                                        , IMAGE_VIEW_TYPE_2D_ARRAY
                                                        , IMAGE_VIEW_TYPE_CUBE_ARRAY
                                                        , ..
                                                        )) 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)
-- | VkImageViewType - Image view types
--
-- = Description
--
-- The exact image view type is partially implicit, based on the image’s
-- type and sample count, as well as the view creation parameters as
-- described in the
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#resources-image-views-compatibility image view compatibility table>
-- for 'Vulkan.Core10.ImageView.createImageView'. This table also shows
-- which SPIR-V @OpTypeImage@ @Dim@ and @Arrayed@ parameters correspond to
-- each image view type.
--
-- = See Also
--
-- 'Vulkan.Core10.ImageView.ImageViewCreateInfo',
-- 'Vulkan.Extensions.VK_EXT_filter_cubic.PhysicalDeviceImageViewImageFormatInfoEXT'
newtype ImageViewType = ImageViewType Int32
  deriving newtype (ImageViewType -> ImageViewType -> Bool
(ImageViewType -> ImageViewType -> Bool)
-> (ImageViewType -> ImageViewType -> Bool) -> Eq ImageViewType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImageViewType -> ImageViewType -> Bool
$c/= :: ImageViewType -> ImageViewType -> Bool
== :: ImageViewType -> ImageViewType -> Bool
$c== :: ImageViewType -> ImageViewType -> Bool
Eq, Eq ImageViewType
Eq ImageViewType =>
(ImageViewType -> ImageViewType -> Ordering)
-> (ImageViewType -> ImageViewType -> Bool)
-> (ImageViewType -> ImageViewType -> Bool)
-> (ImageViewType -> ImageViewType -> Bool)
-> (ImageViewType -> ImageViewType -> Bool)
-> (ImageViewType -> ImageViewType -> ImageViewType)
-> (ImageViewType -> ImageViewType -> ImageViewType)
-> Ord ImageViewType
ImageViewType -> ImageViewType -> Bool
ImageViewType -> ImageViewType -> Ordering
ImageViewType -> ImageViewType -> ImageViewType
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 :: ImageViewType -> ImageViewType -> ImageViewType
$cmin :: ImageViewType -> ImageViewType -> ImageViewType
max :: ImageViewType -> ImageViewType -> ImageViewType
$cmax :: ImageViewType -> ImageViewType -> ImageViewType
>= :: ImageViewType -> ImageViewType -> Bool
$c>= :: ImageViewType -> ImageViewType -> Bool
> :: ImageViewType -> ImageViewType -> Bool
$c> :: ImageViewType -> ImageViewType -> Bool
<= :: ImageViewType -> ImageViewType -> Bool
$c<= :: ImageViewType -> ImageViewType -> Bool
< :: ImageViewType -> ImageViewType -> Bool
$c< :: ImageViewType -> ImageViewType -> Bool
compare :: ImageViewType -> ImageViewType -> Ordering
$ccompare :: ImageViewType -> ImageViewType -> Ordering
$cp1Ord :: Eq ImageViewType
Ord, Ptr b -> Int -> IO ImageViewType
Ptr b -> Int -> ImageViewType -> IO ()
Ptr ImageViewType -> IO ImageViewType
Ptr ImageViewType -> Int -> IO ImageViewType
Ptr ImageViewType -> Int -> ImageViewType -> IO ()
Ptr ImageViewType -> ImageViewType -> IO ()
ImageViewType -> Int
(ImageViewType -> Int)
-> (ImageViewType -> Int)
-> (Ptr ImageViewType -> Int -> IO ImageViewType)
-> (Ptr ImageViewType -> Int -> ImageViewType -> IO ())
-> (forall b. Ptr b -> Int -> IO ImageViewType)
-> (forall b. Ptr b -> Int -> ImageViewType -> IO ())
-> (Ptr ImageViewType -> IO ImageViewType)
-> (Ptr ImageViewType -> ImageViewType -> IO ())
-> Storable ImageViewType
forall b. Ptr b -> Int -> IO ImageViewType
forall b. Ptr b -> Int -> ImageViewType -> 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 ImageViewType -> ImageViewType -> IO ()
$cpoke :: Ptr ImageViewType -> ImageViewType -> IO ()
peek :: Ptr ImageViewType -> IO ImageViewType
$cpeek :: Ptr ImageViewType -> IO ImageViewType
pokeByteOff :: Ptr b -> Int -> ImageViewType -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> ImageViewType -> IO ()
peekByteOff :: Ptr b -> Int -> IO ImageViewType
$cpeekByteOff :: forall b. Ptr b -> Int -> IO ImageViewType
pokeElemOff :: Ptr ImageViewType -> Int -> ImageViewType -> IO ()
$cpokeElemOff :: Ptr ImageViewType -> Int -> ImageViewType -> IO ()
peekElemOff :: Ptr ImageViewType -> Int -> IO ImageViewType
$cpeekElemOff :: Ptr ImageViewType -> Int -> IO ImageViewType
alignment :: ImageViewType -> Int
$calignment :: ImageViewType -> Int
sizeOf :: ImageViewType -> Int
$csizeOf :: ImageViewType -> Int
Storable, ImageViewType
ImageViewType -> Zero ImageViewType
forall a. a -> Zero a
zero :: ImageViewType
$czero :: ImageViewType
Zero)

-- No documentation found for Nested "VkImageViewType" "VK_IMAGE_VIEW_TYPE_1D"
pattern $bIMAGE_VIEW_TYPE_1D :: ImageViewType
$mIMAGE_VIEW_TYPE_1D :: forall r. ImageViewType -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_VIEW_TYPE_1D         = ImageViewType 0
-- No documentation found for Nested "VkImageViewType" "VK_IMAGE_VIEW_TYPE_2D"
pattern $bIMAGE_VIEW_TYPE_2D :: ImageViewType
$mIMAGE_VIEW_TYPE_2D :: forall r. ImageViewType -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_VIEW_TYPE_2D         = ImageViewType 1
-- No documentation found for Nested "VkImageViewType" "VK_IMAGE_VIEW_TYPE_3D"
pattern $bIMAGE_VIEW_TYPE_3D :: ImageViewType
$mIMAGE_VIEW_TYPE_3D :: forall r. ImageViewType -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_VIEW_TYPE_3D         = ImageViewType 2
-- No documentation found for Nested "VkImageViewType" "VK_IMAGE_VIEW_TYPE_CUBE"
pattern $bIMAGE_VIEW_TYPE_CUBE :: ImageViewType
$mIMAGE_VIEW_TYPE_CUBE :: forall r. ImageViewType -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_VIEW_TYPE_CUBE       = ImageViewType 3
-- No documentation found for Nested "VkImageViewType" "VK_IMAGE_VIEW_TYPE_1D_ARRAY"
pattern $bIMAGE_VIEW_TYPE_1D_ARRAY :: ImageViewType
$mIMAGE_VIEW_TYPE_1D_ARRAY :: forall r. ImageViewType -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_VIEW_TYPE_1D_ARRAY   = ImageViewType 4
-- No documentation found for Nested "VkImageViewType" "VK_IMAGE_VIEW_TYPE_2D_ARRAY"
pattern $bIMAGE_VIEW_TYPE_2D_ARRAY :: ImageViewType
$mIMAGE_VIEW_TYPE_2D_ARRAY :: forall r. ImageViewType -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_VIEW_TYPE_2D_ARRAY   = ImageViewType 5
-- No documentation found for Nested "VkImageViewType" "VK_IMAGE_VIEW_TYPE_CUBE_ARRAY"
pattern $bIMAGE_VIEW_TYPE_CUBE_ARRAY :: ImageViewType
$mIMAGE_VIEW_TYPE_CUBE_ARRAY :: forall r. ImageViewType -> (Void# -> r) -> (Void# -> r) -> r
IMAGE_VIEW_TYPE_CUBE_ARRAY = ImageViewType 6
{-# complete IMAGE_VIEW_TYPE_1D,
             IMAGE_VIEW_TYPE_2D,
             IMAGE_VIEW_TYPE_3D,
             IMAGE_VIEW_TYPE_CUBE,
             IMAGE_VIEW_TYPE_1D_ARRAY,
             IMAGE_VIEW_TYPE_2D_ARRAY,
             IMAGE_VIEW_TYPE_CUBE_ARRAY :: ImageViewType #-}

conNameImageViewType :: String
conNameImageViewType :: String
conNameImageViewType = "ImageViewType"

enumPrefixImageViewType :: String
enumPrefixImageViewType :: String
enumPrefixImageViewType = "IMAGE_VIEW_TYPE_"

showTableImageViewType :: [(ImageViewType, String)]
showTableImageViewType :: [(ImageViewType, String)]
showTableImageViewType =
  [ (ImageViewType
IMAGE_VIEW_TYPE_1D        , "1D")
  , (ImageViewType
IMAGE_VIEW_TYPE_2D        , "2D")
  , (ImageViewType
IMAGE_VIEW_TYPE_3D        , "3D")
  , (ImageViewType
IMAGE_VIEW_TYPE_CUBE      , "CUBE")
  , (ImageViewType
IMAGE_VIEW_TYPE_1D_ARRAY  , "1D_ARRAY")
  , (ImageViewType
IMAGE_VIEW_TYPE_2D_ARRAY  , "2D_ARRAY")
  , (ImageViewType
IMAGE_VIEW_TYPE_CUBE_ARRAY, "CUBE_ARRAY")
  ]

instance Show ImageViewType where
  showsPrec :: Int -> ImageViewType -> ShowS
showsPrec = String
-> [(ImageViewType, String)]
-> String
-> (ImageViewType -> Int32)
-> (Int32 -> ShowS)
-> Int
-> ImageViewType
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixImageViewType
                            [(ImageViewType, String)]
showTableImageViewType
                            String
conNameImageViewType
                            (\(ImageViewType x :: Int32
x) -> Int32
x)
                            (Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11)

instance Read ImageViewType where
  readPrec :: ReadPrec ImageViewType
readPrec = String
-> [(ImageViewType, String)]
-> String
-> (Int32 -> ImageViewType)
-> ReadPrec ImageViewType
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixImageViewType [(ImageViewType, String)]
showTableImageViewType String
conNameImageViewType Int32 -> ImageViewType
ImageViewType