{-# language CPP #-}
-- No documentation found for Chapter "BorderColor"
module Vulkan.Core10.Enums.BorderColor  (BorderColor( BORDER_COLOR_FLOAT_TRANSPARENT_BLACK
                                                    , BORDER_COLOR_INT_TRANSPARENT_BLACK
                                                    , BORDER_COLOR_FLOAT_OPAQUE_BLACK
                                                    , BORDER_COLOR_INT_OPAQUE_BLACK
                                                    , BORDER_COLOR_FLOAT_OPAQUE_WHITE
                                                    , BORDER_COLOR_INT_OPAQUE_WHITE
                                                    , BORDER_COLOR_INT_CUSTOM_EXT
                                                    , BORDER_COLOR_FLOAT_CUSTOM_EXT
                                                    , ..
                                                    )) 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))

-- | VkBorderColor - Specify border color used for texture lookups
--
-- = Description
--
-- These colors are described in detail in
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#textures-texel-replacement Texel Replacement>.
--
-- = 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.Sampler.SamplerCreateInfo'
newtype BorderColor = BorderColor Int32
  deriving newtype (BorderColor -> BorderColor -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BorderColor -> BorderColor -> Bool
$c/= :: BorderColor -> BorderColor -> Bool
== :: BorderColor -> BorderColor -> Bool
$c== :: BorderColor -> BorderColor -> Bool
Eq, Eq BorderColor
BorderColor -> BorderColor -> Bool
BorderColor -> BorderColor -> Ordering
BorderColor -> BorderColor -> BorderColor
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 :: BorderColor -> BorderColor -> BorderColor
$cmin :: BorderColor -> BorderColor -> BorderColor
max :: BorderColor -> BorderColor -> BorderColor
$cmax :: BorderColor -> BorderColor -> BorderColor
>= :: BorderColor -> BorderColor -> Bool
$c>= :: BorderColor -> BorderColor -> Bool
> :: BorderColor -> BorderColor -> Bool
$c> :: BorderColor -> BorderColor -> Bool
<= :: BorderColor -> BorderColor -> Bool
$c<= :: BorderColor -> BorderColor -> Bool
< :: BorderColor -> BorderColor -> Bool
$c< :: BorderColor -> BorderColor -> Bool
compare :: BorderColor -> BorderColor -> Ordering
$ccompare :: BorderColor -> BorderColor -> Ordering
Ord, Ptr BorderColor -> IO BorderColor
Ptr BorderColor -> Int -> IO BorderColor
Ptr BorderColor -> Int -> BorderColor -> IO ()
Ptr BorderColor -> BorderColor -> IO ()
BorderColor -> Int
forall b. Ptr b -> Int -> IO BorderColor
forall b. Ptr b -> Int -> BorderColor -> 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 BorderColor -> BorderColor -> IO ()
$cpoke :: Ptr BorderColor -> BorderColor -> IO ()
peek :: Ptr BorderColor -> IO BorderColor
$cpeek :: Ptr BorderColor -> IO BorderColor
pokeByteOff :: forall b. Ptr b -> Int -> BorderColor -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> BorderColor -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO BorderColor
$cpeekByteOff :: forall b. Ptr b -> Int -> IO BorderColor
pokeElemOff :: Ptr BorderColor -> Int -> BorderColor -> IO ()
$cpokeElemOff :: Ptr BorderColor -> Int -> BorderColor -> IO ()
peekElemOff :: Ptr BorderColor -> Int -> IO BorderColor
$cpeekElemOff :: Ptr BorderColor -> Int -> IO BorderColor
alignment :: BorderColor -> Int
$calignment :: BorderColor -> Int
sizeOf :: BorderColor -> Int
$csizeOf :: BorderColor -> Int
Storable, BorderColor
forall a. a -> Zero a
zero :: BorderColor
$czero :: BorderColor
Zero)

-- | 'BORDER_COLOR_FLOAT_TRANSPARENT_BLACK' specifies a transparent,
-- floating-point format, black color.
pattern $bBORDER_COLOR_FLOAT_TRANSPARENT_BLACK :: BorderColor
$mBORDER_COLOR_FLOAT_TRANSPARENT_BLACK :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_FLOAT_TRANSPARENT_BLACK = BorderColor 0

-- | 'BORDER_COLOR_INT_TRANSPARENT_BLACK' specifies a transparent, integer
-- format, black color.
pattern $bBORDER_COLOR_INT_TRANSPARENT_BLACK :: BorderColor
$mBORDER_COLOR_INT_TRANSPARENT_BLACK :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_INT_TRANSPARENT_BLACK = BorderColor 1

-- | 'BORDER_COLOR_FLOAT_OPAQUE_BLACK' specifies an opaque, floating-point
-- format, black color.
pattern $bBORDER_COLOR_FLOAT_OPAQUE_BLACK :: BorderColor
$mBORDER_COLOR_FLOAT_OPAQUE_BLACK :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_FLOAT_OPAQUE_BLACK = BorderColor 2

