{-# language CPP #-}
-- No documentation found for Chapter "PipelineRobustnessImageBehavior"
module Vulkan.Core14.Enums.PipelineRobustnessImageBehavior  (PipelineRobustnessImageBehavior( PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DEVICE_DEFAULT
                                                                                            , PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DISABLED
                                                                                            , PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS
                                                                                            , PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2
                                                                                            , ..
                                                                                            )) 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))

-- | VkPipelineRobustnessImageBehavior - Enum controlling the robustness of
-- image accesses in a pipeline stage
--
-- = Description
--
-- -   'PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DEVICE_DEFAULT' specifies that
--     <https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#shaders-execution-memory-access-bounds out of bounds>
--     image accesses follow the behavior of robust image access features
--     enabled for the device.
--
-- -   'PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DISABLED' specifies that image
--     accesses /must/ not be
--     <https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#shaders-execution-memory-access-bounds out of bounds>.
--
-- -   'PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS' specifies
--     that image accesses conform to
--     <https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#shaders-robust-image-access>
--     guarantees.
--
-- -   'PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2' specifies
--     that image accesses conform to
--     <https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#shaders-robust-image-access2>
--     guarantees.
--
-- = See Also
--
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_EXT_pipeline_robustness VK_EXT_pipeline_robustness>,
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_VERSION_1_4 VK_VERSION_1_4>,
-- 'Vulkan.Core14.Promoted_From_VK_EXT_pipeline_robustnessAdditionalFunctionality'.PhysicalDevicePipelineRobustnessProperties',
-- 'Vulkan.Core14.PhysicalDeviceVulkan14Properties',
-- 'Vulkan.Core14.Promoted_From_VK_EXT_pipeline_robustnessAdditionalFunctionality'.PipelineRobustnessCreateInfo'
newtype PipelineRobustnessImageBehavior = PipelineRobustnessImageBehavior Int32
  deriving newtype (PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
(PipelineRobustnessImageBehavior
 -> PipelineRobustnessImageBehavior -> Bool)
-> (PipelineRobustnessImageBehavior
    -> PipelineRobustnessImageBehavior -> Bool)
-> Eq PipelineRobustnessImageBehavior
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
== :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
$c/= :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
/= :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
Eq, Eq PipelineRobustnessImageBehavior
Eq PipelineRobustnessImageBehavior =>
(PipelineRobustnessImageBehavior
 -> PipelineRobustnessImageBehavior -> Ordering)
-> (PipelineRobustnessImageBehavior
    -> PipelineRobustnessImageBehavior -> Bool)
-> (PipelineRobustnessImageBehavior
    -> PipelineRobustnessImageBehavior -> Bool)
-> (PipelineRobustnessImageBehavior
    -> PipelineRobustnessImageBehavior -> Bool)
-> (PipelineRobustnessImageBehavior
    -> PipelineRobustnessImageBehavior -> Bool)
-> (PipelineRobustnessImageBehavior
    -> PipelineRobustnessImageBehavior
    -> PipelineRobustnessImageBehavior)
-> (PipelineRobustnessImageBehavior
    -> PipelineRobustnessImageBehavior
    -> PipelineRobustnessImageBehavior)
-> Ord PipelineRobustnessImageBehavior
PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Ordering
PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior
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
$ccompare :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Ordering
compare :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Ordering
$c< :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
< :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
$c<= :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
<= :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
$c> :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
> :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
$c>= :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
>= :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> Bool
$cmax :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior
max :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior
$cmin :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior
min :: PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior
Ord, Ptr PipelineRobustnessImageBehavior
-> IO PipelineRobustnessImageBehavior
Ptr PipelineRobustnessImageBehavior
-> Int -> IO PipelineRobustnessImageBehavior
Ptr PipelineRobustnessImageBehavior
-> Int -> PipelineRobustnessImageBehavior -> IO ()
Ptr PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> IO ()
PipelineRobustnessImageBehavior -> Int
(PipelineRobustnessImageBehavior -> Int)
-> (PipelineRobustnessImageBehavior -> Int)
-> (Ptr PipelineRobustnessImageBehavior
    -> Int -> IO PipelineRobustnessImageBehavior)
-> (Ptr PipelineRobustnessImageBehavior
    -> Int -> PipelineRobustnessImageBehavior -> IO ())
-> (forall b. Ptr b -> Int -> IO PipelineRobustnessImageBehavior)
-> (forall b.
    Ptr b -> Int -> PipelineRobustnessImageBehavior -> IO ())
-> (Ptr PipelineRobustnessImageBehavior
    -> IO PipelineRobustnessImageBehavior)
-> (Ptr PipelineRobustnessImageBehavior
    -> PipelineRobustnessImageBehavior -> IO ())
-> Storable PipelineRobustnessImageBehavior
forall b. Ptr b -> Int -> IO PipelineRobustnessImageBehavior
forall b. Ptr b -> Int -> PipelineRobustnessImageBehavior -> 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
$csizeOf :: PipelineRobustnessImageBehavior -> Int
sizeOf :: PipelineRobustnessImageBehavior -> Int
$calignment :: PipelineRobustnessImageBehavior -> Int
alignment :: PipelineRobustnessImageBehavior -> Int
$cpeekElemOff :: Ptr PipelineRobustnessImageBehavior
-> Int -> IO PipelineRobustnessImageBehavior
peekElemOff :: Ptr PipelineRobustnessImageBehavior
-> Int -> IO PipelineRobustnessImageBehavior
$cpokeElemOff :: Ptr PipelineRobustnessImageBehavior
-> Int -> PipelineRobustnessImageBehavior -> IO ()
pokeElemOff :: Ptr PipelineRobustnessImageBehavior
-> Int -> PipelineRobustnessImageBehavior -> IO ()
$cpeekByteOff :: forall b. Ptr b -> Int -> IO PipelineRobustnessImageBehavior
peekByteOff :: forall b. Ptr b -> Int -> IO PipelineRobustnessImageBehavior
$cpokeByteOff :: forall b. Ptr b -> Int -> PipelineRobustnessImageBehavior -> IO ()
pokeByteOff :: forall b. Ptr b -> Int -> PipelineRobustnessImageBehavior -> IO ()
$cpeek :: Ptr PipelineRobustnessImageBehavior
-> IO PipelineRobustnessImageBehavior
peek :: Ptr PipelineRobustnessImageBehavior
-> IO PipelineRobustnessImageBehavior
$cpoke :: Ptr PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> IO ()
poke :: Ptr PipelineRobustnessImageBehavior
-> PipelineRobustnessImageBehavior -> IO ()
Storable, PipelineRobustnessImageBehavior
PipelineRobustnessImageBehavior
-> Zero PipelineRobustnessImageBehavior
forall a. a -> Zero a
$czero :: PipelineRobustnessImageBehavior
zero :: PipelineRobustnessImageBehavior
Zero)

