{-# language CPP #-}
module Vulkan.Extensions.VK_EXT_graphics_pipeline_library ( PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT(..)
, PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT(..)
, GraphicsPipelineLibraryCreateInfoEXT(..)
, GraphicsPipelineLibraryFlagsEXT
, GraphicsPipelineLibraryFlagBitsEXT( GRAPHICS_PIPELINE_LIBRARY_VERTEX_INPUT_INTERFACE_BIT_EXT
, GRAPHICS_PIPELINE_LIBRARY_PRE_RASTERIZATION_SHADERS_BIT_EXT
, GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_SHADER_BIT_EXT
, GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_OUTPUT_INTERFACE_BIT_EXT
, ..
)
, EXT_GRAPHICS_PIPELINE_LIBRARY_SPEC_VERSION
, pattern EXT_GRAPHICS_PIPELINE_LIBRARY_SPEC_VERSION
, EXT_GRAPHICS_PIPELINE_LIBRARY_EXTENSION_NAME
, pattern EXT_GRAPHICS_PIPELINE_LIBRARY_EXTENSION_NAME
) where
import Data.Bits (Bits)
import Data.Bits (FiniteBits)
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import Foreign.Marshal.Alloc (allocaBytes)
import Foreign.Ptr (nullPtr)
import Foreign.Ptr (plusPtr)
import GHC.Show (showString)
import Numeric (showHex)
import Vulkan.CStruct (FromCStruct)
import Vulkan.CStruct (FromCStruct(..))
import Vulkan.CStruct (ToCStruct)
import Vulkan.CStruct (ToCStruct(..))
import Vulkan.Zero (Zero)
import Vulkan.Zero (Zero(..))
import Data.String (IsString)
import Data.Typeable (Typeable)
import Foreign.Storable (Storable)
import Foreign.Storable (Storable(peek))
import Foreign.Storable (Storable(poke))
import qualified Foreign.Storable (Storable(..))
import GHC.Generics (Generic)
import Foreign.Ptr (Ptr)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
import Data.Kind (Type)
import Vulkan.Core10.FundamentalTypes (bool32ToBool)
import Vulkan.Core10.FundamentalTypes (boolToBool32)
import Vulkan.Core10.FundamentalTypes (Bool32)
import Vulkan.Core10.FundamentalTypes (Flags)
import Vulkan.Core10.Enums.StructureType (StructureType)
import Vulkan.Core10.Enums.StructureType (StructureType(STRUCTURE_TYPE_GRAPHICS_PIPELINE_LIBRARY_CREATE_INFO_EXT))
import Vulkan.Core10.Enums.StructureType (StructureType(STRUCTURE_TYPE_PHYSICAL_DEVICE_GRAPHICS_PIPELINE_LIBRARY_FEATURES_EXT))
import Vulkan.Core10.Enums.StructureType (StructureType(STRUCTURE_TYPE_PHYSICAL_DEVICE_GRAPHICS_PIPELINE_LIBRARY_PROPERTIES_EXT))
data PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT = PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
{
PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> Bool
graphicsPipelineLibrary :: Bool }
deriving (Typeable, PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
-> PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
-> PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> Bool
$c/= :: PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
-> PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> Bool
== :: PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
-> PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> Bool
$c== :: PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
-> PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> Bool
Eq)
#if defined(GENERIC_INSTANCES)
deriving instance Generic (PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT)
#endif
deriving instance Show PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
instance ToCStruct PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT where
withCStruct :: forall b.
PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
-> (Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> IO b)
-> IO b
withCStruct PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
x Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> IO b
f = forall a b. Int -> (Ptr a -> IO b) -> IO b
allocaBytes Int
24 forall a b. (a -> b) -> a -> b
$ \Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
p -> forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
p PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
x (Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> IO b
f Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
p)
pokeCStruct :: forall b.
Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
-> PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> IO b -> IO b
pokeCStruct Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
p PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT{Bool
graphicsPipelineLibrary :: Bool
$sel:graphicsPipelineLibrary:PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT :: PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> Bool
..} IO b
f = do
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_PHYSICAL_DEVICE_GRAPHICS_PIPELINE_LIBRARY_FEATURES_EXT)
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8 :: Ptr (Ptr ()))) (forall a. Ptr a
nullPtr)
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (Bool
graphicsPipelineLibrary))
IO b
f
cStructSize :: Int
cStructSize = Int
24
cStructAlignment :: Int
cStructAlignment = Int
8
pokeZeroCStruct :: forall b.
Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
-> IO b -> IO b
pokeZeroCStruct Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
p IO b
f = do
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_PHYSICAL_DEVICE_GRAPHICS_PIPELINE_LIBRARY_FEATURES_EXT)
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8 :: Ptr (Ptr ()))) (forall a. Ptr a
nullPtr)
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (forall a. Zero a => a
zero))
IO b
f
instance FromCStruct PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT where
peekCStruct :: Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
-> IO PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
peekCStruct Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
p = do
Bool32
graphicsPipelineLibrary <- forall a. Storable a => Ptr a -> IO a
peek @Bool32 ((Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr Bool32))
forall (f :: * -> *) a. Applicative f => a -> f a
pure forall a b. (a -> b) -> a -> b
$ Bool -> PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
(Bool32 -> Bool
bool32ToBool Bool32
graphicsPipelineLibrary)
instance Storable PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT where
sizeOf :: PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> Int
sizeOf ~PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
_ = Int
24
alignment :: PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> Int
alignment ~PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
_ = Int
8
peek :: Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
-> IO PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
peek = forall a. FromCStruct a => Ptr a -> IO a
peekCStruct
poke :: Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
-> PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT -> IO ()
poke Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
poked = forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct Ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
ptr PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
poked (forall (f :: * -> *) a. Applicative f => a -> f a
pure ())
instance Zero PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT where
zero :: PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
zero = Bool -> PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT
forall a. Zero a => a
zero
data PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT = PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
{
PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> Bool
graphicsPipelineLibraryFastLinking :: Bool
,
PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> Bool
graphicsPipelineLibraryIndependentInterpolationDecoration :: Bool
}
deriving (Typeable, PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
-> PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
-> PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> Bool
$c/= :: PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
-> PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> Bool
== :: PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
-> PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> Bool
$c== :: PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
-> PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> Bool
Eq)
#if defined(GENERIC_INSTANCES)
deriving instance Generic (PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT)
#endif
deriving instance Show PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
instance ToCStruct PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT where
withCStruct :: forall b.
PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
-> (Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> IO b)
-> IO b
withCStruct PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
x Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> IO b
f = forall a b. Int -> (Ptr a -> IO b) -> IO b
allocaBytes Int
24 forall a b. (a -> b) -> a -> b
$ \Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p -> forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
x (Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> IO b
f Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p)
pokeCStruct :: forall b.
Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
-> PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
-> IO b
-> IO b
pokeCStruct Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT{Bool
graphicsPipelineLibraryIndependentInterpolationDecoration :: Bool
graphicsPipelineLibraryFastLinking :: Bool
$sel:graphicsPipelineLibraryIndependentInterpolationDecoration:PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT :: PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> Bool
$sel:graphicsPipelineLibraryFastLinking:PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT :: PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> Bool
..} IO b
f = do
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_PHYSICAL_DEVICE_GRAPHICS_PIPELINE_LIBRARY_PROPERTIES_EXT)
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8 :: Ptr (Ptr ()))) (forall a. Ptr a
nullPtr)
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (Bool
graphicsPipelineLibraryFastLinking))
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
20 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (Bool
graphicsPipelineLibraryIndependentInterpolationDecoration))
IO b
f
cStructSize :: Int
cStructSize = Int
24
cStructAlignment :: Int
cStructAlignment = Int
8
pokeZeroCStruct :: forall b.
Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
-> IO b -> IO b
pokeZeroCStruct Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p IO b
f = do
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_PHYSICAL_DEVICE_GRAPHICS_PIPELINE_LIBRARY_PROPERTIES_EXT)
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8 :: Ptr (Ptr ()))) (forall a. Ptr a
nullPtr)
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (forall a. Zero a => a
zero))
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
20 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (forall a. Zero a => a
zero))
IO b
f
instance FromCStruct PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT where
peekCStruct :: Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
-> IO PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
peekCStruct Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p = do
Bool32
graphicsPipelineLibraryFastLinking <- forall a. Storable a => Ptr a -> IO a
peek @Bool32 ((Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr Bool32))
Bool32
graphicsPipelineLibraryIndependentInterpolationDecoration <- forall a. Storable a => Ptr a -> IO a
peek @Bool32 ((Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
20 :: Ptr Bool32))
forall (f :: * -> *) a. Applicative f => a -> f a
pure forall a b. (a -> b) -> a -> b
$ Bool -> Bool -> PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
(Bool32 -> Bool
bool32ToBool Bool32
graphicsPipelineLibraryFastLinking)
(Bool32 -> Bool
bool32ToBool Bool32
graphicsPipelineLibraryIndependentInterpolationDecoration)
instance Storable PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT where
sizeOf :: PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> Int
sizeOf ~PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
_ = Int
24
alignment :: PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> Int
alignment ~PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
_ = Int
8
peek :: Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
-> IO PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
peek = forall a. FromCStruct a => Ptr a -> IO a
peekCStruct
poke :: Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
-> PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT -> IO ()
poke Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
poked = forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct Ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
ptr PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
poked (forall (f :: * -> *) a. Applicative f => a -> f a
pure ())
instance Zero PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT where
zero :: PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
zero = Bool -> Bool -> PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT
forall a. Zero a => a
zero
forall a. Zero a => a
zero
data GraphicsPipelineLibraryCreateInfoEXT = GraphicsPipelineLibraryCreateInfoEXT
{
GraphicsPipelineLibraryCreateInfoEXT
-> GraphicsPipelineLibraryFlagBitsEXT
flags :: GraphicsPipelineLibraryFlagsEXT }
deriving (Typeable, GraphicsPipelineLibraryCreateInfoEXT
-> GraphicsPipelineLibraryCreateInfoEXT -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GraphicsPipelineLibraryCreateInfoEXT
-> GraphicsPipelineLibraryCreateInfoEXT -> Bool
$c/= :: GraphicsPipelineLibraryCreateInfoEXT
-> GraphicsPipelineLibraryCreateInfoEXT -> Bool
== :: GraphicsPipelineLibraryCreateInfoEXT
-> GraphicsPipelineLibraryCreateInfoEXT -> Bool
$c== :: GraphicsPipelineLibraryCreateInfoEXT
-> GraphicsPipelineLibraryCreateInfoEXT -> Bool
Eq)
#if defined(GENERIC_INSTANCES)
deriving instance Generic (GraphicsPipelineLibraryCreateInfoEXT)
#endif
deriving instance Show GraphicsPipelineLibraryCreateInfoEXT
instance ToCStruct GraphicsPipelineLibraryCreateInfoEXT where
withCStruct :: forall b.
GraphicsPipelineLibraryCreateInfoEXT
-> (Ptr GraphicsPipelineLibraryCreateInfoEXT -> IO b) -> IO b
withCStruct GraphicsPipelineLibraryCreateInfoEXT
x Ptr GraphicsPipelineLibraryCreateInfoEXT -> IO b
f = forall a b. Int -> (Ptr a -> IO b) -> IO b
allocaBytes Int
24 forall a b. (a -> b) -> a -> b
$ \Ptr GraphicsPipelineLibraryCreateInfoEXT
p -> forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct Ptr GraphicsPipelineLibraryCreateInfoEXT
p GraphicsPipelineLibraryCreateInfoEXT
x (Ptr GraphicsPipelineLibraryCreateInfoEXT -> IO b
f Ptr GraphicsPipelineLibraryCreateInfoEXT
p)
pokeCStruct :: forall b.
Ptr GraphicsPipelineLibraryCreateInfoEXT
-> GraphicsPipelineLibraryCreateInfoEXT -> IO b -> IO b
pokeCStruct Ptr GraphicsPipelineLibraryCreateInfoEXT
p GraphicsPipelineLibraryCreateInfoEXT{GraphicsPipelineLibraryFlagBitsEXT
flags :: GraphicsPipelineLibraryFlagBitsEXT
$sel:flags:GraphicsPipelineLibraryCreateInfoEXT :: GraphicsPipelineLibraryCreateInfoEXT
-> GraphicsPipelineLibraryFlagBitsEXT
..} IO b
f = do
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr GraphicsPipelineLibraryCreateInfoEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_GRAPHICS_PIPELINE_LIBRARY_CREATE_INFO_EXT)
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr GraphicsPipelineLibraryCreateInfoEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8 :: Ptr (Ptr ()))) (forall a. Ptr a
nullPtr)
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr GraphicsPipelineLibraryCreateInfoEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr GraphicsPipelineLibraryFlagsEXT)) (GraphicsPipelineLibraryFlagBitsEXT
flags)
IO b
f
cStructSize :: Int
cStructSize = Int
24
cStructAlignment :: Int
cStructAlignment = Int
8
pokeZeroCStruct :: forall b. Ptr GraphicsPipelineLibraryCreateInfoEXT -> IO b -> IO b
pokeZeroCStruct Ptr GraphicsPipelineLibraryCreateInfoEXT
p IO b
f = do
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr GraphicsPipelineLibraryCreateInfoEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_GRAPHICS_PIPELINE_LIBRARY_CREATE_INFO_EXT)
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr GraphicsPipelineLibraryCreateInfoEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8 :: Ptr (Ptr ()))) (forall a. Ptr a
nullPtr)
forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr GraphicsPipelineLibraryCreateInfoEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr GraphicsPipelineLibraryFlagsEXT)) (forall a. Zero a => a
zero)
IO b
f
instance FromCStruct GraphicsPipelineLibraryCreateInfoEXT where
peekCStruct :: Ptr GraphicsPipelineLibraryCreateInfoEXT
-> IO GraphicsPipelineLibraryCreateInfoEXT
peekCStruct Ptr GraphicsPipelineLibraryCreateInfoEXT
p = do
GraphicsPipelineLibraryFlagBitsEXT
flags <- forall a. Storable a => Ptr a -> IO a
peek @GraphicsPipelineLibraryFlagsEXT ((Ptr GraphicsPipelineLibraryCreateInfoEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr GraphicsPipelineLibraryFlagsEXT))
forall (f :: * -> *) a. Applicative f => a -> f a
pure forall a b. (a -> b) -> a -> b
$ GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryCreateInfoEXT
GraphicsPipelineLibraryCreateInfoEXT
GraphicsPipelineLibraryFlagBitsEXT
flags
instance Storable GraphicsPipelineLibraryCreateInfoEXT where
sizeOf :: GraphicsPipelineLibraryCreateInfoEXT -> Int
sizeOf ~GraphicsPipelineLibraryCreateInfoEXT
_ = Int
24
alignment :: GraphicsPipelineLibraryCreateInfoEXT -> Int
alignment ~GraphicsPipelineLibraryCreateInfoEXT
_ = Int
8
peek :: Ptr GraphicsPipelineLibraryCreateInfoEXT
-> IO GraphicsPipelineLibraryCreateInfoEXT
peek = forall a. FromCStruct a => Ptr a -> IO a
peekCStruct
poke :: Ptr GraphicsPipelineLibraryCreateInfoEXT
-> GraphicsPipelineLibraryCreateInfoEXT -> IO ()
poke Ptr GraphicsPipelineLibraryCreateInfoEXT
ptr GraphicsPipelineLibraryCreateInfoEXT
poked = forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct Ptr GraphicsPipelineLibraryCreateInfoEXT
ptr GraphicsPipelineLibraryCreateInfoEXT
poked (forall (f :: * -> *) a. Applicative f => a -> f a
pure ())
instance Zero GraphicsPipelineLibraryCreateInfoEXT where
zero :: GraphicsPipelineLibraryCreateInfoEXT
zero = GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryCreateInfoEXT
GraphicsPipelineLibraryCreateInfoEXT
forall a. Zero a => a
zero
type GraphicsPipelineLibraryFlagsEXT = GraphicsPipelineLibraryFlagBitsEXT
newtype GraphicsPipelineLibraryFlagBitsEXT = GraphicsPipelineLibraryFlagBitsEXT Flags
deriving newtype (GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
$c/= :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
== :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
$c== :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
Eq, Eq GraphicsPipelineLibraryFlagBitsEXT
GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Ordering
GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
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 :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
$cmin :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
max :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
$cmax :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
>= :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
$c>= :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
> :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
$c> :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
<= :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
$c<= :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
< :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
$c< :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Bool
compare :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Ordering
$ccompare :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> Ordering
Ord, Ptr GraphicsPipelineLibraryFlagBitsEXT
-> IO GraphicsPipelineLibraryFlagBitsEXT
Ptr GraphicsPipelineLibraryFlagBitsEXT
-> Int -> IO GraphicsPipelineLibraryFlagBitsEXT
Ptr GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT -> IO ()
Ptr GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> IO ()
GraphicsPipelineLibraryFlagBitsEXT -> Int
forall b. Ptr b -> Int -> IO GraphicsPipelineLibraryFlagBitsEXT
forall b.
Ptr b -> Int -> GraphicsPipelineLibraryFlagBitsEXT -> 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 GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> IO ()
$cpoke :: Ptr GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT -> IO ()
peek :: Ptr GraphicsPipelineLibraryFlagBitsEXT
-> IO GraphicsPipelineLibraryFlagBitsEXT
$cpeek :: Ptr GraphicsPipelineLibraryFlagBitsEXT
-> IO GraphicsPipelineLibraryFlagBitsEXT
pokeByteOff :: forall b.
Ptr b -> Int -> GraphicsPipelineLibraryFlagBitsEXT -> IO ()
$cpokeByteOff :: forall b.
Ptr b -> Int -> GraphicsPipelineLibraryFlagBitsEXT -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO GraphicsPipelineLibraryFlagBitsEXT
$cpeekByteOff :: forall b. Ptr b -> Int -> IO GraphicsPipelineLibraryFlagBitsEXT
pokeElemOff :: Ptr GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT -> IO ()
$cpokeElemOff :: Ptr GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT -> IO ()
peekElemOff :: Ptr GraphicsPipelineLibraryFlagBitsEXT
-> Int -> IO GraphicsPipelineLibraryFlagBitsEXT
$cpeekElemOff :: Ptr GraphicsPipelineLibraryFlagBitsEXT
-> Int -> IO GraphicsPipelineLibraryFlagBitsEXT
alignment :: GraphicsPipelineLibraryFlagBitsEXT -> Int
$calignment :: GraphicsPipelineLibraryFlagBitsEXT -> Int
sizeOf :: GraphicsPipelineLibraryFlagBitsEXT -> Int
$csizeOf :: GraphicsPipelineLibraryFlagBitsEXT -> Int
Storable, GraphicsPipelineLibraryFlagBitsEXT
forall a. a -> Zero a
zero :: GraphicsPipelineLibraryFlagBitsEXT
$czero :: GraphicsPipelineLibraryFlagBitsEXT
Zero, Eq GraphicsPipelineLibraryFlagBitsEXT
GraphicsPipelineLibraryFlagBitsEXT
Int -> GraphicsPipelineLibraryFlagBitsEXT
GraphicsPipelineLibraryFlagBitsEXT -> Bool
GraphicsPipelineLibraryFlagBitsEXT -> Int
GraphicsPipelineLibraryFlagBitsEXT -> Maybe Int
GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
GraphicsPipelineLibraryFlagBitsEXT -> Int -> Bool
GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
forall a.
Eq a
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> a
-> (Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> Bool)
-> (a -> Maybe Int)
-> (a -> Int)
-> (a -> Bool)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int)
-> Bits a
popCount :: GraphicsPipelineLibraryFlagBitsEXT -> Int
$cpopCount :: GraphicsPipelineLibraryFlagBitsEXT -> Int
rotateR :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
$crotateR :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
rotateL :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
$crotateL :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
unsafeShiftR :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
$cunsafeShiftR :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
shiftR :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
$cshiftR :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
unsafeShiftL :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
$cunsafeShiftL :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
shiftL :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
$cshiftL :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
isSigned :: GraphicsPipelineLibraryFlagBitsEXT -> Bool
$cisSigned :: GraphicsPipelineLibraryFlagBitsEXT -> Bool
bitSize :: GraphicsPipelineLibraryFlagBitsEXT -> Int
$cbitSize :: GraphicsPipelineLibraryFlagBitsEXT -> Int
bitSizeMaybe :: GraphicsPipelineLibraryFlagBitsEXT -> Maybe Int
$cbitSizeMaybe :: GraphicsPipelineLibraryFlagBitsEXT -> Maybe Int
testBit :: GraphicsPipelineLibraryFlagBitsEXT -> Int -> Bool
$ctestBit :: GraphicsPipelineLibraryFlagBitsEXT -> Int -> Bool
complementBit :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
$ccomplementBit :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
clearBit :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
$cclearBit :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
setBit :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
$csetBit :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
bit :: Int -> GraphicsPipelineLibraryFlagBitsEXT
$cbit :: Int -> GraphicsPipelineLibraryFlagBitsEXT
zeroBits :: GraphicsPipelineLibraryFlagBitsEXT
$czeroBits :: GraphicsPipelineLibraryFlagBitsEXT
rotate :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
$crotate :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
shift :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
$cshift :: GraphicsPipelineLibraryFlagBitsEXT
-> Int -> GraphicsPipelineLibraryFlagBitsEXT
complement :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
$ccomplement :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
xor :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
$cxor :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
.|. :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
$c.|. :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
.&. :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
$c.&. :: GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
-> GraphicsPipelineLibraryFlagBitsEXT
Bits, Bits GraphicsPipelineLibraryFlagBitsEXT
GraphicsPipelineLibraryFlagBitsEXT -> Int
forall b.
Bits b -> (b -> Int) -> (b -> Int) -> (b -> Int) -> FiniteBits b
countTrailingZeros :: GraphicsPipelineLibraryFlagBitsEXT -> Int
$ccountTrailingZeros :: GraphicsPipelineLibraryFlagBitsEXT -> Int
countLeadingZeros :: GraphicsPipelineLibraryFlagBitsEXT -> Int
$ccountLeadingZeros :: GraphicsPipelineLibraryFlagBitsEXT -> Int
finiteBitSize :: GraphicsPipelineLibraryFlagBitsEXT -> Int
$cfiniteBitSize :: GraphicsPipelineLibraryFlagBitsEXT -> Int
FiniteBits)
pattern $bGRAPHICS_PIPELINE_LIBRARY_VERTEX_INPUT_INTERFACE_BIT_EXT :: GraphicsPipelineLibraryFlagBitsEXT
$mGRAPHICS_PIPELINE_LIBRARY_VERTEX_INPUT_INTERFACE_BIT_EXT :: forall {r}.
GraphicsPipelineLibraryFlagBitsEXT
-> ((# #) -> r) -> ((# #) -> r) -> r
GRAPHICS_PIPELINE_LIBRARY_VERTEX_INPUT_INTERFACE_BIT_EXT = GraphicsPipelineLibraryFlagBitsEXT 0x00000001
pattern $bGRAPHICS_PIPELINE_LIBRARY_PRE_RASTERIZATION_SHADERS_BIT_EXT :: GraphicsPipelineLibraryFlagBitsEXT
$mGRAPHICS_PIPELINE_LIBRARY_PRE_RASTERIZATION_SHADERS_BIT_EXT :: forall {r}.
GraphicsPipelineLibraryFlagBitsEXT
-> ((# #) -> r) -> ((# #) -> r) -> r
GRAPHICS_PIPELINE_LIBRARY_PRE_RASTERIZATION_SHADERS_BIT_EXT = GraphicsPipelineLibraryFlagBitsEXT 0x00000002
pattern $bGRAPHICS_PIPELINE_LIBRARY_FRAGMENT_SHADER_BIT_EXT :: GraphicsPipelineLibraryFlagBitsEXT
$mGRAPHICS_PIPELINE_LIBRARY_FRAGMENT_SHADER_BIT_EXT :: forall {r}.
GraphicsPipelineLibraryFlagBitsEXT
-> ((# #) -> r) -> ((# #) -> r) -> r
GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_SHADER_BIT_EXT = GraphicsPipelineLibraryFlagBitsEXT 0x00000004
pattern $bGRAPHICS_PIPELINE_LIBRARY_FRAGMENT_OUTPUT_INTERFACE_BIT_EXT :: GraphicsPipelineLibraryFlagBitsEXT
$mGRAPHICS_PIPELINE_LIBRARY_FRAGMENT_OUTPUT_INTERFACE_BIT_EXT :: forall {r}.
GraphicsPipelineLibraryFlagBitsEXT
-> ((# #) -> r) -> ((# #) -> r) -> r
GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_OUTPUT_INTERFACE_BIT_EXT = GraphicsPipelineLibraryFlagBitsEXT 0x00000008
conNameGraphicsPipelineLibraryFlagBitsEXT :: String
conNameGraphicsPipelineLibraryFlagBitsEXT :: String
conNameGraphicsPipelineLibraryFlagBitsEXT = String
"GraphicsPipelineLibraryFlagBitsEXT"
enumPrefixGraphicsPipelineLibraryFlagBitsEXT :: String
enumPrefixGraphicsPipelineLibraryFlagBitsEXT :: String
enumPrefixGraphicsPipelineLibraryFlagBitsEXT = String
"GRAPHICS_PIPELINE_LIBRARY_"
showTableGraphicsPipelineLibraryFlagBitsEXT :: [(GraphicsPipelineLibraryFlagBitsEXT, String)]
showTableGraphicsPipelineLibraryFlagBitsEXT :: [(GraphicsPipelineLibraryFlagBitsEXT, String)]
showTableGraphicsPipelineLibraryFlagBitsEXT =
[
( GraphicsPipelineLibraryFlagBitsEXT
GRAPHICS_PIPELINE_LIBRARY_VERTEX_INPUT_INTERFACE_BIT_EXT
, String
"VERTEX_INPUT_INTERFACE_BIT_EXT"
)
,
( GraphicsPipelineLibraryFlagBitsEXT
GRAPHICS_PIPELINE_LIBRARY_PRE_RASTERIZATION_SHADERS_BIT_EXT
, String
"PRE_RASTERIZATION_SHADERS_BIT_EXT"
)
,
( GraphicsPipelineLibraryFlagBitsEXT
GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_SHADER_BIT_EXT
, String
"FRAGMENT_SHADER_BIT_EXT"
)
,
( GraphicsPipelineLibraryFlagBitsEXT
GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_OUTPUT_INTERFACE_BIT_EXT
, String
"FRAGMENT_OUTPUT_INTERFACE_BIT_EXT"
)
]
instance Show GraphicsPipelineLibraryFlagBitsEXT where
showsPrec :: Int -> GraphicsPipelineLibraryFlagBitsEXT -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixGraphicsPipelineLibraryFlagBitsEXT
[(GraphicsPipelineLibraryFlagBitsEXT, String)]
showTableGraphicsPipelineLibraryFlagBitsEXT
String
conNameGraphicsPipelineLibraryFlagBitsEXT
(\(GraphicsPipelineLibraryFlagBitsEXT Flags
x) -> Flags
x)
(\Flags
x -> String -> ShowS
showString String
"0x" forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. (Integral a, Show a) => a -> ShowS
showHex Flags
x)
instance Read GraphicsPipelineLibraryFlagBitsEXT where
readPrec :: ReadPrec GraphicsPipelineLibraryFlagBitsEXT
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixGraphicsPipelineLibraryFlagBitsEXT
[(GraphicsPipelineLibraryFlagBitsEXT, String)]
showTableGraphicsPipelineLibraryFlagBitsEXT
String
conNameGraphicsPipelineLibraryFlagBitsEXT
Flags -> GraphicsPipelineLibraryFlagBitsEXT
GraphicsPipelineLibraryFlagBitsEXT
type EXT_GRAPHICS_PIPELINE_LIBRARY_SPEC_VERSION = 1
pattern EXT_GRAPHICS_PIPELINE_LIBRARY_SPEC_VERSION :: forall a . Integral a => a
pattern $bEXT_GRAPHICS_PIPELINE_LIBRARY_SPEC_VERSION :: forall a. Integral a => a
$mEXT_GRAPHICS_PIPELINE_LIBRARY_SPEC_VERSION :: forall {r} {a}.
Integral a =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
EXT_GRAPHICS_PIPELINE_LIBRARY_SPEC_VERSION = 1
type EXT_GRAPHICS_PIPELINE_LIBRARY_EXTENSION_NAME = "VK_EXT_graphics_pipeline_library"
pattern EXT_GRAPHICS_PIPELINE_LIBRARY_EXTENSION_NAME :: forall a . (Eq a, IsString a) => a
pattern $bEXT_GRAPHICS_PIPELINE_LIBRARY_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
$mEXT_GRAPHICS_PIPELINE_LIBRARY_EXTENSION_NAME :: forall {r} {a}.
(Eq a, IsString a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
EXT_GRAPHICS_PIPELINE_LIBRARY_EXTENSION_NAME = "VK_EXT_graphics_pipeline_library"