{-# language CPP #-}
-- | = Name
--
-- VK_EXT_image_view_min_lod - device extension
--
-- == VK_EXT_image_view_min_lod
--
-- [__Name String__]
--     @VK_EXT_image_view_min_lod@
--
-- [__Extension Type__]
--     Device extension
--
-- [__Registered Extension Number__]
--     392
--
-- [__Revision__]
--     1
--
-- [__Ratification Status__]
--     Not 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__]
--
--     -   Joshua Ashton
--         <https://github.com/KhronosGroup/Vulkan-Docs/issues/new?body=[VK_EXT_image_view_min_lod] @Joshua-Ashton%0A*Here describe the issue or question you have about the VK_EXT_image_view_min_lod extension* >
--
-- == Other Extension Metadata
--
-- [__Last Modified Date__]
--     2021-11-09
--
-- [__IP Status__]
--     No known IP claims.
--
-- [__Contributors__]
--
--     -   Joshua Ashton, Valve
--
--     -   Hans-Kristian Arntzen, Valve
--
--     -   Samuel Iglesias Gonsalvez, Igalia
--
--     -   Tobias Hector, AMD
--
--     -   Faith Ekstrand, Intel
--
--     -   Tom Olson, ARM
--
-- == Description
--
-- This extension allows applications to clamp the minimum LOD value during
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#textures-image-level-selection Image Level(s) Selection>,
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#textures-gather Texel Gathering>
-- and
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#textures-integer-coordinate-operations Integer Texel Coordinate Operations>
-- with a given 'Vulkan.Core10.Handles.ImageView' by
-- 'ImageViewMinLodCreateInfoEXT'::@minLod@.
--
-- This extension may be useful to restrict a
-- 'Vulkan.Core10.Handles.ImageView' to only mips which have been uploaded,
-- and the use of fractional @minLod@ can be useful for smoothly
-- introducing new mip levels when using linear mipmap filtering.
--
-- == New Structures
--
-- -   Extending 'Vulkan.Core10.ImageView.ImageViewCreateInfo':
--
--     -   'ImageViewMinLodCreateInfoEXT'
--
-- -   Extending
--     'Vulkan.Core11.Promoted_From_VK_KHR_get_physical_device_properties2.PhysicalDeviceFeatures2',
--     'Vulkan.Core10.Device.DeviceCreateInfo':
--
--     -   'PhysicalDeviceImageViewMinLodFeaturesEXT'
--
-- == New Enum Constants
--
-- -   'EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME'
--
-- -   'EXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION'
--
-- -   Extending 'Vulkan.Core10.Enums.StructureType.StructureType':
--
--     -   'Vulkan.Core10.Enums.StructureType.STRUCTURE_TYPE_IMAGE_VIEW_MIN_LOD_CREATE_INFO_EXT'
--
--     -   'Vulkan.Core10.Enums.StructureType.STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_MIN_LOD_FEATURES_EXT'
--
-- == Version History
--
-- -   Revision 1, 2021-07-06 (Joshua Ashton)
--
--     -   Initial version
--
-- == See Also
--
-- 'ImageViewMinLodCreateInfoEXT',
-- 'PhysicalDeviceImageViewMinLodFeaturesEXT'
--
-- == Document Notes
--
-- For more information, see the
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#VK_EXT_image_view_min_lod Vulkan Specification>
--
-- This page is a generated document. Fixes and changes should be made to
-- the generator scripts, not directly.
module Vulkan.Extensions.VK_EXT_image_view_min_lod  ( PhysicalDeviceImageViewMinLodFeaturesEXT(..)
                                                    , ImageViewMinLodCreateInfoEXT(..)
                                                    , EXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION
                                                    , pattern EXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION
                                                    , EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME
                                                    , pattern EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME
                                                    ) where

