{-# language CPP #-}
-- No documentation found for Chapter "FrontFace"
module Vulkan.Core10.Enums.FrontFace  (FrontFace( FRONT_FACE_COUNTER_CLOCKWISE
                                                , FRONT_FACE_CLOCKWISE
                                                , ..
                                                )) 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))

-- | VkFrontFace - Interpret polygon front-facing orientation
--
-- = Description
--
-- Any triangle which is not front-facing is back-facing, including
-- zero-area triangles.
--
-- = 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.Pipeline.PipelineRasterizationStateCreateInfo',
-- 'Vulkan.Core13.Promoted_From_VK_EXT_extended_dynamic_state.cmdSetFrontFace',
-- 'Vulkan.Extensions.VK_EXT_extended_dynamic_state.cmdSetFrontFaceEXT'
newtype FrontFace = FrontFace Int32
  deriving newtype (FrontFace -> FrontFace -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FrontFace -> FrontFace -> Bool
$c/= :: FrontFace -> FrontFace -> Bool
== :: FrontFace -> FrontFace -> Bool
$c== :: FrontFace -> FrontFace -> Bool
Eq, Eq FrontFace
FrontFace -> FrontFace -> Bool
FrontFace -> FrontFace -> Ordering
FrontFace -> FrontFace -> FrontFace
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 :: FrontFace -> FrontFace -> FrontFace
$cmin :: FrontFace -> FrontFace -> FrontFace
max :: FrontFace -> FrontFace -> FrontFace
$cmax :: FrontFace -> FrontFace -> FrontFace
>= :: FrontFace -> FrontFace -> Bool
$c>= :: FrontFace -> FrontFace -> Bool
> :: FrontFace -> FrontFace -> Bool
$c> :: FrontFace -> FrontFace -> Bool
<= :: FrontFace -> FrontFace -> Bool
$c<= :: FrontFace -> FrontFace -> Bool
< :: FrontFace -> FrontFace -> Bool
$c< :: FrontFace -> FrontFace -> Bool
compare :: FrontFace -> FrontFace -> Ordering
$ccompare :: FrontFace -> FrontFace -> Ordering
Ord, Ptr FrontFace -> IO FrontFace
Ptr FrontFace -> Int -> IO FrontFace
Ptr FrontFace -> Int -> FrontFace -> IO ()
Ptr FrontFace -> FrontFace -> IO ()
FrontFace -> Int
forall b. Ptr b -> Int -> IO FrontFace
forall b. Ptr b -> Int -> FrontFace -> 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 FrontFace -> FrontFace -> IO ()
$cpoke :: Ptr FrontFace -> FrontFace -> IO ()
peek :: Ptr FrontFace -> IO FrontFace
$cpeek :: Ptr FrontFace -> IO FrontFace
pokeByteOff :: forall b. Ptr b -> Int -> FrontFace -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> FrontFace -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO FrontFace
$cpeekByteOff :: forall b. Ptr b -> Int -> IO FrontFace
pokeElemOff :: Ptr FrontFace -> Int -> FrontFace -> IO ()
$cpokeElemOff :: Ptr FrontFace -> Int -> FrontFace -> IO ()
peekElemOff :: Ptr FrontFace -> Int -> IO FrontFace
$cpeekElemOff :: Ptr FrontFace -> Int -> IO FrontFace
alignment :: FrontFace -> Int
$calignment :: FrontFace -> Int
sizeOf :: FrontFace -> Int
$csizeOf :: FrontFace -> Int
Storable, FrontFace
forall a. a -> Zero a
zero :: FrontFace
$czero :: FrontFace
Zero)

-- | 'FRONT_FACE_COUNTER_CLOCKWISE' specifies that a triangle with positive
-- area is considered front-facing.
pattern $bFRONT_FACE_COUNTER_CLOCKWISE :: FrontFace
$mFRONT_FACE_COUNTER_CLOCKWISE :: forall {r}. FrontFace -> ((# #) -> r) -> ((# #) -> r) -> r
FRONT_FACE_COUNTER_CLOCKWISE = FrontFace 0

-- | 'FRONT_FACE_CLOCKWISE' specifies that a triangle with negative area is
-- considered front-facing.
pattern $bFRONT_FACE_CLOCKWISE :: FrontFace
$mFRONT_FACE_CLOCKWISE :: forall {r}. FrontFace -> ((# #) -> r) -> ((# #) -> r) -> r
FRONT_FACE_CLOCKWISE = FrontFace 1

{-# COMPLETE
  FRONT_FACE_COUNTER_CLOCKWISE
  , FRONT_FACE_CLOCKWISE ::
    FrontFace
  #-}

conNameFrontFace :: String
conNameFrontFace :: String
conNameFrontFace = String
"FrontFace"

enumPrefixFrontFace :: String
enumPrefixFrontFace :: String
enumPrefixFrontFace = String
"FRONT_FACE_C"

showTableFrontFace :: [(FrontFace, String)]
showTableFrontFace :: [(FrontFace, String)]
showTableFrontFace =
  [ (FrontFace
FRONT_FACE_COUNTER_CLOCKWISE, String
"OUNTER_CLOCKWISE")
  , (FrontFace
FRONT_FACE_CLOCKWISE, String
"LOCKWISE")
  ]

instance Show FrontFace where
  showsPrec :: Int -> FrontFace -> ShowS
showsPrec =
    forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
      String
enumPrefixFrontFace
      [(FrontFace, String)]
showTableFrontFace
      String
conNameFrontFace
      (\(FrontFace Int32
x) -> Int32
x)
      (forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)

instance Read FrontFace where
  readPrec :: ReadPrec FrontFace
readPrec =
    forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
      String
enumPrefixFrontFace
      [(FrontFace, String)]
showTableFrontFace
      String
conNameFrontFace
      Int32 -> FrontFace
FrontFace