{-# language CPP #-}
-- No documentation found for Chapter "ShaderFloatControlsIndependence"
module Vulkan.Core12.Enums.ShaderFloatControlsIndependence  (ShaderFloatControlsIndependence( SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY
                                                                                            , SHADER_FLOAT_CONTROLS_INDEPENDENCE_ALL
                                                                                            , SHADER_FLOAT_CONTROLS_INDEPENDENCE_NONE
                                                                                            , ..
                                                                                            )) 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))

-- | VkShaderFloatControlsIndependence - Enum specifying whether, and how,
-- shader float controls can be set separately
--
-- = See Also
--
-- 'Vulkan.Core12.Promoted_From_VK_KHR_shader_float_controls.PhysicalDeviceFloatControlsProperties',
-- 'Vulkan.Core12.PhysicalDeviceVulkan12Properties'
newtype ShaderFloatControlsIndependence = ShaderFloatControlsIndependence Int32
  deriving newtype (ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
(ShaderFloatControlsIndependence
 -> ShaderFloatControlsIndependence -> Bool)
-> (ShaderFloatControlsIndependence
    -> ShaderFloatControlsIndependence -> Bool)
-> Eq ShaderFloatControlsIndependence
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
$c/= :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
== :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
$c== :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
Eq, Eq ShaderFloatControlsIndependence
Eq ShaderFloatControlsIndependence =>
(ShaderFloatControlsIndependence
 -> ShaderFloatControlsIndependence -> Ordering)
-> (ShaderFloatControlsIndependence
    -> ShaderFloatControlsIndependence -> Bool)
-> (ShaderFloatControlsIndependence
    -> ShaderFloatControlsIndependence -> Bool)
-> (ShaderFloatControlsIndependence
    -> ShaderFloatControlsIndependence -> Bool)
-> (ShaderFloatControlsIndependence
    -> ShaderFloatControlsIndependence -> Bool)
-> (ShaderFloatControlsIndependence
    -> ShaderFloatControlsIndependence
    -> ShaderFloatControlsIndependence)
-> (ShaderFloatControlsIndependence
    -> ShaderFloatControlsIndependence
    -> ShaderFloatControlsIndependence)
-> Ord ShaderFloatControlsIndependence
ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Ordering
ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence
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 :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence
$cmin :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence
max :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence
$cmax :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence
>= :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
$c>= :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
> :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
$c> :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
<= :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
$c<= :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
< :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
$c< :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Bool
compare :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Ordering
$ccompare :: ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> Ordering
$cp1Ord :: Eq ShaderFloatControlsIndependence
Ord, Ptr b -> Int -> IO ShaderFloatControlsIndependence
Ptr b -> Int -> ShaderFloatControlsIndependence -> IO ()
Ptr ShaderFloatControlsIndependence
-> IO ShaderFloatControlsIndependence
Ptr ShaderFloatControlsIndependence
-> Int -> IO ShaderFloatControlsIndependence
Ptr ShaderFloatControlsIndependence
-> Int -> ShaderFloatControlsIndependence -> IO ()
Ptr ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> IO ()
ShaderFloatControlsIndependence -> Int
(ShaderFloatControlsIndependence -> Int)
-> (ShaderFloatControlsIndependence -> Int)
-> (Ptr ShaderFloatControlsIndependence
    -> Int -> IO ShaderFloatControlsIndependence)
-> (Ptr ShaderFloatControlsIndependence
    -> Int -> ShaderFloatControlsIndependence -> IO ())
-> (forall b. Ptr b -> Int -> IO ShaderFloatControlsIndependence)
-> (forall b.
    Ptr b -> Int -> ShaderFloatControlsIndependence -> IO ())
-> (Ptr ShaderFloatControlsIndependence
    -> IO ShaderFloatControlsIndependence)
-> (Ptr ShaderFloatControlsIndependence
    -> ShaderFloatControlsIndependence -> IO ())
-> Storable ShaderFloatControlsIndependence
forall b. Ptr b -> Int -> IO ShaderFloatControlsIndependence
forall b. Ptr b -> Int -> ShaderFloatControlsIndependence -> 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 ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> IO ()
$cpoke :: Ptr ShaderFloatControlsIndependence
-> ShaderFloatControlsIndependence -> IO ()
peek :: Ptr ShaderFloatControlsIndependence
-> IO ShaderFloatControlsIndependence
$cpeek :: Ptr ShaderFloatControlsIndependence
-> IO ShaderFloatControlsIndependence
pokeByteOff :: Ptr b -> Int -> ShaderFloatControlsIndependence -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> ShaderFloatControlsIndependence -> IO ()
peekByteOff :: Ptr b -> Int -> IO ShaderFloatControlsIndependence
$cpeekByteOff :: forall b. Ptr b -> Int -> IO ShaderFloatControlsIndependence
pokeElemOff :: Ptr ShaderFloatControlsIndependence
-> Int -> ShaderFloatControlsIndependence -> IO ()
$cpokeElemOff :: Ptr ShaderFloatControlsIndependence
-> Int -> ShaderFloatControlsIndependence -> IO ()
peekElemOff :: Ptr ShaderFloatControlsIndependence
-> Int -> IO ShaderFloatControlsIndependence
$cpeekElemOff :: Ptr ShaderFloatControlsIndependence
-> Int -> IO ShaderFloatControlsIndependence
alignment :: ShaderFloatControlsIndependence -> Int
$calignment :: ShaderFloatControlsIndependence -> Int
sizeOf :: ShaderFloatControlsIndependence -> Int
$csizeOf :: ShaderFloatControlsIndependence -> Int
Storable, ShaderFloatControlsIndependence
ShaderFloatControlsIndependence
-> Zero ShaderFloatControlsIndependence
forall a. a -> Zero a
zero :: ShaderFloatControlsIndependence
$czero :: ShaderFloatControlsIndependence
Zero)