import Foreign.Marshal.Alloc (allocaBytes)
import Foreign.Ptr (nullPtr)
import Foreign.Ptr (plusPtr)
import Data.Coerce (coerce)
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.C.Types (CFloat)
import Foreign.C.Types (CFloat(..))
import Foreign.C.Types (CFloat(CFloat))
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_IMAGE_VIEW_MIN_LOD_CREATE_INFO_EXT))
import Vulkan.Core10.Enums.StructureType (StructureType(STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_MIN_LOD_FEATURES_EXT))
-- | VkPhysicalDeviceImageViewMinLodFeaturesEXT - Structure describing
-- whether clamping the min LOD of a image view is supported by the
-- implementation
--
-- = Members
--
-- This structure describes the following feature:
--
-- = Description
--
-- If the 'PhysicalDeviceImageViewMinLodFeaturesEXT' 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. 'PhysicalDeviceImageViewMinLodFeaturesEXT' /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_EXT_image_view_min_lod VK_EXT_image_view_min_lod>,
-- 'Vulkan.Core10.FundamentalTypes.Bool32',
-- 'Vulkan.Core10.Enums.StructureType.StructureType'
data PhysicalDeviceImageViewMinLodFeaturesEXT = PhysicalDeviceImageViewMinLodFeaturesEXT
  { -- | #features-minLod# @minLod@ indicates whether the implementation supports
    -- clamping the minimum LOD value during
    -- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#textures-image-level-selection Image Level(s) Selection>,
    -- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#textures-gather Texel Gathering>
    -- and
    -- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#textures-integer-coordinate-operations Integer Texel Coordinate Operations>
    -- with a given 'Vulkan.Core10.Handles.ImageView' by
    -- 'ImageViewMinLodCreateInfoEXT'::@minLod@.
    PhysicalDeviceImageViewMinLodFeaturesEXT -> Bool
minLod :: Bool }
  deriving (Typeable, PhysicalDeviceImageViewMinLodFeaturesEXT
-> PhysicalDeviceImageViewMinLodFeaturesEXT -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PhysicalDeviceImageViewMinLodFeaturesEXT
-> PhysicalDeviceImageViewMinLodFeaturesEXT -> Bool
$c/= :: PhysicalDeviceImageViewMinLodFeaturesEXT
-> PhysicalDeviceImageViewMinLodFeaturesEXT -> Bool
== :: PhysicalDeviceImageViewMinLodFeaturesEXT
-> PhysicalDeviceImageViewMinLodFeaturesEXT -> Bool
$c== :: PhysicalDeviceImageViewMinLodFeaturesEXT
-> PhysicalDeviceImageViewMinLodFeaturesEXT -> Bool
Eq)
#if defined(GENERIC_INSTANCES)
deriving instance Generic (PhysicalDeviceImageViewMinLodFeaturesEXT)
#endif
deriving instance Show PhysicalDeviceImageViewMinLodFeaturesEXT

instance ToCStruct PhysicalDeviceImageViewMinLodFeaturesEXT where
  withCStruct :: forall b.
PhysicalDeviceImageViewMinLodFeaturesEXT
-> (Ptr PhysicalDeviceImageViewMinLodFeaturesEXT -> IO b) -> IO b
withCStruct PhysicalDeviceImageViewMinLodFeaturesEXT
x Ptr PhysicalDeviceImageViewMinLodFeaturesEXT -> IO b
f = forall a b. Int -> (Ptr a -> IO b) -> IO b
allocaBytes Int
24 forall a b. (a -> b) -> a -> b
$ \Ptr PhysicalDeviceImageViewMinLodFeaturesEXT
p -> forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct Ptr PhysicalDeviceImageViewMinLodFeaturesEXT
p PhysicalDeviceImageViewMinLodFeaturesEXT
x (Ptr PhysicalDeviceImageViewMinLodFeaturesEXT -> IO b
f Ptr PhysicalDeviceImageViewMinLodFeaturesEXT
p)
  pokeCStruct :: forall b.
Ptr PhysicalDeviceImageViewMinLodFeaturesEXT
-> PhysicalDeviceImageViewMinLodFeaturesEXT -> IO b -> IO b
pokeCStruct Ptr PhysicalDeviceImageViewMinLodFeaturesEXT
p PhysicalDeviceImageViewMinLodFeaturesEXT{Bool
minLod :: Bool
$sel:minLod:PhysicalDeviceImageViewMinLodFeaturesEXT :: PhysicalDeviceImageViewMinLodFeaturesEXT -> Bool
..} IO b
f = do
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceImageViewMinLodFeaturesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_MIN_LOD_FEATURES_EXT)
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceImageViewMinLodFeaturesEXT
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 PhysicalDeviceImageViewMinLodFeaturesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr Bool32)) (Bool -> Bool32
boolToBool32 (Bool
minLod))
    IO b
