{-# language CPP #-}
-- | = Name
--
-- VK_KHR_workgroup_memory_explicit_layout - device extension
--
-- == VK_KHR_workgroup_memory_explicit_layout
--
-- [__Name String__]
--     @VK_KHR_workgroup_memory_explicit_layout@
--
-- [__Extension Type__]
--     Device extension
--
-- [__Registered Extension Number__]
--     337
--
-- [__Revision__]
--     1
--
-- [__Ratification Status__]
--     Ratified
--
-- [__Extension and Version Dependencies__]
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_KHR_get_physical_device_properties2 VK_KHR_get_physical_device_properties2>
--
-- [__Contact__]
--
--     -   Caio Marcelo de Oliveira Filho
--         <https://github.com/KhronosGroup/Vulkan-Docs/issues/new?body=[VK_KHR_workgroup_memory_explicit_layout] @cmarcelo%0A*Here describe the issue or question you have about the VK_KHR_workgroup_memory_explicit_layout extension* >
--
-- == Other Extension Metadata
--
-- [__Last Modified Date__]
--     2020-06-01
--
-- [__IP Status__]
--     No known IP claims.
--
-- [__Interactions and External Dependencies__]
--
--     -   This extension requires
--         <https://htmlpreview.github.io/?https://github.com/KhronosGroup/SPIRV-Registry/blob/master/extensions/KHR/SPV_KHR_workgroup_memory_explicit_layout.html SPV_KHR_workgroup_memory_explicit_layout>
--
--     -   This extension provides API support for
--         <https://github.com/KhronosGroup/GLSL/blob/master/extensions/ext/GL_EXT_shared_memory_block.txt GL_EXT_shared_memory_block>
--
-- [__Contributors__]
--
--     -   Caio Marcelo de Oliveira Filho, Intel
--
--     -   Jeff Bolz, NVIDIA
--
--     -   Graeme Leese, Broadcom
--
--     -   Faith Ekstrand, Intel
--
--     -   Daniel Koch, NVIDIA
--
-- == Description
--
-- This extension adds Vulkan support for the
-- <https://htmlpreview.github.io/?https://github.com/KhronosGroup/SPIRV-Registry/blob/master/extensions/KHR/SPV_KHR_workgroup_memory_explicit_layout.html SPV_KHR_workgroup_memory_explicit_layout>
-- SPIR-V extension, which allows shaders to explicitly define the layout
-- of @Workgroup@ storage class memory and create aliases between variables
-- from that storage class in a compute shader.
--
-- The aliasing feature allows different “views” on the same data, so the
-- shader can bulk copy data from another storage class using one type
-- (e.g. an array of large vectors), and then use the data with a more
-- specific type. It also enables reducing the amount of workgroup memory
-- consumed by allowing the shader to alias data whose lifetimes do not
-- overlap.
--
-- The explicit layout support and some form of aliasing is also required
-- for layering OpenCL on top of Vulkan.
--
-- == New Structures
--
-- -   Extending
--     'Vulkan.Core11.Promoted_From_VK_KHR_get_physical_device_properties2.PhysicalDeviceFeatures2',
--     'Vulkan.Core10.Device.DeviceCreateInfo':
--
--     -   'PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR'
--
-- == New Enum Constants
--
-- -   'KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_EXTENSION_NAME'
--
-- -   'KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_SPEC_VERSION'
--
-- -   Extending 'Vulkan.Core10.Enums.StructureType.StructureType':
--
--     -   'Vulkan.Core10.Enums.StructureType.STRUCTURE_TYPE_PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR'
--
-- == New SPIR-V Capabilities
--
-- -   <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#spirvenv-capabilities-table-WorkgroupMemoryExplicitLayoutKHR WorkgroupMemoryExplicitLayoutKHR>
--
-- -   <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#spirvenv-capabilities-table-WorkgroupMemoryExplicitLayout8BitAccessKHR WorkgroupMemoryExplicitLayout8BitAccessKHR>
--
-- -   <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#spirvenv-capabilities-table-WorkgroupMemoryExplicitLayout16BitAccessKHR WorkgroupMemoryExplicitLayout16BitAccessKHR>
--
-- == Version History
--
-- -   Revision 1, 2020-06-01 (Caio Marcelo de Oliveira Filho)
--
--     -   Initial version
--
-- == See Also
--
-- 'PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR'
--
-- == Document Notes
--
-- For more information, see the
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#VK_KHR_workgroup_memory_explicit_layout Vulkan Specification>
--
-- This page is a generated document. Fixes and changes should be made to
-- the generator scripts, not directly.
module Vulkan.Extensions.VK_KHR_workgroup_memory_explicit_layout  ( PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR(..)
                                                                  , KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_SPEC_VERSION
                                                                  , pattern KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_SPEC_VERSION
                                                                  , KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_EXTENSION_NAME
                                                                  , pattern KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_EXTENSION_NAME
                                                                  ) where

import Foreign.Marshal.Alloc (allocaBytes)
import Foreign.Ptr (nullPtr)
import Foreign.Ptr (plusPtr)
import Vulkan.CStruct (FromCStruct)
import Vulkan.CStruct (FromCStruct(..))
import Vulkan.CStruct (ToCStruct)
import Vulkan.CStruct (ToCStruct(..))
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 Data.Kind (Type)
import Vulkan.Core10.FundamentalTypes (bool32ToBool)
import Vulkan.Core10.FundamentalTypes (boolToBool32)
import Vulkan.Core10.FundamentalTypes (Bool32)
import Vulkan.Core10.Enums.StructureType (StructureType)
import Vulkan.Core10.Enums.StructureType (StructureType(STRUCTURE_TYPE_PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR))
-- | VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR - Structure
-- describing the workgroup storage explicit layout features that can be
-- supported by an implementation
--
-- = Members
--
-- This structure describes the following features:
--
-- = Description
--
-- If the 'PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR'
-- structure is included in the @pNext@ chain of the
-- 'Vulkan.Core11.Promoted_From_VK_KHR_get_physical_device_properties2.PhysicalDeviceFeatures2'
-- structure passed to
-- 'Vulkan.Core11.Promoted_From_VK_KHR_get_physical_device_properties2.getPhysicalDeviceFeatures2',
-- it is filled in to indicate whether each corresponding feature is
-- supported. 'PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR'
-- /can/ also be used in the @pNext@ chain of
-- 'Vulkan.Core10.Device.DeviceCreateInfo' to selectively enable these
-- features.
--
-- == Valid Usage (Implicit)
--
-- = See Also
--
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_KHR_workgroup_memory_explicit_layout VK_KHR_workgroup_memory_explicit_layout>,
-- 'Vulkan.Core10.FundamentalTypes.Bool32',
-- 'Vulkan.Core10.Enums.StructureType.StructureType'
data PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR = PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
  { -- | #features-workgroupMemoryExplicitLayout# @workgroupMemoryExplicitLayout@
    -- indicates whether the implementation supports the SPIR-V
    -- @WorkgroupMemoryExplicitLayoutKHR@ capability.
    PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Bool
workgroupMemoryExplicitLayout :: Bool
  , -- | #features-workgroupMemoryExplicitLayoutScalarBlockLayout#
    -- @workgroupMemoryExplicitLayoutScalarBlockLayout@ indicates whether the
    -- implementation supports scalar alignment for laying out Workgroup
    -- Blocks.
    PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Bool
workgroupMemoryExplicitLayoutScalarBlockLayout :: Bool
  , -- | #features-workgroupMemoryExplicitLayout8BitAccess#
    -- @workgroupMemoryExplicitLayout8BitAccess@ indicates whether objects in
    -- the @Workgroup@ storage class with the @Block@ decoration /can/ have
    -- 8-bit integer members. If this feature is not enabled, 8-bit integer
    -- members /must/ not be used in such objects. This also indicates whether
    -- shader modules /can/ declare the
    -- @WorkgroupMemoryExplicitLayout8BitAccessKHR@ capability.
    PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Bool
workgroupMemoryExplicitLayout8BitAccess :: Bool
  , -- | #features-workgroupMemoryExplicitLayout16BitAccess#
    -- @workgroupMemoryExplicitLayout16BitAccess@ indicates whether objects in
    -- the @Workgroup@ storage class with the @Block@ decoration /can/ have
    -- 16-bit integer and 16-bit floating-point members. If this feature is not
    -- enabled, 16-bit integer or 16-bit floating-point members /must/ not be
    -- used in such objects. This also indicates whether shader modules /can/
    -- declare the @WorkgroupMemoryExplicitLayout16BitAccessKHR@ capability.
    PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Bool
workgroupMemoryExplicitLayout16BitAccess :: Bool
  }
  deriving (Typeable, PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
-> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
-> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Bool
$c/= :: PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
-> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Bool
== :: PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
-> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Bool
$c== :: PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
-> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Bool
Eq)
#if defined(GENERIC_INSTANCES)
deriving instance Generic (PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR)
#endif
deriving instance Show PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR

instance ToCStruct PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR where
  withCStruct :: forall b.
PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
-> (Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
    -> IO b)
-> IO b
withCStruct PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
x Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> IO b
f = forall a b. Int -> (Ptr a -> IO b) -> IO b
allocaBytes Int
32 forall a b. (a -> b) -> a -> b
$ \Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p -> forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
x (Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> IO b
f Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p)
  pokeCStruct :: forall b.
Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
-> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
-> IO b
-> IO b
pokeCStruct Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR{Bool
workgroupMemoryExplicitLayout16BitAccess :: Bool
workgroupMemoryExplicitLayout8BitAccess :: Bool
workgroupMemoryExplicitLayoutScalarBlockLayout :: Bool
workgroupMemoryExplicitLayout :: Bool
$sel:workgroupMemoryExplicitLayout16BitAccess:PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR :: PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Bool
$sel:workgroupMemoryExplicitLayout8BitAccess:PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR :: PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Bool
$sel:workgroupMemoryExplicitLayoutScalarBlockLayout:PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR :: PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Bool
$sel:workgroupMemoryExplicitLayout:PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR :: PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Bool
..} IO b
f = do
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR)
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
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 PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (Bool
workgroupMemoryExplicitLayout))
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
20 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (Bool
workgroupMemoryExplicitLayoutScalarBlockLayout))
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
24 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (Bool
workgroupMemoryExplicitLayout8BitAccess))
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
28 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (Bool
workgroupMemoryExplicitLayout16BitAccess))
    IO b
