{-# 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 Vulkan.Zero (Zero)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))

-- | VkImageViewType - Image view types
--
-- = See Also
--
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_VERSION_1_0 VK_VERSION_1_0>,
-- 'Vulkan.Core10.ImageView.ImageViewCreateInfo',
-- 'Vulkan.Extensions.VK_EXT_filter_cubic.PhysicalDeviceImageViewImageFormatInfoEXT'
newtype ImageViewType = ImageViewType Int32
  deriving newtype (ImageViewType -> ImageViewType -> Bool
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
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
Ord, Ptr ImageViewType -> IO ImageViewType
Ptr ImageViewType -> Int -> IO ImageViewType
Ptr ImageViewType -> Int -> ImageViewType -> IO ()
Ptr ImageViewType -> ImageViewType -> IO ()
ImageViewType -> Int
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 :: forall b. Ptr b -> Int -> ImageViewType -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> ImageViewType -> IO ()
peekByteOff :: forall b. 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
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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 = String
"ImageViewType"

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

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

instance Show ImageViewType where
  showsPrec :: Int -> ImageViewType -> ShowS
showsPrec =
    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 Int32
x) -> Int32
x)
      (forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)

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