f
  cStructSize :: Int
cStructSize = Int
24
  cStructAlignment :: Int
cStructAlignment = Int
8
  pokeZeroCStruct :: forall b.
Ptr PhysicalDeviceImageViewMinLodFeaturesEXT -> IO b -> IO b
pokeZeroCStruct Ptr PhysicalDeviceImageViewMinLodFeaturesEXT
p IO b
f = do
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceImageViewMinLodFeaturesEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_MIN_LOD_FEATURES_EXT)
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr PhysicalDeviceImageViewMinLodFeaturesEXT
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 PhysicalDeviceImageViewMinLodFeaturesEXT
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 PhysicalDeviceImageViewMinLodFeaturesEXT where
  peekCStruct :: Ptr PhysicalDeviceImageViewMinLodFeaturesEXT
-> IO PhysicalDeviceImageViewMinLodFeaturesEXT
peekCStruct Ptr PhysicalDeviceImageViewMinLodFeaturesEXT
p = do
    Bool32
minLod <- forall a. Storable a => Ptr a -> IO a
peek @Bool32 ((Ptr PhysicalDeviceImageViewMinLodFeaturesEXT
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 -> PhysicalDeviceImageViewMinLodFeaturesEXT
PhysicalDeviceImageViewMinLodFeaturesEXT
             (Bool32 -> Bool
bool32ToBool Bool32
minLod)

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

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


-- | VkImageViewMinLodCreateInfoEXT - Structure describing the minimum LOD of
-- an image view
--
-- = Description
--
-- If the @pNext@ chain includes a 'ImageViewMinLodCreateInfoEXT'
-- structure, then that structure includes a parameter specifying a value
-- to clamp the minimum LOD value during
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#textures-image-level-selection Image Level(s) Selection>,
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#textures-gather Texel Gathering>
-- and
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#textures-integer-coordinate-operations Integer Texel Coordinate Operations>.
--
-- If the image view contains 'ImageViewMinLodCreateInfoEXT' and it is used
-- as part of a sampling operation:
--
-- minLodFloatimageView = @minLod@
--
-- otherwise:
--
-- minLodFloatimageView = 0.0
--
-- An integer variant of this parameter is also defined for sampling
-- operations which access integer mipmap levels:
--
-- minLodIntegerimageView = ⌊minLodFloatimageView⌋
--
-- == Valid Usage
--
-- -   #VUID-VkImageViewMinLodCreateInfoEXT-minLod-06455# If the
--     <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#features-minLod minLod>
--     feature is not enabled, @minLod@ /must/ be @0.0@
--
-- -   #VUID-VkImageViewMinLodCreateInfoEXT-minLod-06456# @minLod@ /must/
--     be less or equal to the index of the last mipmap level accessible to
--     the view
--
-- == Valid Usage (Implicit)
--
-- -   #VUID-VkImageViewMinLodCreateInfoEXT-sType-sType# @sType@ /must/ be
--     'Vulkan.Core10.Enums.StructureType.STRUCTURE_TYPE_IMAGE_VIEW_MIN_LOD_CREATE_INFO_EXT'
--
-- = See Also
--
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_EXT_image_view_min_lod VK_EXT_image_view_min_lod>,
-- 'Vulkan.Core10.Enums.StructureType.StructureType'
data ImageViewMinLodCreateInfoEXT = ImageViewMinLodCreateInfoEXT
  { -- | @minLod@ is the value to clamp the minimum LOD accessible by this
    -- 'Vulkan.Core10.Handles.ImageView'.
    ImageViewMinLodCreateInfoEXT -> Float
minLod :: Float }
  deriving (Typeable, ImageViewMinLodCreateInfoEXT
-> ImageViewMinLodCreateInfoEXT -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImageViewMinLodCreateInfoEXT
-> ImageViewMinLodCreateInfoEXT -> Bool
$c/= :: ImageViewMinLodCreateInfoEXT
-> ImageViewMinLodCreateInfoEXT -> Bool
== :: ImageViewMinLodCreateInfoEXT
-> ImageViewMinLodCreateInfoEXT -> Bool
$c== :: ImageViewMinLodCreateInfoEXT
-> ImageViewMinLodCreateInfoEXT -> Bool
Eq)
#if defined(GENERIC_INSTANCES)
deriving instance Generic (ImageViewMinLodCreateInfoEXT)
#endif
deriving instance Show ImageViewMinLodCreateInfoEXT

instance ToCStruct ImageViewMinLodCreateInfoEXT where
  withCStruct :: forall b.
ImageViewMinLodCreateInfoEXT
-> (Ptr ImageViewMinLodCreateInfoEXT -> IO b) -> IO b
withCStruct ImageViewMinLodCreateInfoEXT
x Ptr ImageViewMinLodCreateInfoEXT -> IO b
f = forall a b. Int -> (Ptr a -> IO b) -> IO b
allocaBytes Int
24 forall a b. (a -> b) -> a -> b
$ \Ptr ImageViewMinLodCreateInfoEXT
p -> forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct Ptr ImageViewMinLodCreateInfoEXT
p ImageViewMinLodCreateInfoEXT
x (Ptr ImageViewMinLodCreateInfoEXT -> IO b
f Ptr ImageViewMinLodCreateInfoEXT
p)
  pokeCStruct :: forall b.
Ptr ImageViewMinLodCreateInfoEXT
-> ImageViewMinLodCreateInfoEXT -> IO b -> IO b
pokeCStruct Ptr ImageViewMinLodCreateInfoEXT
p ImageViewMinLodCreateInfoEXT{Float
minLod :: Float
$sel:minLod:ImageViewMinLodCreateInfoEXT :: ImageViewMinLodCreateInfoEXT -> Float
..} IO b
f = do
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr ImageViewMinLodCreateInfoEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_IMAGE_VIEW_MIN_LOD_CREATE_INFO_EXT)
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr ImageViewMinLodCreateInfoEXT
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 ImageViewMinLodCreateInfoEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr CFloat)) (Float -> CFloat
CFloat (Float
minLod))
    IO b