-- | 'BORDER_COLOR_INT_OPAQUE_BLACK' specifies an opaque, integer format,
-- black color.
pattern $bBORDER_COLOR_INT_OPAQUE_BLACK :: BorderColor
$mBORDER_COLOR_INT_OPAQUE_BLACK :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_INT_OPAQUE_BLACK = BorderColor 3

-- | 'BORDER_COLOR_FLOAT_OPAQUE_WHITE' specifies an opaque, floating-point
-- format, white color.
pattern $bBORDER_COLOR_FLOAT_OPAQUE_WHITE :: BorderColor
$mBORDER_COLOR_FLOAT_OPAQUE_WHITE :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_FLOAT_OPAQUE_WHITE = BorderColor 4

-- | 'BORDER_COLOR_INT_OPAQUE_WHITE' specifies an opaque, integer format,
-- white color.
pattern $bBORDER_COLOR_INT_OPAQUE_WHITE :: BorderColor
$mBORDER_COLOR_INT_OPAQUE_WHITE :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_INT_OPAQUE_WHITE = BorderColor 5

-- | 'BORDER_COLOR_INT_CUSTOM_EXT' indicates that a
-- 'Vulkan.Extensions.VK_EXT_custom_border_color.SamplerCustomBorderColorCreateInfoEXT'
-- structure is included in the
-- 'Vulkan.Core10.Sampler.SamplerCreateInfo'::@pNext@ chain containing the
-- color data in integer format.
pattern $bBORDER_COLOR_INT_CUSTOM_EXT :: BorderColor
$mBORDER_COLOR_INT_CUSTOM_EXT :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_INT_CUSTOM_EXT = BorderColor 1000287004

-- | 'BORDER_COLOR_FLOAT_CUSTOM_EXT' indicates that a
-- 'Vulkan.Extensions.VK_EXT_custom_border_color.SamplerCustomBorderColorCreateInfoEXT'
-- structure is included in the
-- 'Vulkan.Core10.Sampler.SamplerCreateInfo'::@pNext@ chain containing the
-- color data in floating-point format.
pattern $bBORDER_COLOR_FLOAT_CUSTOM_EXT :: BorderColor
$mBORDER_COLOR_FLOAT_CUSTOM_EXT :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_FLOAT_CUSTOM_EXT = BorderColor 1000287003

{-# COMPLETE
  BORDER_COLOR_FLOAT_TRANSPARENT_BLACK
  , BORDER_COLOR_INT_TRANSPARENT_BLACK
  , BORDER_COLOR_FLOAT_OPAQUE_BLACK
  , BORDER_COLOR_INT_OPAQUE_BLACK
  , BORDER_COLOR_FLOAT_OPAQUE_WHITE
  , BORDER_COLOR_INT_OPAQUE_WHITE
  , BORDER_COLOR_INT_CUSTOM_EXT
  , BORDER_COLOR_FLOAT_CUSTOM_EXT ::
    BorderColor
  #-}

conNameBorderColor :: String
conNameBorderColor :: String
conNameBorderColor = String
"BorderColor"

enumPrefixBorderColor :: String
enumPrefixBorderColor :: String
enumPrefixBorderColor = String
"BORDER_COLOR_"

showTableBorderColor :: [(BorderColor, String)]
showTableBorderColor :: [(BorderColor, String)]
showTableBorderColor =
  [
    ( BorderColor
BORDER_COLOR_FLOAT_TRANSPARENT_BLACK
    , String
"FLOAT_TRANSPARENT_BLACK"
    )
  ,
    ( BorderColor
BORDER_COLOR_INT_TRANSPARENT_BLACK
    , String
"INT_TRANSPARENT_BLACK"
    )
  , (BorderColor
BORDER_COLOR_FLOAT_OPAQUE_BLACK, String
"FLOAT_OPAQUE_BLACK")
  , (BorderColor
BORDER_COLOR_INT_OPAQUE_BLACK, String
"INT_OPAQUE_BLACK")
  , (BorderColor
BORDER_COLOR_FLOAT_OPAQUE_WHITE, String
"FLOAT_OPAQUE_WHITE")
  , (BorderColor
BORDER_COLOR_INT_OPAQUE_WHITE, String
"INT_OPAQUE_WHITE")
  , (BorderColor
BORDER_COLOR_INT_CUSTOM_EXT, String
"INT_CUSTOM_EXT")
  , (BorderColor
BORDER_COLOR_FLOAT_CUSTOM_EXT, String
"FLOAT_CUSTOM_EXT")
  ]

instance Show BorderColor where
  showsPrec :: Int -> BorderColor -> ShowS
showsPrec =
    forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
      String
enumPrefixBorderColor
      [(BorderColor, String)]
showTableBorderColor
      String
conNameBorderColor
      (\(BorderColor Int32
x) -> Int32
x)
      (forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)

instance Read BorderColor where
  readPrec :: ReadPrec BorderColor
readPrec =
    forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
      String
enumPrefixBorderColor
      [(BorderColor, String)]
showTableBorderColor
      String
conNameBorderColor
      Int32 -> BorderColor
BorderColor