{-# 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 Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
import Vulkan.Zero (Zero)
-- | VkBorderColor - Specify border color used for texture lookups
--
-- = Description
--
-- These colors are described in detail in
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#textures-texel-replacement Texel Replacement>.
--
-- = See Also
--
-- 'Vulkan.Core10.Sampler.SamplerCreateInfo'
newtype BorderColor = BorderColor Int32
  deriving newtype (BorderColor -> BorderColor -> Bool
(BorderColor -> BorderColor -> Bool)
-> (BorderColor -> BorderColor -> Bool) -> Eq BorderColor
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
Eq BorderColor =>
(BorderColor -> BorderColor -> Ordering)
-> (BorderColor -> BorderColor -> Bool)
-> (BorderColor -> BorderColor -> Bool)
-> (BorderColor -> BorderColor -> Bool)
-> (BorderColor -> BorderColor -> Bool)
-> (BorderColor -> BorderColor -> BorderColor)
-> (BorderColor -> BorderColor -> BorderColor)
-> Ord 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
$cp1Ord :: Eq BorderColor
Ord, Ptr b -> Int -> IO BorderColor
Ptr b -> Int -> BorderColor -> IO ()
Ptr BorderColor -> IO BorderColor
Ptr BorderColor -> Int -> IO BorderColor
Ptr BorderColor -> Int -> BorderColor -> IO ()
Ptr BorderColor -> BorderColor -> IO ()
BorderColor -> Int
(BorderColor -> Int)
-> (BorderColor -> Int)
-> (Ptr BorderColor -> Int -> IO BorderColor)
-> (Ptr BorderColor -> Int -> BorderColor -> IO ())
-> (forall b. Ptr b -> Int -> IO BorderColor)
-> (forall b. Ptr b -> Int -> BorderColor -> IO ())
-> (Ptr BorderColor -> IO BorderColor)
-> (Ptr BorderColor -> BorderColor -> IO ())
-> Storable BorderColor
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 :: Ptr b -> Int -> BorderColor -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> BorderColor -> IO ()
peekByteOff :: 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
BorderColor -> Zero 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 present in the
-- 'Vulkan.Core10.Sampler.SamplerCreateInfo'::@pNext@ chain which contains
-- the color data in integer format.
pattern $bBORDER_COLOR_INT_CUSTOM_EXT :: BorderColor
$mBORDER_COLOR_INT_CUSTOM_EXT :: forall r. BorderColor -> (Void# -> r) -> (Void# -> 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 present in the
-- 'Vulkan.Core10.Sampler.SamplerCreateInfo'::@pNext@ chain which contains
-- the color data in floating-point format.
pattern $bBORDER_COLOR_FLOAT_CUSTOM_EXT :: BorderColor
$mBORDER_COLOR_FLOAT_CUSTOM_EXT :: forall r. BorderColor -> (Void# -> r) -> (Void# -> 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 = "BorderColor"

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

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

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

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