f
  cStructSize :: Int
cStructSize = Int
24
  cStructAlignment :: Int
cStructAlignment = Int
8
  pokeZeroCStruct :: forall b. Ptr ImageViewMinLodCreateInfoEXT -> IO b -> IO b
pokeZeroCStruct Ptr ImageViewMinLodCreateInfoEXT
p IO b
f = do
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr ImageViewMinLodCreateInfoEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_IMAGE_VIEW_MIN_LOD_CREATE_INFO_EXT)
    forall a. Storable a => Ptr a -> a -> IO ()
poke ((Ptr ImageViewMinLodCreateInfoEXT
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 ImageViewMinLodCreateInfoEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr CFloat)) (Float -> CFloat
CFloat (forall a. Zero a => a
zero))
    IO b
f

instance FromCStruct ImageViewMinLodCreateInfoEXT where
  peekCStruct :: Ptr ImageViewMinLodCreateInfoEXT -> IO ImageViewMinLodCreateInfoEXT
peekCStruct Ptr ImageViewMinLodCreateInfoEXT
p = do
    CFloat
minLod <- forall a. Storable a => Ptr a -> IO a
peek @CFloat ((Ptr ImageViewMinLodCreateInfoEXT
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr CFloat))
    forall (f :: * -> *) a. Applicative f => a -> f a
pure forall a b. (a -> b) -> a -> b
$ Float -> ImageViewMinLodCreateInfoEXT
ImageViewMinLodCreateInfoEXT
             (coerce :: forall a b. Coercible a b => a -> b
coerce @CFloat @Float CFloat
minLod)

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

instance Zero ImageViewMinLodCreateInfoEXT where
  zero :: ImageViewMinLodCreateInfoEXT
zero = Float -> ImageViewMinLodCreateInfoEXT
ImageViewMinLodCreateInfoEXT
           forall a. Zero a => a
zero


type EXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION = 1

-- No documentation found for TopLevel "VK_EXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION"
pattern EXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION :: forall a . Integral a => a
pattern $bEXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION :: forall a. Integral a => a
$mEXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION :: forall {r} {a}.
Integral a =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
EXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION = 1


type EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME = "VK_EXT_image_view_min_lod"

-- No documentation found for TopLevel "VK_EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME"
pattern EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME :: forall a . (Eq a, IsString a) => a
pattern $bEXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
$mEXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME :: forall {r} {a}.
(Eq a, IsString a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME = "VK_EXT_image_view_min_lod"