f
  cStructSize :: Int
cStructSize = Int
32
  cStructAlignment :: Int
cStructAlignment = Int
8
  pokeZeroCStruct :: forall b.
Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
-> IO b -> IO b
pokeZeroCStruct Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p IO b
f = do
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR)
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
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 PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
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 PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
20 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (forall a. Zero a => a
zero))
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
24 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (forall a. Zero a => a
zero))
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
28 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (forall a. Zero a => a
zero))
    IO b
f

instance FromCStruct PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR where
  peekCStruct :: Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
-> IO PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
peekCStruct Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p = do
    Bool32
workgroupMemoryExplicitLayout <- forall a. Storable a => Ptr a -> IO a
peek @Bool32 ((Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr Bool32))
    Bool32
workgroupMemoryExplicitLayoutScalarBlockLayout <- forall a. Storable a => Ptr a -> IO a
peek @Bool32 ((Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
20 :: Ptr Bool32))
    Bool32
workgroupMemoryExplicitLayout8BitAccess <- forall a. Storable a => Ptr a -> IO a
peek @Bool32 ((Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
24 :: Ptr Bool32))
    Bool32
workgroupMemoryExplicitLayout16BitAccess <- forall a. Storable a => Ptr a -> IO a
peek @Bool32 ((Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
28 :: Ptr Bool32))
    forall (f :: * -> *) a. Applicative f => a -> f a