-- | 'SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY' specifies that shader
-- float controls for 32-bit floating point /can/ be set independently;
-- other bit widths /must/ be set identically to each other.
pattern $bSHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY :: ShaderFloatControlsIndependence
$mSHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY :: forall r.
ShaderFloatControlsIndependence
-> (Void# -> r) -> (Void# -> r) -> r
SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY = ShaderFloatControlsIndependence 0
-- | 'SHADER_FLOAT_CONTROLS_INDEPENDENCE_ALL' specifies that shader float
-- controls for all bit widths /can/ be set independently.
pattern $bSHADER_FLOAT_CONTROLS_INDEPENDENCE_ALL :: ShaderFloatControlsIndependence
$mSHADER_FLOAT_CONTROLS_INDEPENDENCE_ALL :: forall r.
ShaderFloatControlsIndependence
-> (Void# -> r) -> (Void# -> r) -> r
SHADER_FLOAT_CONTROLS_INDEPENDENCE_ALL         = ShaderFloatControlsIndependence 1
-- | 'SHADER_FLOAT_CONTROLS_INDEPENDENCE_NONE' specifies that shader float
-- controls for all bit widths /must/ be set identically.
pattern $bSHADER_FLOAT_CONTROLS_INDEPENDENCE_NONE :: ShaderFloatControlsIndependence
$mSHADER_FLOAT_CONTROLS_INDEPENDENCE_NONE :: forall r.
ShaderFloatControlsIndependence
-> (Void# -> r) -> (Void# -> r) -> r
SHADER_FLOAT_CONTROLS_INDEPENDENCE_NONE        = ShaderFloatControlsIndependence 2
{-# complete SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY,
             SHADER_FLOAT_CONTROLS_INDEPENDENCE_ALL,
             SHADER_FLOAT_CONTROLS_INDEPENDENCE_NONE :: ShaderFloatControlsIndependence #-}

conNameShaderFloatControlsIndependence :: String
conNameShaderFloatControlsIndependence :: String
conNameShaderFloatControlsIndependence = "ShaderFloatControlsIndependence"

enumPrefixShaderFloatControlsIndependence :: String
enumPrefixShaderFloatControlsIndependence :: String
enumPrefixShaderFloatControlsIndependence = "SHADER_FLOAT_CONTROLS_INDEPENDENCE_"

showTableShaderFloatControlsIndependence :: [(ShaderFloatControlsIndependence, String)]
showTableShaderFloatControlsIndependence :: [(ShaderFloatControlsIndependence, String)]
showTableShaderFloatControlsIndependence =
  [ (ShaderFloatControlsIndependence
SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY, "32_BIT_ONLY")
  , (ShaderFloatControlsIndependence
SHADER_FLOAT_CONTROLS_INDEPENDENCE_ALL        , "ALL")
  , (ShaderFloatControlsIndependence
SHADER_FLOAT_CONTROLS_INDEPENDENCE_NONE       , "NONE")
  ]

instance Show ShaderFloatControlsIndependence where
  showsPrec :: Int -> ShaderFloatControlsIndependence -> ShowS
showsPrec = String
-> [(ShaderFloatControlsIndependence, String)]
-> String
-> (ShaderFloatControlsIndependence -> Int32)
-> (Int32 -> ShowS)
-> Int
-> ShaderFloatControlsIndependence
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixShaderFloatControlsIndependence
                            [(ShaderFloatControlsIndependence, String)]
showTableShaderFloatControlsIndependence
                            String
conNameShaderFloatControlsIndependence
                            (\(ShaderFloatControlsIndependence x :: Int32
x) -> Int32
x)
                            (Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11)

instance Read ShaderFloatControlsIndependence where
  readPrec :: ReadPrec ShaderFloatControlsIndependence
readPrec = String
-> [(ShaderFloatControlsIndependence, String)]
-> String
-> (Int32 -> ShaderFloatControlsIndependence)
-> ReadPrec ShaderFloatControlsIndependence
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixShaderFloatControlsIndependence
                          [(ShaderFloatControlsIndependence, String)]
showTableShaderFloatControlsIndependence
                          String
conNameShaderFloatControlsIndependence
                          Int32 -> ShaderFloatControlsIndependence
ShaderFloatControlsIndependence