-- No documentation found for Nested "VkPipelineRobustnessImageBehavior" "VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DEVICE_DEFAULT"
pattern $mPIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DEVICE_DEFAULT :: forall {r}.
PipelineRobustnessImageBehavior
-> ((# #) -> r) -> ((# #) -> r) -> r
$bPIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DEVICE_DEFAULT :: PipelineRobustnessImageBehavior
PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DEVICE_DEFAULT = PipelineRobustnessImageBehavior 0

-- No documentation found for Nested "VkPipelineRobustnessImageBehavior" "VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DISABLED"
pattern $mPIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DISABLED :: forall {r}.
PipelineRobustnessImageBehavior
-> ((# #) -> r) -> ((# #) -> r) -> r
$bPIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DISABLED :: PipelineRobustnessImageBehavior
PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DISABLED = PipelineRobustnessImageBehavior 1

-- No documentation found for Nested "VkPipelineRobustnessImageBehavior" "VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS"
pattern $mPIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS :: forall {r}.
PipelineRobustnessImageBehavior
-> ((# #) -> r) -> ((# #) -> r) -> r
$bPIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS :: PipelineRobustnessImageBehavior
PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS = PipelineRobustnessImageBehavior 2

-- No documentation found for Nested "VkPipelineRobustnessImageBehavior" "VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2"
pattern $mPIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2 :: forall {r}.
PipelineRobustnessImageBehavior
-> ((# #) -> r) -> ((# #) -> r) -> r
$bPIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2 :: PipelineRobustnessImageBehavior
PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2 = PipelineRobustnessImageBehavior 3

{-# COMPLETE
  PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DEVICE_DEFAULT
  , PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DISABLED
  , PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS
  , PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2 ::
    PipelineRobustnessImageBehavior
  #-}

conNamePipelineRobustnessImageBehavior :: String
conNamePipelineRobustnessImageBehavior :: String
conNamePipelineRobustnessImageBehavior = String
"PipelineRobustnessImageBehavior"

enumPrefixPipelineRobustnessImageBehavior :: String
enumPrefixPipelineRobustnessImageBehavior :: String
enumPrefixPipelineRobustnessImageBehavior = String
"PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_"

showTablePipelineRobustnessImageBehavior :: [(PipelineRobustnessImageBehavior, String)]
showTablePipelineRobustnessImageBehavior :: [(PipelineRobustnessImageBehavior, String)]
showTablePipelineRobustnessImageBehavior =
  [
    ( PipelineRobustnessImageBehavior
PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DEVICE_DEFAULT
    , String
"DEVICE_DEFAULT"
    )
  ,
    ( PipelineRobustnessImageBehavior
PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_DISABLED
    , String
"DISABLED"
    )
  ,
    ( PipelineRobustnessImageBehavior
PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS
    , String
"ROBUST_IMAGE_ACCESS"
    )
  ,
    ( PipelineRobustnessImageBehavior
PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2
    , String
"ROBUST_IMAGE_ACCESS_2"
    )
  ]

instance Show PipelineRobustnessImageBehavior where
  showsPrec :: Int -> PipelineRobustnessImageBehavior -> ShowS
showsPrec =
    String
-> [(PipelineRobustnessImageBehavior, String)]
-> String
-> (PipelineRobustnessImageBehavior -> Int32)
-> (Int32 -> ShowS)
-> Int
-> PipelineRobustnessImageBehavior
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
      String
enumPrefixPipelineRobustnessImageBehavior
      [(PipelineRobustnessImageBehavior, String)]
showTablePipelineRobustnessImageBehavior
      String
conNamePipelineRobustnessImageBehavior
      (\(PipelineRobustnessImageBehavior Int32
x) -> Int32
x)
      (Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)

instance Read PipelineRobustnessImageBehavior where
  readPrec :: ReadPrec PipelineRobustnessImageBehavior
readPrec =
    String
-> [(PipelineRobustnessImageBehavior, String)]
-> String
-> (Int32 -> PipelineRobustnessImageBehavior)
-> ReadPrec PipelineRobustnessImageBehavior
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
      String
enumPrefixPipelineRobustnessImageBehavior
      [(PipelineRobustnessImageBehavior, String)]
showTablePipelineRobustnessImageBehavior
      String
conNamePipelineRobustnessImageBehavior
      Int32 -> PipelineRobustnessImageBehavior
PipelineRobustnessImageBehavior