{-# language CPP #-}
module Vulkan.Core10.Enums.PipelineBindPoint  (PipelineBindPoint( PIPELINE_BIND_POINT_GRAPHICS
                                                                , PIPELINE_BIND_POINT_COMPUTE
                                                                , PIPELINE_BIND_POINT_RAY_TRACING_KHR
                                                                , ..
                                                                )) where

import GHC.Read (choose)
import GHC.Read (expectP)
import GHC.Read (parens)
import GHC.Show (showParen)
import GHC.Show (showString)
import GHC.Show (showsPrec)
import Text.ParserCombinators.ReadPrec ((+++))
import Text.ParserCombinators.ReadPrec (prec)
import Text.ParserCombinators.ReadPrec (step)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import Text.Read.Lex (Lexeme(Ident))
import Vulkan.Zero (Zero)
-- | VkPipelineBindPoint - Specify the bind point of a pipeline object to a
-- command buffer
--
-- = See Also
--
-- 'Vulkan.Core11.Promoted_From_VK_KHR_descriptor_update_template.DescriptorUpdateTemplateCreateInfo',
-- 'Vulkan.Extensions.VK_NV_device_generated_commands.GeneratedCommandsInfoNV',
-- 'Vulkan.Extensions.VK_NV_device_generated_commands.GeneratedCommandsMemoryRequirementsInfoNV',
-- 'Vulkan.Extensions.VK_NV_device_generated_commands.IndirectCommandsLayoutCreateInfoNV',
-- 'Vulkan.Core10.Pass.SubpassDescription',
-- 'Vulkan.Core12.Promoted_From_VK_KHR_create_renderpass2.SubpassDescription2',
-- 'Vulkan.Core10.CommandBufferBuilding.cmdBindDescriptorSets',
-- 'Vulkan.Core10.CommandBufferBuilding.cmdBindPipeline',
-- 'Vulkan.Extensions.VK_NV_device_generated_commands.cmdBindPipelineShaderGroupNV',
-- 'Vulkan.Extensions.VK_KHR_push_descriptor.cmdPushDescriptorSetKHR'
newtype PipelineBindPoint = PipelineBindPoint Int32
  deriving newtype (PipelineBindPoint -> PipelineBindPoint -> Bool
(PipelineBindPoint -> PipelineBindPoint -> Bool)
-> (PipelineBindPoint -> PipelineBindPoint -> Bool)
-> Eq PipelineBindPoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PipelineBindPoint -> PipelineBindPoint -> Bool
$c/= :: PipelineBindPoint -> PipelineBindPoint -> Bool
== :: PipelineBindPoint -> PipelineBindPoint -> Bool
$c== :: PipelineBindPoint -> PipelineBindPoint -> Bool
Eq, Eq PipelineBindPoint
Eq PipelineBindPoint =>
(PipelineBindPoint -> PipelineBindPoint -> Ordering)
-> (PipelineBindPoint -> PipelineBindPoint -> Bool)
-> (PipelineBindPoint -> PipelineBindPoint -> Bool)
-> (PipelineBindPoint -> PipelineBindPoint -> Bool)
-> (PipelineBindPoint -> PipelineBindPoint -> Bool)
-> (PipelineBindPoint -> PipelineBindPoint -> PipelineBindPoint)
-> (PipelineBindPoint -> PipelineBindPoint -> PipelineBindPoint)
-> Ord PipelineBindPoint
PipelineBindPoint -> PipelineBindPoint -> Bool
PipelineBindPoint -> PipelineBindPoint -> Ordering
PipelineBindPoint -> PipelineBindPoint -> PipelineBindPoint
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 :: PipelineBindPoint -> PipelineBindPoint -> PipelineBindPoint
$cmin :: PipelineBindPoint -> PipelineBindPoint -> PipelineBindPoint
max :: PipelineBindPoint -> PipelineBindPoint -> PipelineBindPoint
$cmax :: PipelineBindPoint -> PipelineBindPoint -> PipelineBindPoint
>= :: PipelineBindPoint -> PipelineBindPoint -> Bool
$c>= :: PipelineBindPoint -> PipelineBindPoint -> Bool
> :: PipelineBindPoint -> PipelineBindPoint -> Bool
$c> :: PipelineBindPoint -> PipelineBindPoint -> Bool
<= :: PipelineBindPoint -> PipelineBindPoint -> Bool
$c<= :: PipelineBindPoint -> PipelineBindPoint -> Bool
< :: PipelineBindPoint -> PipelineBindPoint -> Bool
$c< :: PipelineBindPoint -> PipelineBindPoint -> Bool
compare :: PipelineBindPoint -> PipelineBindPoint -> Ordering
$ccompare :: PipelineBindPoint -> PipelineBindPoint -> Ordering
$cp1Ord :: Eq PipelineBindPoint
Ord, Ptr b -> Int -> IO PipelineBindPoint
Ptr b -> Int -> PipelineBindPoint -> IO ()
Ptr PipelineBindPoint -> IO PipelineBindPoint
Ptr PipelineBindPoint -> Int -> IO PipelineBindPoint
Ptr PipelineBindPoint -> Int -> PipelineBindPoint -> IO ()
Ptr PipelineBindPoint -> PipelineBindPoint -> IO ()
PipelineBindPoint -> Int
(PipelineBindPoint -> Int)
-> (PipelineBindPoint -> Int)
-> (Ptr PipelineBindPoint -> Int -> IO PipelineBindPoint)
-> (Ptr PipelineBindPoint -> Int -> PipelineBindPoint -> IO ())
-> (forall b. Ptr b -> Int -> IO PipelineBindPoint)
-> (forall b. Ptr b -> Int -> PipelineBindPoint -> IO ())
-> (Ptr PipelineBindPoint -> IO PipelineBindPoint)
-> (Ptr PipelineBindPoint -> PipelineBindPoint -> IO ())
-> Storable PipelineBindPoint
forall b. Ptr b -> Int -> IO PipelineBindPoint
forall b. Ptr b -> Int -> PipelineBindPoint -> 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 PipelineBindPoint -> PipelineBindPoint -> IO ()
$cpoke :: Ptr PipelineBindPoint -> PipelineBindPoint -> IO ()
peek :: Ptr PipelineBindPoint -> IO PipelineBindPoint
$cpeek :: Ptr PipelineBindPoint -> IO PipelineBindPoint
pokeByteOff :: Ptr b -> Int -> PipelineBindPoint -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> PipelineBindPoint -> IO ()
peekByteOff :: Ptr b -> Int -> IO PipelineBindPoint
$cpeekByteOff :: forall b. Ptr b -> Int -> IO PipelineBindPoint
pokeElemOff :: Ptr PipelineBindPoint -> Int -> PipelineBindPoint -> IO ()
$cpokeElemOff :: Ptr PipelineBindPoint -> Int -> PipelineBindPoint -> IO ()
peekElemOff :: Ptr PipelineBindPoint -> Int -> IO PipelineBindPoint
$cpeekElemOff :: Ptr PipelineBindPoint -> Int -> IO PipelineBindPoint
alignment :: PipelineBindPoint -> Int
$calignment :: PipelineBindPoint -> Int
sizeOf :: PipelineBindPoint -> Int
$csizeOf :: PipelineBindPoint -> Int
Storable, PipelineBindPoint
PipelineBindPoint -> Zero PipelineBindPoint
forall a. a -> Zero a
zero :: PipelineBindPoint
$czero :: PipelineBindPoint
Zero)

-- | 'PIPELINE_BIND_POINT_GRAPHICS' specifies binding as a graphics pipeline.
pattern $bPIPELINE_BIND_POINT_GRAPHICS :: PipelineBindPoint
$mPIPELINE_BIND_POINT_GRAPHICS :: forall r. PipelineBindPoint -> (Void# -> r) -> (Void# -> r) -> r
PIPELINE_BIND_POINT_GRAPHICS = PipelineBindPoint 0
-- | 'PIPELINE_BIND_POINT_COMPUTE' specifies binding as a compute pipeline.
pattern $bPIPELINE_BIND_POINT_COMPUTE :: PipelineBindPoint
$mPIPELINE_BIND_POINT_COMPUTE :: forall r. PipelineBindPoint -> (Void# -> r) -> (Void# -> r) -> r
PIPELINE_BIND_POINT_COMPUTE = PipelineBindPoint 1
-- | 'PIPELINE_BIND_POINT_RAY_TRACING_KHR' specifies binding as a ray tracing
-- pipeline.
pattern $bPIPELINE_BIND_POINT_RAY_TRACING_KHR :: PipelineBindPoint
$mPIPELINE_BIND_POINT_RAY_TRACING_KHR :: forall r. PipelineBindPoint -> (Void# -> r) -> (Void# -> r) -> r
PIPELINE_BIND_POINT_RAY_TRACING_KHR = PipelineBindPoint 1000165000
{-# complete PIPELINE_BIND_POINT_GRAPHICS,
             PIPELINE_BIND_POINT_COMPUTE,
             PIPELINE_BIND_POINT_RAY_TRACING_KHR :: PipelineBindPoint #-}

instance Show PipelineBindPoint where
  showsPrec :: Int -> PipelineBindPoint -> ShowS
showsPrec p :: Int
p = \case
    PIPELINE_BIND_POINT_GRAPHICS -> String -> ShowS
showString "PIPELINE_BIND_POINT_GRAPHICS"
    PIPELINE_BIND_POINT_COMPUTE -> String -> ShowS
showString "PIPELINE_BIND_POINT_COMPUTE"
    PIPELINE_BIND_POINT_RAY_TRACING_KHR -> String -> ShowS
showString "PIPELINE_BIND_POINT_RAY_TRACING_KHR"
    PipelineBindPoint x :: Int32
x -> Bool -> ShowS -> ShowS
showParen (Int
p Int -> Int -> Bool
forall a. Ord a => a -> a -> Bool
>= 11) (String -> ShowS
showString "PipelineBindPoint " ShowS -> ShowS -> ShowS
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11 Int32
x)

instance Read PipelineBindPoint where
  readPrec :: ReadPrec PipelineBindPoint
readPrec = ReadPrec PipelineBindPoint -> ReadPrec PipelineBindPoint
forall a. ReadPrec a -> ReadPrec a
parens ([(String, ReadPrec PipelineBindPoint)]
-> ReadPrec PipelineBindPoint
forall a. [(String, ReadPrec a)] -> ReadPrec a
choose [("PIPELINE_BIND_POINT_GRAPHICS", PipelineBindPoint -> ReadPrec PipelineBindPoint
forall (f :: * -> *) a. Applicative f => a -> f a
pure PipelineBindPoint
PIPELINE_BIND_POINT_GRAPHICS)
                            , ("PIPELINE_BIND_POINT_COMPUTE", PipelineBindPoint -> ReadPrec PipelineBindPoint
forall (f :: * -> *) a. Applicative f => a -> f a
pure PipelineBindPoint
PIPELINE_BIND_POINT_COMPUTE)
                            , ("PIPELINE_BIND_POINT_RAY_TRACING_KHR", PipelineBindPoint -> ReadPrec PipelineBindPoint
forall (f :: * -> *) a. Applicative f => a -> f a
pure PipelineBindPoint
PIPELINE_BIND_POINT_RAY_TRACING_KHR)]
                     ReadPrec PipelineBindPoint
-> ReadPrec PipelineBindPoint -> ReadPrec PipelineBindPoint
forall a. ReadPrec a -> ReadPrec a -> ReadPrec a
+++
                     Int -> ReadPrec PipelineBindPoint -> ReadPrec PipelineBindPoint
forall a. Int -> ReadPrec a -> ReadPrec a
prec 10 (do
                       Lexeme -> ReadPrec ()
expectP (String -> Lexeme
Ident "PipelineBindPoint")
                       Int32
v <- ReadPrec Int32 -> ReadPrec Int32
forall a. ReadPrec a -> ReadPrec a
step ReadPrec Int32
forall a. Read a => ReadPrec a
readPrec
                       PipelineBindPoint -> ReadPrec PipelineBindPoint
forall (f :: * -> *) a. Applicative f => a -> f a
pure (Int32 -> PipelineBindPoint
PipelineBindPoint Int32
v)))