pure forall a b. (a -> b) -> a -> b
$ Bool
-> Bool
-> Bool
-> Bool
-> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
             (Bool32 -> Bool
bool32ToBool Bool32
workgroupMemoryExplicitLayout)
             (Bool32 -> Bool
bool32ToBool Bool32
workgroupMemoryExplicitLayoutScalarBlockLayout)
             (Bool32 -> Bool
bool32ToBool Bool32
workgroupMemoryExplicitLayout8BitAccess)
             (Bool32 -> Bool
bool32ToBool Bool32
workgroupMemoryExplicitLayout16BitAccess)

instance Storable PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR where
  sizeOf :: PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Int
sizeOf ~PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
_ = Int
32
  alignment :: PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> Int
alignment ~PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
_ = Int
8
  peek :: Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
-> IO PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
peek = forall a. FromCStruct a => Ptr a -> IO a
peekCStruct
  poke :: Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
-> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR -> IO ()
poke Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
poked = forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct Ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
ptr PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
poked (forall (f :: * -> *) a. Applicative f => a -> f a
pure ())

instance Zero PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR where
  zero :: PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
zero = Bool
-> Bool
-> Bool
-> Bool
-> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
           forall a. Zero a => a
zero
           forall a. Zero a => a
zero
           forall a. Zero a => a
zero
           forall a. Zero a => a
zero


type KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_SPEC_VERSION = 1

-- No documentation found for TopLevel "VK_KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_SPEC_VERSION"
pattern KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_SPEC_VERSION :: forall a . Integral a => a
pattern $bKHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_SPEC_VERSION :: forall a. Integral a => a
$mKHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_SPEC_VERSION :: forall {r} {a}.
Integral a =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_SPEC_VERSION = 1


type KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_EXTENSION_NAME = "VK_KHR_workgroup_memory_explicit_layout"

-- No documentation found for TopLevel "VK_KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_EXTENSION_NAME"
pattern KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_EXTENSION_NAME :: forall a . (Eq a, IsString a) => a
pattern $bKHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
$mKHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_EXTENSION_NAME :: forall {r} {a}.
(Eq a, IsString a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_EXTENSION_NAME = "VK_KHR_workgroup_memory_explicit_layout"