{-# LINE 1 "src/Mischief/WGPU/Types/Enums.hsc" #-}
module Mischief.WGPU.Types.Enums where
import Foreign
import Foreign.C.ConstPtr
import Foreign.C.Types
import Data.Void
import Data.Word (Word64)
newtype WGPUSType = WGPUSType CUInt deriving (WGPUSType -> WGPUSType -> Bool
(WGPUSType -> WGPUSType -> Bool)
-> (WGPUSType -> WGPUSType -> Bool) -> Eq WGPUSType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUSType -> WGPUSType -> Bool
== :: WGPUSType -> WGPUSType -> Bool
$c/= :: WGPUSType -> WGPUSType -> Bool
/= :: WGPUSType -> WGPUSType -> Bool
Eq, Eq WGPUSType
Eq WGPUSType =>
(WGPUSType -> WGPUSType -> Ordering)
-> (WGPUSType -> WGPUSType -> Bool)
-> (WGPUSType -> WGPUSType -> Bool)
-> (WGPUSType -> WGPUSType -> Bool)
-> (WGPUSType -> WGPUSType -> Bool)
-> (WGPUSType -> WGPUSType -> WGPUSType)
-> (WGPUSType -> WGPUSType -> WGPUSType)
-> Ord WGPUSType
WGPUSType -> WGPUSType -> Bool
WGPUSType -> WGPUSType -> Ordering
WGPUSType -> WGPUSType -> WGPUSType
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
$ccompare :: WGPUSType -> WGPUSType -> Ordering
compare :: WGPUSType -> WGPUSType -> Ordering
$c< :: WGPUSType -> WGPUSType -> Bool
< :: WGPUSType -> WGPUSType -> Bool
$c<= :: WGPUSType -> WGPUSType -> Bool
<= :: WGPUSType -> WGPUSType -> Bool
$c> :: WGPUSType -> WGPUSType -> Bool
> :: WGPUSType -> WGPUSType -> Bool
$c>= :: WGPUSType -> WGPUSType -> Bool
>= :: WGPUSType -> WGPUSType -> Bool
$cmax :: WGPUSType -> WGPUSType -> WGPUSType
max :: WGPUSType -> WGPUSType -> WGPUSType
$cmin :: WGPUSType -> WGPUSType -> WGPUSType
min :: WGPUSType -> WGPUSType -> WGPUSType
Ord, Int -> WGPUSType -> ShowS
[WGPUSType] -> ShowS
WGPUSType -> String
(Int -> WGPUSType -> ShowS)
-> (WGPUSType -> String)
-> ([WGPUSType] -> ShowS)
-> Show WGPUSType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUSType -> ShowS
showsPrec :: Int -> WGPUSType -> ShowS
$cshow :: WGPUSType -> String
show :: WGPUSType -> String
$cshowList :: [WGPUSType] -> ShowS
showList :: [WGPUSType] -> ShowS
Show)
instance Storable WGPUSType where
alignment :: WGPUSType -> Int
alignment WGPUSType
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUSType -> Int
sizeOf WGPUSType
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUSType -> IO WGPUSType
peek Ptr WGPUSType
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUSType -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUSType
ptr)
pure $ WGPUSType x
poke :: Ptr WGPUSType -> WGPUSType -> IO ()
poke Ptr WGPUSType
ptr (WGPUSType CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUSType -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUSType
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUSType_ShaderSourceSPIRV :: WGPUSType
wGPUSType_ShaderSourceSPIRV :: WGPUSType
wGPUSType_ShaderSourceSPIRV = CUInt -> WGPUSType
WGPUSType CUInt
1
{-# LINE 26 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_ShaderSourceWGSL :: WGPUSType
wGPUSType_ShaderSourceWGSL :: WGPUSType
wGPUSType_ShaderSourceWGSL = CUInt -> WGPUSType
WGPUSType CUInt
2
{-# LINE 29 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_RenderPassMaxDrawCount :: WGPUSType
wGPUSType_RenderPassMaxDrawCount :: WGPUSType
wGPUSType_RenderPassMaxDrawCount = CUInt -> WGPUSType
WGPUSType CUInt
3
{-# LINE 32 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_SurfaceSourceMetalLayer :: WGPUSType
wGPUSType_SurfaceSourceMetalLayer :: WGPUSType
wGPUSType_SurfaceSourceMetalLayer = CUInt -> WGPUSType
WGPUSType CUInt
4
{-# LINE 35 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_SurfaceSourceWindowsHWND :: WGPUSType
wGPUSType_SurfaceSourceWindowsHWND :: WGPUSType
wGPUSType_SurfaceSourceWindowsHWND = CUInt -> WGPUSType
WGPUSType CUInt
5
{-# LINE 38 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_SurfaceSourceXlibWindow :: WGPUSType
wGPUSType_SurfaceSourceXlibWindow :: WGPUSType
wGPUSType_SurfaceSourceXlibWindow = CUInt -> WGPUSType
WGPUSType CUInt
6
{-# LINE 41 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_SurfaceSourceWaylandSurface :: WGPUSType
wGPUSType_SurfaceSourceWaylandSurface :: WGPUSType
wGPUSType_SurfaceSourceWaylandSurface = CUInt -> WGPUSType
WGPUSType CUInt
7
{-# LINE 44 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_SurfaceSourceAndroidNativeWindow :: WGPUSType
wGPUSType_SurfaceSourceAndroidNativeWindow :: WGPUSType
wGPUSType_SurfaceSourceAndroidNativeWindow = CUInt -> WGPUSType
WGPUSType CUInt
8
{-# LINE 47 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_SurfaceSourceXCBWindow :: WGPUSType
wGPUSType_SurfaceSourceXCBWindow :: WGPUSType
wGPUSType_SurfaceSourceXCBWindow = CUInt -> WGPUSType
WGPUSType CUInt
9
{-# LINE 50 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_SurfaceColorManagement :: WGPUSType
wGPUSType_SurfaceColorManagement :: WGPUSType
wGPUSType_SurfaceColorManagement = CUInt -> WGPUSType
WGPUSType CUInt
10
{-# LINE 53 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_RequestAdapterWebXROptions :: WGPUSType
wGPUSType_RequestAdapterWebXROptions :: WGPUSType
wGPUSType_RequestAdapterWebXROptions = CUInt -> WGPUSType
WGPUSType CUInt
11
{-# LINE 56 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_TextureComponentSwizzleDescriptor :: WGPUSType
wGPUSType_TextureComponentSwizzleDescriptor :: WGPUSType
wGPUSType_TextureComponentSwizzleDescriptor = CUInt -> WGPUSType
WGPUSType CUInt
12
{-# LINE 59 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_ExternalTextureBindingLayout :: WGPUSType
wGPUSType_ExternalTextureBindingLayout :: WGPUSType
wGPUSType_ExternalTextureBindingLayout = CUInt -> WGPUSType
WGPUSType CUInt
13
{-# LINE 62 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_ExternalTextureBindingEntry :: WGPUSType
wGPUSType_ExternalTextureBindingEntry :: WGPUSType
wGPUSType_ExternalTextureBindingEntry = CUInt -> WGPUSType
WGPUSType CUInt
14
{-# LINE 65 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_CompatibilityModeLimits :: WGPUSType
wGPUSType_CompatibilityModeLimits :: WGPUSType
wGPUSType_CompatibilityModeLimits = CUInt -> WGPUSType
WGPUSType CUInt
15
{-# LINE 68 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_TextureBindingViewDimension :: WGPUSType
wGPUSType_TextureBindingViewDimension :: WGPUSType
wGPUSType_TextureBindingViewDimension = CUInt -> WGPUSType
WGPUSType CUInt
16
{-# LINE 71 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSType_Force32 :: WGPUSType
wGPUSType_Force32 :: WGPUSType
wGPUSType_Force32 = CUInt -> WGPUSType
WGPUSType CUInt
2147483647
{-# LINE 74 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUFeatureLevel = WGPUFeatureLevel CUInt deriving (WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
(WGPUFeatureLevel -> WGPUFeatureLevel -> Bool)
-> (WGPUFeatureLevel -> WGPUFeatureLevel -> Bool)
-> Eq WGPUFeatureLevel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
== :: WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
$c/= :: WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
/= :: WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
Eq, Eq WGPUFeatureLevel
Eq WGPUFeatureLevel =>
(WGPUFeatureLevel -> WGPUFeatureLevel -> Ordering)
-> (WGPUFeatureLevel -> WGPUFeatureLevel -> Bool)
-> (WGPUFeatureLevel -> WGPUFeatureLevel -> Bool)
-> (WGPUFeatureLevel -> WGPUFeatureLevel -> Bool)
-> (WGPUFeatureLevel -> WGPUFeatureLevel -> Bool)
-> (WGPUFeatureLevel -> WGPUFeatureLevel -> WGPUFeatureLevel)
-> (WGPUFeatureLevel -> WGPUFeatureLevel -> WGPUFeatureLevel)
-> Ord WGPUFeatureLevel
WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
WGPUFeatureLevel -> WGPUFeatureLevel -> Ordering
WGPUFeatureLevel -> WGPUFeatureLevel -> WGPUFeatureLevel
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
$ccompare :: WGPUFeatureLevel -> WGPUFeatureLevel -> Ordering
compare :: WGPUFeatureLevel -> WGPUFeatureLevel -> Ordering
$c< :: WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
< :: WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
$c<= :: WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
<= :: WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
$c> :: WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
> :: WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
$c>= :: WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
>= :: WGPUFeatureLevel -> WGPUFeatureLevel -> Bool
$cmax :: WGPUFeatureLevel -> WGPUFeatureLevel -> WGPUFeatureLevel
max :: WGPUFeatureLevel -> WGPUFeatureLevel -> WGPUFeatureLevel
$cmin :: WGPUFeatureLevel -> WGPUFeatureLevel -> WGPUFeatureLevel
min :: WGPUFeatureLevel -> WGPUFeatureLevel -> WGPUFeatureLevel
Ord, Int -> WGPUFeatureLevel -> ShowS
[WGPUFeatureLevel] -> ShowS
WGPUFeatureLevel -> String
(Int -> WGPUFeatureLevel -> ShowS)
-> (WGPUFeatureLevel -> String)
-> ([WGPUFeatureLevel] -> ShowS)
-> Show WGPUFeatureLevel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUFeatureLevel -> ShowS
showsPrec :: Int -> WGPUFeatureLevel -> ShowS
$cshow :: WGPUFeatureLevel -> String
show :: WGPUFeatureLevel -> String
$cshowList :: [WGPUFeatureLevel] -> ShowS
showList :: [WGPUFeatureLevel] -> ShowS
Show)
instance Storable WGPUFeatureLevel where
alignment :: WGPUFeatureLevel -> Int
alignment WGPUFeatureLevel
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUFeatureLevel -> Int
sizeOf WGPUFeatureLevel
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUFeatureLevel -> IO WGPUFeatureLevel
peek Ptr WGPUFeatureLevel
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUFeatureLevel -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUFeatureLevel
ptr)
pure $ WGPUFeatureLevel x
poke :: Ptr WGPUFeatureLevel -> WGPUFeatureLevel -> IO ()
poke Ptr WGPUFeatureLevel
ptr (WGPUFeatureLevel CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUFeatureLevel -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUFeatureLevel
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUFeatureLevel_Undefined :: WGPUFeatureLevel
wGPUFeatureLevel_Undefined :: WGPUFeatureLevel
wGPUFeatureLevel_Undefined = CUInt -> WGPUFeatureLevel
WGPUFeatureLevel CUInt
0
{-# LINE 92 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUFeatureLevel_Compatibility :: WGPUFeatureLevel
wGPUFeatureLevel_Compatibility :: WGPUFeatureLevel
wGPUFeatureLevel_Compatibility = CUInt -> WGPUFeatureLevel
WGPUFeatureLevel CUInt
1
{-# LINE 95 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUFeatureLevel_Core :: WGPUFeatureLevel
wGPUFeatureLevel_Core :: WGPUFeatureLevel
wGPUFeatureLevel_Core = CUInt -> WGPUFeatureLevel
WGPUFeatureLevel CUInt
2
{-# LINE 98 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUFeatureLevel_Force32 :: WGPUFeatureLevel
wGPUFeatureLevel_Force32 :: WGPUFeatureLevel
wGPUFeatureLevel_Force32 = CUInt -> WGPUFeatureLevel
WGPUFeatureLevel CUInt
2147483647
{-# LINE 101 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUPowerPreference = WGPUPowerPreference CUInt deriving (WGPUPowerPreference -> WGPUPowerPreference -> Bool
(WGPUPowerPreference -> WGPUPowerPreference -> Bool)
-> (WGPUPowerPreference -> WGPUPowerPreference -> Bool)
-> Eq WGPUPowerPreference
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUPowerPreference -> WGPUPowerPreference -> Bool
== :: WGPUPowerPreference -> WGPUPowerPreference -> Bool
$c/= :: WGPUPowerPreference -> WGPUPowerPreference -> Bool
/= :: WGPUPowerPreference -> WGPUPowerPreference -> Bool
Eq, Eq WGPUPowerPreference
Eq WGPUPowerPreference =>
(WGPUPowerPreference -> WGPUPowerPreference -> Ordering)
-> (WGPUPowerPreference -> WGPUPowerPreference -> Bool)
-> (WGPUPowerPreference -> WGPUPowerPreference -> Bool)
-> (WGPUPowerPreference -> WGPUPowerPreference -> Bool)
-> (WGPUPowerPreference -> WGPUPowerPreference -> Bool)
-> (WGPUPowerPreference
-> WGPUPowerPreference -> WGPUPowerPreference)
-> (WGPUPowerPreference
-> WGPUPowerPreference -> WGPUPowerPreference)
-> Ord WGPUPowerPreference
WGPUPowerPreference -> WGPUPowerPreference -> Bool
WGPUPowerPreference -> WGPUPowerPreference -> Ordering
WGPUPowerPreference -> WGPUPowerPreference -> WGPUPowerPreference
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
$ccompare :: WGPUPowerPreference -> WGPUPowerPreference -> Ordering
compare :: WGPUPowerPreference -> WGPUPowerPreference -> Ordering
$c< :: WGPUPowerPreference -> WGPUPowerPreference -> Bool
< :: WGPUPowerPreference -> WGPUPowerPreference -> Bool
$c<= :: WGPUPowerPreference -> WGPUPowerPreference -> Bool
<= :: WGPUPowerPreference -> WGPUPowerPreference -> Bool
$c> :: WGPUPowerPreference -> WGPUPowerPreference -> Bool
> :: WGPUPowerPreference -> WGPUPowerPreference -> Bool
$c>= :: WGPUPowerPreference -> WGPUPowerPreference -> Bool
>= :: WGPUPowerPreference -> WGPUPowerPreference -> Bool
$cmax :: WGPUPowerPreference -> WGPUPowerPreference -> WGPUPowerPreference
max :: WGPUPowerPreference -> WGPUPowerPreference -> WGPUPowerPreference
$cmin :: WGPUPowerPreference -> WGPUPowerPreference -> WGPUPowerPreference
min :: WGPUPowerPreference -> WGPUPowerPreference -> WGPUPowerPreference
Ord, Int -> WGPUPowerPreference -> ShowS
[WGPUPowerPreference] -> ShowS
WGPUPowerPreference -> String
(Int -> WGPUPowerPreference -> ShowS)
-> (WGPUPowerPreference -> String)
-> ([WGPUPowerPreference] -> ShowS)
-> Show WGPUPowerPreference
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUPowerPreference -> ShowS
showsPrec :: Int -> WGPUPowerPreference -> ShowS
$cshow :: WGPUPowerPreference -> String
show :: WGPUPowerPreference -> String
$cshowList :: [WGPUPowerPreference] -> ShowS
showList :: [WGPUPowerPreference] -> ShowS
Show)
instance Storable WGPUPowerPreference where
alignment :: WGPUPowerPreference -> Int
alignment WGPUPowerPreference
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUPowerPreference -> Int
sizeOf WGPUPowerPreference
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUPowerPreference -> IO WGPUPowerPreference
peek Ptr WGPUPowerPreference
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUPowerPreference -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUPowerPreference
ptr)
pure $ WGPUPowerPreference x
poke :: Ptr WGPUPowerPreference -> WGPUPowerPreference -> IO ()
poke Ptr WGPUPowerPreference
ptr (WGPUPowerPreference CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUPowerPreference -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUPowerPreference
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUPowerPreference_Undefined :: WGPUPowerPreference
wGPUPowerPreference_Undefined :: WGPUPowerPreference
wGPUPowerPreference_Undefined = CUInt -> WGPUPowerPreference
WGPUPowerPreference CUInt
0
{-# LINE 117 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPowerPreference_LowPower :: WGPUPowerPreference
wGPUPowerPreference_LowPower :: WGPUPowerPreference
wGPUPowerPreference_LowPower = CUInt -> WGPUPowerPreference
WGPUPowerPreference CUInt
1
{-# LINE 120 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPowerPreference_HighPerformance :: WGPUPowerPreference
wGPUPowerPreference_HighPerformance :: WGPUPowerPreference
wGPUPowerPreference_HighPerformance = CUInt -> WGPUPowerPreference
WGPUPowerPreference CUInt
2
{-# LINE 123 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPowerPreference_Force32 :: WGPUPowerPreference
wGPUPowerPreference_Force32 :: WGPUPowerPreference
wGPUPowerPreference_Force32 = CUInt -> WGPUPowerPreference
WGPUPowerPreference CUInt
2147483647
{-# LINE 126 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUBool = WGPUBool Word32 deriving newtype (Ptr WGPUBool -> IO WGPUBool
Ptr WGPUBool -> Int -> IO WGPUBool
Ptr WGPUBool -> Int -> WGPUBool -> IO ()
Ptr WGPUBool -> WGPUBool -> IO ()
WGPUBool -> Int
(WGPUBool -> Int)
-> (WGPUBool -> Int)
-> (Ptr WGPUBool -> Int -> IO WGPUBool)
-> (Ptr WGPUBool -> Int -> WGPUBool -> IO ())
-> (forall b. Ptr b -> Int -> IO WGPUBool)
-> (forall b. Ptr b -> Int -> WGPUBool -> IO ())
-> (Ptr WGPUBool -> IO WGPUBool)
-> (Ptr WGPUBool -> WGPUBool -> IO ())
-> Storable WGPUBool
forall b. Ptr b -> Int -> IO WGPUBool
forall b. Ptr b -> Int -> WGPUBool -> 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
$csizeOf :: WGPUBool -> Int
sizeOf :: WGPUBool -> Int
$calignment :: WGPUBool -> Int
alignment :: WGPUBool -> Int
$cpeekElemOff :: Ptr WGPUBool -> Int -> IO WGPUBool
peekElemOff :: Ptr WGPUBool -> Int -> IO WGPUBool
$cpokeElemOff :: Ptr WGPUBool -> Int -> WGPUBool -> IO ()
pokeElemOff :: Ptr WGPUBool -> Int -> WGPUBool -> IO ()
$cpeekByteOff :: forall b. Ptr b -> Int -> IO WGPUBool
peekByteOff :: forall b. Ptr b -> Int -> IO WGPUBool
$cpokeByteOff :: forall b. Ptr b -> Int -> WGPUBool -> IO ()
pokeByteOff :: forall b. Ptr b -> Int -> WGPUBool -> IO ()
$cpeek :: Ptr WGPUBool -> IO WGPUBool
peek :: Ptr WGPUBool -> IO WGPUBool
$cpoke :: Ptr WGPUBool -> WGPUBool -> IO ()
poke :: Ptr WGPUBool -> WGPUBool -> IO ()
Storable)
wgpuFalse, wgpuTrue :: WGPUBool
wgpuFalse :: WGPUBool
wgpuFalse = Word32 -> WGPUBool
WGPUBool Word32
0
wgpuTrue :: WGPUBool
wgpuTrue = Word32 -> WGPUBool
WGPUBool Word32
1
newtype WGPUBackendType = WGPUBackendType CUInt deriving (WGPUBackendType -> WGPUBackendType -> Bool
(WGPUBackendType -> WGPUBackendType -> Bool)
-> (WGPUBackendType -> WGPUBackendType -> Bool)
-> Eq WGPUBackendType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUBackendType -> WGPUBackendType -> Bool
== :: WGPUBackendType -> WGPUBackendType -> Bool
$c/= :: WGPUBackendType -> WGPUBackendType -> Bool
/= :: WGPUBackendType -> WGPUBackendType -> Bool
Eq, Eq WGPUBackendType
Eq WGPUBackendType =>
(WGPUBackendType -> WGPUBackendType -> Ordering)
-> (WGPUBackendType -> WGPUBackendType -> Bool)
-> (WGPUBackendType -> WGPUBackendType -> Bool)
-> (WGPUBackendType -> WGPUBackendType -> Bool)
-> (WGPUBackendType -> WGPUBackendType -> Bool)
-> (WGPUBackendType -> WGPUBackendType -> WGPUBackendType)
-> (WGPUBackendType -> WGPUBackendType -> WGPUBackendType)
-> Ord WGPUBackendType
WGPUBackendType -> WGPUBackendType -> Bool
WGPUBackendType -> WGPUBackendType -> Ordering
WGPUBackendType -> WGPUBackendType -> WGPUBackendType
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
$ccompare :: WGPUBackendType -> WGPUBackendType -> Ordering
compare :: WGPUBackendType -> WGPUBackendType -> Ordering
$c< :: WGPUBackendType -> WGPUBackendType -> Bool
< :: WGPUBackendType -> WGPUBackendType -> Bool
$c<= :: WGPUBackendType -> WGPUBackendType -> Bool
<= :: WGPUBackendType -> WGPUBackendType -> Bool
$c> :: WGPUBackendType -> WGPUBackendType -> Bool
> :: WGPUBackendType -> WGPUBackendType -> Bool
$c>= :: WGPUBackendType -> WGPUBackendType -> Bool
>= :: WGPUBackendType -> WGPUBackendType -> Bool
$cmax :: WGPUBackendType -> WGPUBackendType -> WGPUBackendType
max :: WGPUBackendType -> WGPUBackendType -> WGPUBackendType
$cmin :: WGPUBackendType -> WGPUBackendType -> WGPUBackendType
min :: WGPUBackendType -> WGPUBackendType -> WGPUBackendType
Ord, Int -> WGPUBackendType -> ShowS
[WGPUBackendType] -> ShowS
WGPUBackendType -> String
(Int -> WGPUBackendType -> ShowS)
-> (WGPUBackendType -> String)
-> ([WGPUBackendType] -> ShowS)
-> Show WGPUBackendType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUBackendType -> ShowS
showsPrec :: Int -> WGPUBackendType -> ShowS
$cshow :: WGPUBackendType -> String
show :: WGPUBackendType -> String
$cshowList :: [WGPUBackendType] -> ShowS
showList :: [WGPUBackendType] -> ShowS
Show)
instance Storable WGPUBackendType where
alignment :: WGPUBackendType -> Int
alignment WGPUBackendType
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUBackendType -> Int
sizeOf WGPUBackendType
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUBackendType -> IO WGPUBackendType
peek Ptr WGPUBackendType
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUBackendType -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUBackendType
ptr)
pure $ WGPUBackendType x
poke :: Ptr WGPUBackendType -> WGPUBackendType -> IO ()
poke Ptr WGPUBackendType
ptr (WGPUBackendType CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUBackendType -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUBackendType
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUBackendType_Undefined :: WGPUBackendType
wGPUBackendType_Undefined :: WGPUBackendType
wGPUBackendType_Undefined = CUInt -> WGPUBackendType
WGPUBackendType CUInt
0
{-# LINE 147 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBackendType_Null :: WGPUBackendType
wGPUBackendType_Null :: WGPUBackendType
wGPUBackendType_Null = CUInt -> WGPUBackendType
WGPUBackendType CUInt
1
{-# LINE 150 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBackendType_WebGPU :: WGPUBackendType
wGPUBackendType_WebGPU :: WGPUBackendType
wGPUBackendType_WebGPU = CUInt -> WGPUBackendType
WGPUBackendType CUInt
2
{-# LINE 153 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBackendType_D3D11 :: WGPUBackendType
wGPUBackendType_D3D11 :: WGPUBackendType
wGPUBackendType_D3D11 = CUInt -> WGPUBackendType
WGPUBackendType CUInt
3
{-# LINE 156 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBackendType_D3D12 :: WGPUBackendType
wGPUBackendType_D3D12 :: WGPUBackendType
wGPUBackendType_D3D12 = CUInt -> WGPUBackendType
WGPUBackendType CUInt
4
{-# LINE 159 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBackendType_Metal :: WGPUBackendType
wGPUBackendType_Metal :: WGPUBackendType
wGPUBackendType_Metal = CUInt -> WGPUBackendType
WGPUBackendType CUInt
5
{-# LINE 162 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBackendType_Vulkan :: WGPUBackendType
wGPUBackendType_Vulkan :: WGPUBackendType
wGPUBackendType_Vulkan = CUInt -> WGPUBackendType
WGPUBackendType CUInt
6
{-# LINE 165 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBackendType_OpenGL :: WGPUBackendType
wGPUBackendType_OpenGL :: WGPUBackendType
wGPUBackendType_OpenGL = CUInt -> WGPUBackendType
WGPUBackendType CUInt
7
{-# LINE 168 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBackendType_OpenGLES :: WGPUBackendType
wGPUBackendType_OpenGLES :: WGPUBackendType
wGPUBackendType_OpenGLES = CUInt -> WGPUBackendType
WGPUBackendType CUInt
8
{-# LINE 171 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBackendType_Force32 :: WGPUBackendType
wGPUBackendType_Force32 :: WGPUBackendType
wGPUBackendType_Force32 = CUInt -> WGPUBackendType
WGPUBackendType CUInt
2147483647
{-# LINE 174 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPURequestAdapterStatus = WGPURequestAdapterStatus CUInt deriving (WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
(WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool)
-> (WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool)
-> Eq WGPURequestAdapterStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
== :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
$c/= :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
/= :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
Eq, Eq WGPURequestAdapterStatus
Eq WGPURequestAdapterStatus =>
(WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Ordering)
-> (WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool)
-> (WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool)
-> (WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool)
-> (WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool)
-> (WGPURequestAdapterStatus
-> WGPURequestAdapterStatus -> WGPURequestAdapterStatus)
-> (WGPURequestAdapterStatus
-> WGPURequestAdapterStatus -> WGPURequestAdapterStatus)
-> Ord WGPURequestAdapterStatus
WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Ordering
WGPURequestAdapterStatus
-> WGPURequestAdapterStatus -> WGPURequestAdapterStatus
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
$ccompare :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Ordering
compare :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Ordering
$c< :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
< :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
$c<= :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
<= :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
$c> :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
> :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
$c>= :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
>= :: WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> Bool
$cmax :: WGPURequestAdapterStatus
-> WGPURequestAdapterStatus -> WGPURequestAdapterStatus
max :: WGPURequestAdapterStatus
-> WGPURequestAdapterStatus -> WGPURequestAdapterStatus
$cmin :: WGPURequestAdapterStatus
-> WGPURequestAdapterStatus -> WGPURequestAdapterStatus
min :: WGPURequestAdapterStatus
-> WGPURequestAdapterStatus -> WGPURequestAdapterStatus
Ord, Int -> WGPURequestAdapterStatus -> ShowS
[WGPURequestAdapterStatus] -> ShowS
WGPURequestAdapterStatus -> String
(Int -> WGPURequestAdapterStatus -> ShowS)
-> (WGPURequestAdapterStatus -> String)
-> ([WGPURequestAdapterStatus] -> ShowS)
-> Show WGPURequestAdapterStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPURequestAdapterStatus -> ShowS
showsPrec :: Int -> WGPURequestAdapterStatus -> ShowS
$cshow :: WGPURequestAdapterStatus -> String
show :: WGPURequestAdapterStatus -> String
$cshowList :: [WGPURequestAdapterStatus] -> ShowS
showList :: [WGPURequestAdapterStatus] -> ShowS
Show)
instance Storable WGPURequestAdapterStatus where
alignment :: WGPURequestAdapterStatus -> Int
alignment WGPURequestAdapterStatus
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPURequestAdapterStatus -> Int
sizeOf WGPURequestAdapterStatus
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPURequestAdapterStatus -> IO WGPURequestAdapterStatus
peek Ptr WGPURequestAdapterStatus
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPURequestAdapterStatus -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPURequestAdapterStatus
ptr)
pure $ WGPURequestAdapterStatus x
poke :: Ptr WGPURequestAdapterStatus -> WGPURequestAdapterStatus -> IO ()
poke Ptr WGPURequestAdapterStatus
ptr (WGPURequestAdapterStatus CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPURequestAdapterStatus -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPURequestAdapterStatus
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPURequestAdapterStatus_Success :: WGPURequestAdapterStatus
wGPURequestAdapterStatus_Success :: WGPURequestAdapterStatus
wGPURequestAdapterStatus_Success = CUInt -> WGPURequestAdapterStatus
WGPURequestAdapterStatus CUInt
1
{-# LINE 191 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPURequestAdapterStatus_CallbackCancelled :: WGPURequestAdapterStatus
wGPURequestAdapterStatus_CallbackCancelled :: WGPURequestAdapterStatus
wGPURequestAdapterStatus_CallbackCancelled = CUInt -> WGPURequestAdapterStatus
WGPURequestAdapterStatus CUInt
2
{-# LINE 194 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPURequestAdapterStatus_Unavailable :: WGPURequestAdapterStatus
wGPURequestAdapterStatus_Unavailable :: WGPURequestAdapterStatus
wGPURequestAdapterStatus_Unavailable = CUInt -> WGPURequestAdapterStatus
WGPURequestAdapterStatus CUInt
3
{-# LINE 197 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPURequestAdapterStatus_Error :: WGPURequestAdapterStatus
wGPURequestAdapterStatus_Error :: WGPURequestAdapterStatus
wGPURequestAdapterStatus_Error = CUInt -> WGPURequestAdapterStatus
WGPURequestAdapterStatus CUInt
4
{-# LINE 200 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPURequestAdapterStatus_Force32 :: WGPURequestAdapterStatus
wGPURequestAdapterStatus_Force32 :: WGPURequestAdapterStatus
wGPURequestAdapterStatus_Force32 = CUInt -> WGPURequestAdapterStatus
WGPURequestAdapterStatus CUInt
2147483647
{-# LINE 203 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUCallbackMode = WGPUCallbackMode CUInt deriving (WGPUCallbackMode -> WGPUCallbackMode -> Bool
(WGPUCallbackMode -> WGPUCallbackMode -> Bool)
-> (WGPUCallbackMode -> WGPUCallbackMode -> Bool)
-> Eq WGPUCallbackMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUCallbackMode -> WGPUCallbackMode -> Bool
== :: WGPUCallbackMode -> WGPUCallbackMode -> Bool
$c/= :: WGPUCallbackMode -> WGPUCallbackMode -> Bool
/= :: WGPUCallbackMode -> WGPUCallbackMode -> Bool
Eq, Eq WGPUCallbackMode
Eq WGPUCallbackMode =>
(WGPUCallbackMode -> WGPUCallbackMode -> Ordering)
-> (WGPUCallbackMode -> WGPUCallbackMode -> Bool)
-> (WGPUCallbackMode -> WGPUCallbackMode -> Bool)
-> (WGPUCallbackMode -> WGPUCallbackMode -> Bool)
-> (WGPUCallbackMode -> WGPUCallbackMode -> Bool)
-> (WGPUCallbackMode -> WGPUCallbackMode -> WGPUCallbackMode)
-> (WGPUCallbackMode -> WGPUCallbackMode -> WGPUCallbackMode)
-> Ord WGPUCallbackMode
WGPUCallbackMode -> WGPUCallbackMode -> Bool
WGPUCallbackMode -> WGPUCallbackMode -> Ordering
WGPUCallbackMode -> WGPUCallbackMode -> WGPUCallbackMode
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
$ccompare :: WGPUCallbackMode -> WGPUCallbackMode -> Ordering
compare :: WGPUCallbackMode -> WGPUCallbackMode -> Ordering
$c< :: WGPUCallbackMode -> WGPUCallbackMode -> Bool
< :: WGPUCallbackMode -> WGPUCallbackMode -> Bool
$c<= :: WGPUCallbackMode -> WGPUCallbackMode -> Bool
<= :: WGPUCallbackMode -> WGPUCallbackMode -> Bool
$c> :: WGPUCallbackMode -> WGPUCallbackMode -> Bool
> :: WGPUCallbackMode -> WGPUCallbackMode -> Bool
$c>= :: WGPUCallbackMode -> WGPUCallbackMode -> Bool
>= :: WGPUCallbackMode -> WGPUCallbackMode -> Bool
$cmax :: WGPUCallbackMode -> WGPUCallbackMode -> WGPUCallbackMode
max :: WGPUCallbackMode -> WGPUCallbackMode -> WGPUCallbackMode
$cmin :: WGPUCallbackMode -> WGPUCallbackMode -> WGPUCallbackMode
min :: WGPUCallbackMode -> WGPUCallbackMode -> WGPUCallbackMode
Ord, Int -> WGPUCallbackMode -> ShowS
[WGPUCallbackMode] -> ShowS
WGPUCallbackMode -> String
(Int -> WGPUCallbackMode -> ShowS)
-> (WGPUCallbackMode -> String)
-> ([WGPUCallbackMode] -> ShowS)
-> Show WGPUCallbackMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUCallbackMode -> ShowS
showsPrec :: Int -> WGPUCallbackMode -> ShowS
$cshow :: WGPUCallbackMode -> String
show :: WGPUCallbackMode -> String
$cshowList :: [WGPUCallbackMode] -> ShowS
showList :: [WGPUCallbackMode] -> ShowS
Show)
instance Storable WGPUCallbackMode where
alignment :: WGPUCallbackMode -> Int
alignment WGPUCallbackMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUCallbackMode -> Int
sizeOf WGPUCallbackMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUCallbackMode -> IO WGPUCallbackMode
peek Ptr WGPUCallbackMode
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUCallbackMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUCallbackMode
ptr)
pure $ WGPUCallbackMode x
poke :: Ptr WGPUCallbackMode -> WGPUCallbackMode -> IO ()
poke Ptr WGPUCallbackMode
ptr (WGPUCallbackMode CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUCallbackMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUCallbackMode
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUCallbackMode_WaitAnyOnly :: WGPUCallbackMode
wGPUCallbackMode_WaitAnyOnly :: WGPUCallbackMode
wGPUCallbackMode_WaitAnyOnly = CUInt -> WGPUCallbackMode
WGPUCallbackMode CUInt
1
{-# LINE 220 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCallbackMode_AllowProcessEvents :: WGPUCallbackMode
wGPUCallbackMode_AllowProcessEvents :: WGPUCallbackMode
wGPUCallbackMode_AllowProcessEvents = CUInt -> WGPUCallbackMode
WGPUCallbackMode CUInt
2
{-# LINE 223 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCallbackMode_AllowSpontaneous :: WGPUCallbackMode
wGPUCallbackMode_AllowSpontaneous :: WGPUCallbackMode
wGPUCallbackMode_AllowSpontaneous = CUInt -> WGPUCallbackMode
WGPUCallbackMode CUInt
3
{-# LINE 226 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCallbackMode_Force32 :: WGPUCallbackMode
wGPUCallbackMode_Force32 :: WGPUCallbackMode
wGPUCallbackMode_Force32 = CUInt -> WGPUCallbackMode
WGPUCallbackMode CUInt
2147483647
{-# LINE 229 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPURequestDeviceStatus = WGPURequestDeviceStatus CUInt deriving (WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
(WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool)
-> (WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool)
-> Eq WGPURequestDeviceStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
== :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
$c/= :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
/= :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
Eq, Eq WGPURequestDeviceStatus
Eq WGPURequestDeviceStatus =>
(WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Ordering)
-> (WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool)
-> (WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool)
-> (WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool)
-> (WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool)
-> (WGPURequestDeviceStatus
-> WGPURequestDeviceStatus -> WGPURequestDeviceStatus)
-> (WGPURequestDeviceStatus
-> WGPURequestDeviceStatus -> WGPURequestDeviceStatus)
-> Ord WGPURequestDeviceStatus
WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Ordering
WGPURequestDeviceStatus
-> WGPURequestDeviceStatus -> WGPURequestDeviceStatus
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
$ccompare :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Ordering
compare :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Ordering
$c< :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
< :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
$c<= :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
<= :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
$c> :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
> :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
$c>= :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
>= :: WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> Bool
$cmax :: WGPURequestDeviceStatus
-> WGPURequestDeviceStatus -> WGPURequestDeviceStatus
max :: WGPURequestDeviceStatus
-> WGPURequestDeviceStatus -> WGPURequestDeviceStatus
$cmin :: WGPURequestDeviceStatus
-> WGPURequestDeviceStatus -> WGPURequestDeviceStatus
min :: WGPURequestDeviceStatus
-> WGPURequestDeviceStatus -> WGPURequestDeviceStatus
Ord, Int -> WGPURequestDeviceStatus -> ShowS
[WGPURequestDeviceStatus] -> ShowS
WGPURequestDeviceStatus -> String
(Int -> WGPURequestDeviceStatus -> ShowS)
-> (WGPURequestDeviceStatus -> String)
-> ([WGPURequestDeviceStatus] -> ShowS)
-> Show WGPURequestDeviceStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPURequestDeviceStatus -> ShowS
showsPrec :: Int -> WGPURequestDeviceStatus -> ShowS
$cshow :: WGPURequestDeviceStatus -> String
show :: WGPURequestDeviceStatus -> String
$cshowList :: [WGPURequestDeviceStatus] -> ShowS
showList :: [WGPURequestDeviceStatus] -> ShowS
Show)
instance Storable WGPURequestDeviceStatus where
alignment :: WGPURequestDeviceStatus -> Int
alignment WGPURequestDeviceStatus
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPURequestDeviceStatus -> Int
sizeOf WGPURequestDeviceStatus
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPURequestDeviceStatus -> IO WGPURequestDeviceStatus
peek Ptr WGPURequestDeviceStatus
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPURequestDeviceStatus -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPURequestDeviceStatus
ptr)
pure $ WGPURequestDeviceStatus x
poke :: Ptr WGPURequestDeviceStatus -> WGPURequestDeviceStatus -> IO ()
poke Ptr WGPURequestDeviceStatus
ptr (WGPURequestDeviceStatus CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPURequestDeviceStatus -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPURequestDeviceStatus
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPURequestDeviceStatus_Success :: WGPURequestDeviceStatus
wGPURequestDeviceStatus_Success :: WGPURequestDeviceStatus
wGPURequestDeviceStatus_Success = CUInt -> WGPURequestDeviceStatus
WGPURequestDeviceStatus CUInt
1
{-# LINE 247 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPURequestDeviceStatus_CallbackCancelled :: WGPURequestDeviceStatus
wGPURequestDeviceStatus_CallbackCancelled :: WGPURequestDeviceStatus
wGPURequestDeviceStatus_CallbackCancelled = CUInt -> WGPURequestDeviceStatus
WGPURequestDeviceStatus CUInt
2
{-# LINE 250 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPURequestDeviceStatus_Error :: WGPURequestDeviceStatus
wGPURequestDeviceStatus_Error :: WGPURequestDeviceStatus
wGPURequestDeviceStatus_Error = CUInt -> WGPURequestDeviceStatus
WGPURequestDeviceStatus CUInt
3
{-# LINE 253 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPURequestDeviceStatus_Force32 :: WGPURequestDeviceStatus
wGPURequestDeviceStatus_Force32 :: WGPURequestDeviceStatus
wGPURequestDeviceStatus_Force32 = CUInt -> WGPURequestDeviceStatus
WGPURequestDeviceStatus CUInt
2147483647
{-# LINE 256 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUFlags = WGPUFlags Word64 deriving newtype (Int -> WGPUFlags -> ShowS
[WGPUFlags] -> ShowS
WGPUFlags -> String
(Int -> WGPUFlags -> ShowS)
-> (WGPUFlags -> String)
-> ([WGPUFlags] -> ShowS)
-> Show WGPUFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUFlags -> ShowS
showsPrec :: Int -> WGPUFlags -> ShowS
$cshow :: WGPUFlags -> String
show :: WGPUFlags -> String
$cshowList :: [WGPUFlags] -> ShowS
showList :: [WGPUFlags] -> ShowS
Show, WGPUFlags -> WGPUFlags -> Bool
(WGPUFlags -> WGPUFlags -> Bool)
-> (WGPUFlags -> WGPUFlags -> Bool) -> Eq WGPUFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUFlags -> WGPUFlags -> Bool
== :: WGPUFlags -> WGPUFlags -> Bool
$c/= :: WGPUFlags -> WGPUFlags -> Bool
/= :: WGPUFlags -> WGPUFlags -> Bool
Eq, Ptr WGPUFlags -> IO WGPUFlags
Ptr WGPUFlags -> Int -> IO WGPUFlags
Ptr WGPUFlags -> Int -> WGPUFlags -> IO ()
Ptr WGPUFlags -> WGPUFlags -> IO ()
WGPUFlags -> Int
(WGPUFlags -> Int)
-> (WGPUFlags -> Int)
-> (Ptr WGPUFlags -> Int -> IO WGPUFlags)
-> (Ptr WGPUFlags -> Int -> WGPUFlags -> IO ())
-> (forall b. Ptr b -> Int -> IO WGPUFlags)
-> (forall b. Ptr b -> Int -> WGPUFlags -> IO ())
-> (Ptr WGPUFlags -> IO WGPUFlags)
-> (Ptr WGPUFlags -> WGPUFlags -> IO ())
-> Storable WGPUFlags
forall b. Ptr b -> Int -> IO WGPUFlags
forall b. Ptr b -> Int -> WGPUFlags -> 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
$csizeOf :: WGPUFlags -> Int
sizeOf :: WGPUFlags -> Int
$calignment :: WGPUFlags -> Int
alignment :: WGPUFlags -> Int
$cpeekElemOff :: Ptr WGPUFlags -> Int -> IO WGPUFlags
peekElemOff :: Ptr WGPUFlags -> Int -> IO WGPUFlags
$cpokeElemOff :: Ptr WGPUFlags -> Int -> WGPUFlags -> IO ()
pokeElemOff :: Ptr WGPUFlags -> Int -> WGPUFlags -> IO ()
$cpeekByteOff :: forall b. Ptr b -> Int -> IO WGPUFlags
peekByteOff :: forall b. Ptr b -> Int -> IO WGPUFlags
$cpokeByteOff :: forall b. Ptr b -> Int -> WGPUFlags -> IO ()
pokeByteOff :: forall b. Ptr b -> Int -> WGPUFlags -> IO ()
$cpeek :: Ptr WGPUFlags -> IO WGPUFlags
peek :: Ptr WGPUFlags -> IO WGPUFlags
$cpoke :: Ptr WGPUFlags -> WGPUFlags -> IO ()
poke :: Ptr WGPUFlags -> WGPUFlags -> IO ()
Storable, Integer -> WGPUFlags
WGPUFlags -> WGPUFlags
WGPUFlags -> WGPUFlags -> WGPUFlags
(WGPUFlags -> WGPUFlags -> WGPUFlags)
-> (WGPUFlags -> WGPUFlags -> WGPUFlags)
-> (WGPUFlags -> WGPUFlags -> WGPUFlags)
-> (WGPUFlags -> WGPUFlags)
-> (WGPUFlags -> WGPUFlags)
-> (WGPUFlags -> WGPUFlags)
-> (Integer -> WGPUFlags)
-> Num WGPUFlags
forall a.
(a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (Integer -> a)
-> Num a
$c+ :: WGPUFlags -> WGPUFlags -> WGPUFlags
+ :: WGPUFlags -> WGPUFlags -> WGPUFlags
$c- :: WGPUFlags -> WGPUFlags -> WGPUFlags
- :: WGPUFlags -> WGPUFlags -> WGPUFlags
$c* :: WGPUFlags -> WGPUFlags -> WGPUFlags
* :: WGPUFlags -> WGPUFlags -> WGPUFlags
$cnegate :: WGPUFlags -> WGPUFlags
negate :: WGPUFlags -> WGPUFlags
$cabs :: WGPUFlags -> WGPUFlags
abs :: WGPUFlags -> WGPUFlags
$csignum :: WGPUFlags -> WGPUFlags
signum :: WGPUFlags -> WGPUFlags
$cfromInteger :: Integer -> WGPUFlags
fromInteger :: Integer -> WGPUFlags
Num, Eq WGPUFlags
WGPUFlags
Eq WGPUFlags =>
(WGPUFlags -> WGPUFlags -> WGPUFlags)
-> (WGPUFlags -> WGPUFlags -> WGPUFlags)
-> (WGPUFlags -> WGPUFlags -> WGPUFlags)
-> (WGPUFlags -> WGPUFlags)
-> (WGPUFlags -> Int -> WGPUFlags)
-> (WGPUFlags -> Int -> WGPUFlags)
-> WGPUFlags
-> (Int -> WGPUFlags)
-> (WGPUFlags -> Int -> WGPUFlags)
-> (WGPUFlags -> Int -> WGPUFlags)
-> (WGPUFlags -> Int -> WGPUFlags)
-> (WGPUFlags -> Int -> Bool)
-> (WGPUFlags -> Maybe Int)
-> (WGPUFlags -> Int)
-> (WGPUFlags -> Bool)
-> (WGPUFlags -> Int -> WGPUFlags)
-> (WGPUFlags -> Int -> WGPUFlags)
-> (WGPUFlags -> Int -> WGPUFlags)
-> (WGPUFlags -> Int -> WGPUFlags)
-> (WGPUFlags -> Int -> WGPUFlags)
-> (WGPUFlags -> Int -> WGPUFlags)
-> (WGPUFlags -> Int)
-> Bits WGPUFlags
Int -> WGPUFlags
WGPUFlags -> Bool
WGPUFlags -> Int
WGPUFlags -> Maybe Int
WGPUFlags -> WGPUFlags
WGPUFlags -> Int -> Bool
WGPUFlags -> Int -> WGPUFlags
WGPUFlags -> WGPUFlags -> WGPUFlags
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
$c.&. :: WGPUFlags -> WGPUFlags -> WGPUFlags
.&. :: WGPUFlags -> WGPUFlags -> WGPUFlags
$c.|. :: WGPUFlags -> WGPUFlags -> WGPUFlags
.|. :: WGPUFlags -> WGPUFlags -> WGPUFlags
$cxor :: WGPUFlags -> WGPUFlags -> WGPUFlags
xor :: WGPUFlags -> WGPUFlags -> WGPUFlags
$ccomplement :: WGPUFlags -> WGPUFlags
complement :: WGPUFlags -> WGPUFlags
$cshift :: WGPUFlags -> Int -> WGPUFlags
shift :: WGPUFlags -> Int -> WGPUFlags
$crotate :: WGPUFlags -> Int -> WGPUFlags
rotate :: WGPUFlags -> Int -> WGPUFlags
$czeroBits :: WGPUFlags
zeroBits :: WGPUFlags
$cbit :: Int -> WGPUFlags
bit :: Int -> WGPUFlags
$csetBit :: WGPUFlags -> Int -> WGPUFlags
setBit :: WGPUFlags -> Int -> WGPUFlags
$cclearBit :: WGPUFlags -> Int -> WGPUFlags
clearBit :: WGPUFlags -> Int -> WGPUFlags
$ccomplementBit :: WGPUFlags -> Int -> WGPUFlags
complementBit :: WGPUFlags -> Int -> WGPUFlags
$ctestBit :: WGPUFlags -> Int -> Bool
testBit :: WGPUFlags -> Int -> Bool
$cbitSizeMaybe :: WGPUFlags -> Maybe Int
bitSizeMaybe :: WGPUFlags -> Maybe Int
$cbitSize :: WGPUFlags -> Int
bitSize :: WGPUFlags -> Int
$cisSigned :: WGPUFlags -> Bool
isSigned :: WGPUFlags -> Bool
$cshiftL :: WGPUFlags -> Int -> WGPUFlags
shiftL :: WGPUFlags -> Int -> WGPUFlags
$cunsafeShiftL :: WGPUFlags -> Int -> WGPUFlags
unsafeShiftL :: WGPUFlags -> Int -> WGPUFlags
$cshiftR :: WGPUFlags -> Int -> WGPUFlags
shiftR :: WGPUFlags -> Int -> WGPUFlags
$cunsafeShiftR :: WGPUFlags -> Int -> WGPUFlags
unsafeShiftR :: WGPUFlags -> Int -> WGPUFlags
$crotateL :: WGPUFlags -> Int -> WGPUFlags
rotateL :: WGPUFlags -> Int -> WGPUFlags
$crotateR :: WGPUFlags -> Int -> WGPUFlags
rotateR :: WGPUFlags -> Int -> WGPUFlags
$cpopCount :: WGPUFlags -> Int
popCount :: WGPUFlags -> Int
Bits)
newtype WGPUShaderStage = WGPUShaderStage WGPUFlags deriving newtype (Int -> WGPUShaderStage -> ShowS
[WGPUShaderStage] -> ShowS
WGPUShaderStage -> String
(Int -> WGPUShaderStage -> ShowS)
-> (WGPUShaderStage -> String)
-> ([WGPUShaderStage] -> ShowS)
-> Show WGPUShaderStage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUShaderStage -> ShowS
showsPrec :: Int -> WGPUShaderStage -> ShowS
$cshow :: WGPUShaderStage -> String
show :: WGPUShaderStage -> String
$cshowList :: [WGPUShaderStage] -> ShowS
showList :: [WGPUShaderStage] -> ShowS
Show, WGPUShaderStage -> WGPUShaderStage -> Bool
(WGPUShaderStage -> WGPUShaderStage -> Bool)
-> (WGPUShaderStage -> WGPUShaderStage -> Bool)
-> Eq WGPUShaderStage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUShaderStage -> WGPUShaderStage -> Bool
== :: WGPUShaderStage -> WGPUShaderStage -> Bool
$c/= :: WGPUShaderStage -> WGPUShaderStage -> Bool
/= :: WGPUShaderStage -> WGPUShaderStage -> Bool
Eq, Ptr WGPUShaderStage -> IO WGPUShaderStage
Ptr WGPUShaderStage -> Int -> IO WGPUShaderStage
Ptr WGPUShaderStage -> Int -> WGPUShaderStage -> IO ()
Ptr WGPUShaderStage -> WGPUShaderStage -> IO ()
WGPUShaderStage -> Int
(WGPUShaderStage -> Int)
-> (WGPUShaderStage -> Int)
-> (Ptr WGPUShaderStage -> Int -> IO WGPUShaderStage)
-> (Ptr WGPUShaderStage -> Int -> WGPUShaderStage -> IO ())
-> (forall b. Ptr b -> Int -> IO WGPUShaderStage)
-> (forall b. Ptr b -> Int -> WGPUShaderStage -> IO ())
-> (Ptr WGPUShaderStage -> IO WGPUShaderStage)
-> (Ptr WGPUShaderStage -> WGPUShaderStage -> IO ())
-> Storable WGPUShaderStage
forall b. Ptr b -> Int -> IO WGPUShaderStage
forall b. Ptr b -> Int -> WGPUShaderStage -> 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
$csizeOf :: WGPUShaderStage -> Int
sizeOf :: WGPUShaderStage -> Int
$calignment :: WGPUShaderStage -> Int
alignment :: WGPUShaderStage -> Int
$cpeekElemOff :: Ptr WGPUShaderStage -> Int -> IO WGPUShaderStage
peekElemOff :: Ptr WGPUShaderStage -> Int -> IO WGPUShaderStage
$cpokeElemOff :: Ptr WGPUShaderStage -> Int -> WGPUShaderStage -> IO ()
pokeElemOff :: Ptr WGPUShaderStage -> Int -> WGPUShaderStage -> IO ()
$cpeekByteOff :: forall b. Ptr b -> Int -> IO WGPUShaderStage
peekByteOff :: forall b. Ptr b -> Int -> IO WGPUShaderStage
$cpokeByteOff :: forall b. Ptr b -> Int -> WGPUShaderStage -> IO ()
pokeByteOff :: forall b. Ptr b -> Int -> WGPUShaderStage -> IO ()
$cpeek :: Ptr WGPUShaderStage -> IO WGPUShaderStage
peek :: Ptr WGPUShaderStage -> IO WGPUShaderStage
$cpoke :: Ptr WGPUShaderStage -> WGPUShaderStage -> IO ()
poke :: Ptr WGPUShaderStage -> WGPUShaderStage -> IO ()
Storable, Integer -> WGPUShaderStage
WGPUShaderStage -> WGPUShaderStage
WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
(WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage)
-> (WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage)
-> (WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage)
-> (WGPUShaderStage -> WGPUShaderStage)
-> (WGPUShaderStage -> WGPUShaderStage)
-> (WGPUShaderStage -> WGPUShaderStage)
-> (Integer -> WGPUShaderStage)
-> Num WGPUShaderStage
forall a.
(a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (Integer -> a)
-> Num a
$c+ :: WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
+ :: WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
$c- :: WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
- :: WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
$c* :: WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
* :: WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
$cnegate :: WGPUShaderStage -> WGPUShaderStage
negate :: WGPUShaderStage -> WGPUShaderStage
$cabs :: WGPUShaderStage -> WGPUShaderStage
abs :: WGPUShaderStage -> WGPUShaderStage
$csignum :: WGPUShaderStage -> WGPUShaderStage
signum :: WGPUShaderStage -> WGPUShaderStage
$cfromInteger :: Integer -> WGPUShaderStage
fromInteger :: Integer -> WGPUShaderStage
Num, Eq WGPUShaderStage
WGPUShaderStage
Eq WGPUShaderStage =>
(WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage)
-> (WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage)
-> (WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage)
-> (WGPUShaderStage -> WGPUShaderStage)
-> (WGPUShaderStage -> Int -> WGPUShaderStage)
-> (WGPUShaderStage -> Int -> WGPUShaderStage)
-> WGPUShaderStage
-> (Int -> WGPUShaderStage)
-> (WGPUShaderStage -> Int -> WGPUShaderStage)
-> (WGPUShaderStage -> Int -> WGPUShaderStage)
-> (WGPUShaderStage -> Int -> WGPUShaderStage)
-> (WGPUShaderStage -> Int -> Bool)
-> (WGPUShaderStage -> Maybe Int)
-> (WGPUShaderStage -> Int)
-> (WGPUShaderStage -> Bool)
-> (WGPUShaderStage -> Int -> WGPUShaderStage)
-> (WGPUShaderStage -> Int -> WGPUShaderStage)
-> (WGPUShaderStage -> Int -> WGPUShaderStage)
-> (WGPUShaderStage -> Int -> WGPUShaderStage)
-> (WGPUShaderStage -> Int -> WGPUShaderStage)
-> (WGPUShaderStage -> Int -> WGPUShaderStage)
-> (WGPUShaderStage -> Int)
-> Bits WGPUShaderStage
Int -> WGPUShaderStage
WGPUShaderStage -> Bool
WGPUShaderStage -> Int
WGPUShaderStage -> Maybe Int
WGPUShaderStage -> WGPUShaderStage
WGPUShaderStage -> Int -> Bool
WGPUShaderStage -> Int -> WGPUShaderStage
WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
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
$c.&. :: WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
.&. :: WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
$c.|. :: WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
.|. :: WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
$cxor :: WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
xor :: WGPUShaderStage -> WGPUShaderStage -> WGPUShaderStage
$ccomplement :: WGPUShaderStage -> WGPUShaderStage
complement :: WGPUShaderStage -> WGPUShaderStage
$cshift :: WGPUShaderStage -> Int -> WGPUShaderStage
shift :: WGPUShaderStage -> Int -> WGPUShaderStage
$crotate :: WGPUShaderStage -> Int -> WGPUShaderStage
rotate :: WGPUShaderStage -> Int -> WGPUShaderStage
$czeroBits :: WGPUShaderStage
zeroBits :: WGPUShaderStage
$cbit :: Int -> WGPUShaderStage
bit :: Int -> WGPUShaderStage
$csetBit :: WGPUShaderStage -> Int -> WGPUShaderStage
setBit :: WGPUShaderStage -> Int -> WGPUShaderStage
$cclearBit :: WGPUShaderStage -> Int -> WGPUShaderStage
clearBit :: WGPUShaderStage -> Int -> WGPUShaderStage
$ccomplementBit :: WGPUShaderStage -> Int -> WGPUShaderStage
complementBit :: WGPUShaderStage -> Int -> WGPUShaderStage
$ctestBit :: WGPUShaderStage -> Int -> Bool
testBit :: WGPUShaderStage -> Int -> Bool
$cbitSizeMaybe :: WGPUShaderStage -> Maybe Int
bitSizeMaybe :: WGPUShaderStage -> Maybe Int
$cbitSize :: WGPUShaderStage -> Int
bitSize :: WGPUShaderStage -> Int
$cisSigned :: WGPUShaderStage -> Bool
isSigned :: WGPUShaderStage -> Bool
$cshiftL :: WGPUShaderStage -> Int -> WGPUShaderStage
shiftL :: WGPUShaderStage -> Int -> WGPUShaderStage
$cunsafeShiftL :: WGPUShaderStage -> Int -> WGPUShaderStage
unsafeShiftL :: WGPUShaderStage -> Int -> WGPUShaderStage
$cshiftR :: WGPUShaderStage -> Int -> WGPUShaderStage
shiftR :: WGPUShaderStage -> Int -> WGPUShaderStage
$cunsafeShiftR :: WGPUShaderStage -> Int -> WGPUShaderStage
unsafeShiftR :: WGPUShaderStage -> Int -> WGPUShaderStage
$crotateL :: WGPUShaderStage -> Int -> WGPUShaderStage
rotateL :: WGPUShaderStage -> Int -> WGPUShaderStage
$crotateR :: WGPUShaderStage -> Int -> WGPUShaderStage
rotateR :: WGPUShaderStage -> Int -> WGPUShaderStage
$cpopCount :: WGPUShaderStage -> Int
popCount :: WGPUShaderStage -> Int
Bits)
wGPUShaderStage_None :: WGPUShaderStage
wGPUShaderStage_None :: WGPUShaderStage
wGPUShaderStage_None = WGPUFlags -> WGPUShaderStage
WGPUShaderStage WGPUFlags
0
{-# LINE 263 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUShaderStage_Vertex :: WGPUShaderStage
wGPUShaderStage_Vertex :: WGPUShaderStage
wGPUShaderStage_Vertex = WGPUFlags -> WGPUShaderStage
WGPUShaderStage WGPUFlags
1
{-# LINE 266 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUShaderStage_Fragment :: WGPUShaderStage
wGPUShaderStage_Fragment :: WGPUShaderStage
wGPUShaderStage_Fragment = WGPUFlags -> WGPUShaderStage
WGPUShaderStage WGPUFlags
2
{-# LINE 269 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUShaderStage_Compute :: WGPUShaderStage
wGPUShaderStage_Compute :: WGPUShaderStage
wGPUShaderStage_Compute = WGPUFlags -> WGPUShaderStage
WGPUShaderStage WGPUFlags
4
{-# LINE 272 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUBufferUsage = WGPUBufferUsage WGPUFlags deriving newtype (Int -> WGPUBufferUsage -> ShowS
[WGPUBufferUsage] -> ShowS
WGPUBufferUsage -> String
(Int -> WGPUBufferUsage -> ShowS)
-> (WGPUBufferUsage -> String)
-> ([WGPUBufferUsage] -> ShowS)
-> Show WGPUBufferUsage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUBufferUsage -> ShowS
showsPrec :: Int -> WGPUBufferUsage -> ShowS
$cshow :: WGPUBufferUsage -> String
show :: WGPUBufferUsage -> String
$cshowList :: [WGPUBufferUsage] -> ShowS
showList :: [WGPUBufferUsage] -> ShowS
Show, WGPUBufferUsage -> WGPUBufferUsage -> Bool
(WGPUBufferUsage -> WGPUBufferUsage -> Bool)
-> (WGPUBufferUsage -> WGPUBufferUsage -> Bool)
-> Eq WGPUBufferUsage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUBufferUsage -> WGPUBufferUsage -> Bool
== :: WGPUBufferUsage -> WGPUBufferUsage -> Bool
$c/= :: WGPUBufferUsage -> WGPUBufferUsage -> Bool
/= :: WGPUBufferUsage -> WGPUBufferUsage -> Bool
Eq, Ptr WGPUBufferUsage -> IO WGPUBufferUsage
Ptr WGPUBufferUsage -> Int -> IO WGPUBufferUsage
Ptr WGPUBufferUsage -> Int -> WGPUBufferUsage -> IO ()
Ptr WGPUBufferUsage -> WGPUBufferUsage -> IO ()
WGPUBufferUsage -> Int
(WGPUBufferUsage -> Int)
-> (WGPUBufferUsage -> Int)
-> (Ptr WGPUBufferUsage -> Int -> IO WGPUBufferUsage)
-> (Ptr WGPUBufferUsage -> Int -> WGPUBufferUsage -> IO ())
-> (forall b. Ptr b -> Int -> IO WGPUBufferUsage)
-> (forall b. Ptr b -> Int -> WGPUBufferUsage -> IO ())
-> (Ptr WGPUBufferUsage -> IO WGPUBufferUsage)
-> (Ptr WGPUBufferUsage -> WGPUBufferUsage -> IO ())
-> Storable WGPUBufferUsage
forall b. Ptr b -> Int -> IO WGPUBufferUsage
forall b. Ptr b -> Int -> WGPUBufferUsage -> 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
$csizeOf :: WGPUBufferUsage -> Int
sizeOf :: WGPUBufferUsage -> Int
$calignment :: WGPUBufferUsage -> Int
alignment :: WGPUBufferUsage -> Int
$cpeekElemOff :: Ptr WGPUBufferUsage -> Int -> IO WGPUBufferUsage
peekElemOff :: Ptr WGPUBufferUsage -> Int -> IO WGPUBufferUsage
$cpokeElemOff :: Ptr WGPUBufferUsage -> Int -> WGPUBufferUsage -> IO ()
pokeElemOff :: Ptr WGPUBufferUsage -> Int -> WGPUBufferUsage -> IO ()
$cpeekByteOff :: forall b. Ptr b -> Int -> IO WGPUBufferUsage
peekByteOff :: forall b. Ptr b -> Int -> IO WGPUBufferUsage
$cpokeByteOff :: forall b. Ptr b -> Int -> WGPUBufferUsage -> IO ()
pokeByteOff :: forall b. Ptr b -> Int -> WGPUBufferUsage -> IO ()
$cpeek :: Ptr WGPUBufferUsage -> IO WGPUBufferUsage
peek :: Ptr WGPUBufferUsage -> IO WGPUBufferUsage
$cpoke :: Ptr WGPUBufferUsage -> WGPUBufferUsage -> IO ()
poke :: Ptr WGPUBufferUsage -> WGPUBufferUsage -> IO ()
Storable, Integer -> WGPUBufferUsage
WGPUBufferUsage -> WGPUBufferUsage
WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
(WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage)
-> (WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage)
-> (WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage)
-> (WGPUBufferUsage -> WGPUBufferUsage)
-> (WGPUBufferUsage -> WGPUBufferUsage)
-> (WGPUBufferUsage -> WGPUBufferUsage)
-> (Integer -> WGPUBufferUsage)
-> Num WGPUBufferUsage
forall a.
(a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (Integer -> a)
-> Num a
$c+ :: WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
+ :: WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
$c- :: WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
- :: WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
$c* :: WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
* :: WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
$cnegate :: WGPUBufferUsage -> WGPUBufferUsage
negate :: WGPUBufferUsage -> WGPUBufferUsage
$cabs :: WGPUBufferUsage -> WGPUBufferUsage
abs :: WGPUBufferUsage -> WGPUBufferUsage
$csignum :: WGPUBufferUsage -> WGPUBufferUsage
signum :: WGPUBufferUsage -> WGPUBufferUsage
$cfromInteger :: Integer -> WGPUBufferUsage
fromInteger :: Integer -> WGPUBufferUsage
Num, Eq WGPUBufferUsage
WGPUBufferUsage
Eq WGPUBufferUsage =>
(WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage)
-> (WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage)
-> (WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage)
-> (WGPUBufferUsage -> WGPUBufferUsage)
-> (WGPUBufferUsage -> Int -> WGPUBufferUsage)
-> (WGPUBufferUsage -> Int -> WGPUBufferUsage)
-> WGPUBufferUsage
-> (Int -> WGPUBufferUsage)
-> (WGPUBufferUsage -> Int -> WGPUBufferUsage)
-> (WGPUBufferUsage -> Int -> WGPUBufferUsage)
-> (WGPUBufferUsage -> Int -> WGPUBufferUsage)
-> (WGPUBufferUsage -> Int -> Bool)
-> (WGPUBufferUsage -> Maybe Int)
-> (WGPUBufferUsage -> Int)
-> (WGPUBufferUsage -> Bool)
-> (WGPUBufferUsage -> Int -> WGPUBufferUsage)
-> (WGPUBufferUsage -> Int -> WGPUBufferUsage)
-> (WGPUBufferUsage -> Int -> WGPUBufferUsage)
-> (WGPUBufferUsage -> Int -> WGPUBufferUsage)
-> (WGPUBufferUsage -> Int -> WGPUBufferUsage)
-> (WGPUBufferUsage -> Int -> WGPUBufferUsage)
-> (WGPUBufferUsage -> Int)
-> Bits WGPUBufferUsage
Int -> WGPUBufferUsage
WGPUBufferUsage -> Bool
WGPUBufferUsage -> Int
WGPUBufferUsage -> Maybe Int
WGPUBufferUsage -> WGPUBufferUsage
WGPUBufferUsage -> Int -> Bool
WGPUBufferUsage -> Int -> WGPUBufferUsage
WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
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
$c.&. :: WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
.&. :: WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
$c.|. :: WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
.|. :: WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
$cxor :: WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
xor :: WGPUBufferUsage -> WGPUBufferUsage -> WGPUBufferUsage
$ccomplement :: WGPUBufferUsage -> WGPUBufferUsage
complement :: WGPUBufferUsage -> WGPUBufferUsage
$cshift :: WGPUBufferUsage -> Int -> WGPUBufferUsage
shift :: WGPUBufferUsage -> Int -> WGPUBufferUsage
$crotate :: WGPUBufferUsage -> Int -> WGPUBufferUsage
rotate :: WGPUBufferUsage -> Int -> WGPUBufferUsage
$czeroBits :: WGPUBufferUsage
zeroBits :: WGPUBufferUsage
$cbit :: Int -> WGPUBufferUsage
bit :: Int -> WGPUBufferUsage
$csetBit :: WGPUBufferUsage -> Int -> WGPUBufferUsage
setBit :: WGPUBufferUsage -> Int -> WGPUBufferUsage
$cclearBit :: WGPUBufferUsage -> Int -> WGPUBufferUsage
clearBit :: WGPUBufferUsage -> Int -> WGPUBufferUsage
$ccomplementBit :: WGPUBufferUsage -> Int -> WGPUBufferUsage
complementBit :: WGPUBufferUsage -> Int -> WGPUBufferUsage
$ctestBit :: WGPUBufferUsage -> Int -> Bool
testBit :: WGPUBufferUsage -> Int -> Bool
$cbitSizeMaybe :: WGPUBufferUsage -> Maybe Int
bitSizeMaybe :: WGPUBufferUsage -> Maybe Int
$cbitSize :: WGPUBufferUsage -> Int
bitSize :: WGPUBufferUsage -> Int
$cisSigned :: WGPUBufferUsage -> Bool
isSigned :: WGPUBufferUsage -> Bool
$cshiftL :: WGPUBufferUsage -> Int -> WGPUBufferUsage
shiftL :: WGPUBufferUsage -> Int -> WGPUBufferUsage
$cunsafeShiftL :: WGPUBufferUsage -> Int -> WGPUBufferUsage
unsafeShiftL :: WGPUBufferUsage -> Int -> WGPUBufferUsage
$cshiftR :: WGPUBufferUsage -> Int -> WGPUBufferUsage
shiftR :: WGPUBufferUsage -> Int -> WGPUBufferUsage
$cunsafeShiftR :: WGPUBufferUsage -> Int -> WGPUBufferUsage
unsafeShiftR :: WGPUBufferUsage -> Int -> WGPUBufferUsage
$crotateL :: WGPUBufferUsage -> Int -> WGPUBufferUsage
rotateL :: WGPUBufferUsage -> Int -> WGPUBufferUsage
$crotateR :: WGPUBufferUsage -> Int -> WGPUBufferUsage
rotateR :: WGPUBufferUsage -> Int -> WGPUBufferUsage
$cpopCount :: WGPUBufferUsage -> Int
popCount :: WGPUBufferUsage -> Int
Bits)
wGPUBufferUsage_None :: WGPUBufferUsage
wGPUBufferUsage_None :: WGPUBufferUsage
wGPUBufferUsage_None = WGPUFlags -> WGPUBufferUsage
WGPUBufferUsage WGPUFlags
0
{-# LINE 277 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferUsage_MapRead :: WGPUBufferUsage
wGPUBufferUsage_MapRead :: WGPUBufferUsage
wGPUBufferUsage_MapRead = WGPUFlags -> WGPUBufferUsage
WGPUBufferUsage WGPUFlags
1
{-# LINE 280 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferUsage_MapWrite :: WGPUBufferUsage
wGPUBufferUsage_MapWrite :: WGPUBufferUsage
wGPUBufferUsage_MapWrite = WGPUFlags -> WGPUBufferUsage
WGPUBufferUsage WGPUFlags
2
{-# LINE 283 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferUsage_CopySrc :: WGPUBufferUsage
wGPUBufferUsage_CopySrc :: WGPUBufferUsage
wGPUBufferUsage_CopySrc = WGPUFlags -> WGPUBufferUsage
WGPUBufferUsage WGPUFlags
4
{-# LINE 286 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferUsage_CopyDst :: WGPUBufferUsage
wGPUBufferUsage_CopyDst :: WGPUBufferUsage
wGPUBufferUsage_CopyDst = WGPUFlags -> WGPUBufferUsage
WGPUBufferUsage WGPUFlags
8
{-# LINE 289 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferUsage_Index :: WGPUBufferUsage
wGPUBufferUsage_Index :: WGPUBufferUsage
wGPUBufferUsage_Index = WGPUFlags -> WGPUBufferUsage
WGPUBufferUsage WGPUFlags
16
{-# LINE 292 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferUsage_Vertex :: WGPUBufferUsage
wGPUBufferUsage_Vertex :: WGPUBufferUsage
wGPUBufferUsage_Vertex = WGPUFlags -> WGPUBufferUsage
WGPUBufferUsage WGPUFlags
32
{-# LINE 295 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferUsage_Uniform :: WGPUBufferUsage
wGPUBufferUsage_Uniform :: WGPUBufferUsage
wGPUBufferUsage_Uniform = WGPUFlags -> WGPUBufferUsage
WGPUBufferUsage WGPUFlags
64
{-# LINE 298 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferUsage_Storage :: WGPUBufferUsage
wGPUBufferUsage_Storage :: WGPUBufferUsage
wGPUBufferUsage_Storage = WGPUFlags -> WGPUBufferUsage
WGPUBufferUsage WGPUFlags
128
{-# LINE 301 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferUsage_Indirect :: WGPUBufferUsage
wGPUBufferUsage_Indirect :: WGPUBufferUsage
wGPUBufferUsage_Indirect = WGPUFlags -> WGPUBufferUsage
WGPUBufferUsage WGPUFlags
256
{-# LINE 304 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferUsage_QueryResolve :: WGPUBufferUsage
wGPUBufferUsage_QueryResolve :: WGPUBufferUsage
wGPUBufferUsage_QueryResolve = WGPUFlags -> WGPUBufferUsage
WGPUBufferUsage WGPUFlags
512
{-# LINE 307 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUBufferBindingType = WGPUBufferBindingType CUInt deriving (WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
(WGPUBufferBindingType -> WGPUBufferBindingType -> Bool)
-> (WGPUBufferBindingType -> WGPUBufferBindingType -> Bool)
-> Eq WGPUBufferBindingType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
== :: WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
$c/= :: WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
/= :: WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
Eq, Eq WGPUBufferBindingType
Eq WGPUBufferBindingType =>
(WGPUBufferBindingType -> WGPUBufferBindingType -> Ordering)
-> (WGPUBufferBindingType -> WGPUBufferBindingType -> Bool)
-> (WGPUBufferBindingType -> WGPUBufferBindingType -> Bool)
-> (WGPUBufferBindingType -> WGPUBufferBindingType -> Bool)
-> (WGPUBufferBindingType -> WGPUBufferBindingType -> Bool)
-> (WGPUBufferBindingType
-> WGPUBufferBindingType -> WGPUBufferBindingType)
-> (WGPUBufferBindingType
-> WGPUBufferBindingType -> WGPUBufferBindingType)
-> Ord WGPUBufferBindingType
WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
WGPUBufferBindingType -> WGPUBufferBindingType -> Ordering
WGPUBufferBindingType
-> WGPUBufferBindingType -> WGPUBufferBindingType
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
$ccompare :: WGPUBufferBindingType -> WGPUBufferBindingType -> Ordering
compare :: WGPUBufferBindingType -> WGPUBufferBindingType -> Ordering
$c< :: WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
< :: WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
$c<= :: WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
<= :: WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
$c> :: WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
> :: WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
$c>= :: WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
>= :: WGPUBufferBindingType -> WGPUBufferBindingType -> Bool
$cmax :: WGPUBufferBindingType
-> WGPUBufferBindingType -> WGPUBufferBindingType
max :: WGPUBufferBindingType
-> WGPUBufferBindingType -> WGPUBufferBindingType
$cmin :: WGPUBufferBindingType
-> WGPUBufferBindingType -> WGPUBufferBindingType
min :: WGPUBufferBindingType
-> WGPUBufferBindingType -> WGPUBufferBindingType
Ord, Int -> WGPUBufferBindingType -> ShowS
[WGPUBufferBindingType] -> ShowS
WGPUBufferBindingType -> String
(Int -> WGPUBufferBindingType -> ShowS)
-> (WGPUBufferBindingType -> String)
-> ([WGPUBufferBindingType] -> ShowS)
-> Show WGPUBufferBindingType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUBufferBindingType -> ShowS
showsPrec :: Int -> WGPUBufferBindingType -> ShowS
$cshow :: WGPUBufferBindingType -> String
show :: WGPUBufferBindingType -> String
$cshowList :: [WGPUBufferBindingType] -> ShowS
showList :: [WGPUBufferBindingType] -> ShowS
Show)
instance Storable WGPUBufferBindingType where
alignment :: WGPUBufferBindingType -> Int
alignment WGPUBufferBindingType
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUBufferBindingType -> Int
sizeOf WGPUBufferBindingType
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUBufferBindingType -> IO WGPUBufferBindingType
peek Ptr WGPUBufferBindingType
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUBufferBindingType -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUBufferBindingType
ptr)
pure $ WGPUBufferBindingType x
poke :: Ptr WGPUBufferBindingType -> WGPUBufferBindingType -> IO ()
poke Ptr WGPUBufferBindingType
ptr (WGPUBufferBindingType CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUBufferBindingType -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUBufferBindingType
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUBufferBindingType_BindingNotUsed :: WGPUBufferBindingType
wGPUBufferBindingType_BindingNotUsed :: WGPUBufferBindingType
wGPUBufferBindingType_BindingNotUsed = CUInt -> WGPUBufferBindingType
WGPUBufferBindingType CUInt
0
{-# LINE 323 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferBindingType_Undefined :: WGPUBufferBindingType
wGPUBufferBindingType_Undefined :: WGPUBufferBindingType
wGPUBufferBindingType_Undefined = CUInt -> WGPUBufferBindingType
WGPUBufferBindingType CUInt
1
{-# LINE 326 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferBindingType_Uniform :: WGPUBufferBindingType
wGPUBufferBindingType_Uniform :: WGPUBufferBindingType
wGPUBufferBindingType_Uniform = CUInt -> WGPUBufferBindingType
WGPUBufferBindingType CUInt
2
{-# LINE 329 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferBindingType_Storage :: WGPUBufferBindingType
wGPUBufferBindingType_Storage :: WGPUBufferBindingType
wGPUBufferBindingType_Storage = CUInt -> WGPUBufferBindingType
WGPUBufferBindingType CUInt
3
{-# LINE 332 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferBindingType_ReadOnlyStorage :: WGPUBufferBindingType
wGPUBufferBindingType_ReadOnlyStorage :: WGPUBufferBindingType
wGPUBufferBindingType_ReadOnlyStorage = CUInt -> WGPUBufferBindingType
WGPUBufferBindingType CUInt
4
{-# LINE 335 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferBindingType_Force32 :: WGPUBufferBindingType
wGPUBufferBindingType_Force32 :: WGPUBufferBindingType
wGPUBufferBindingType_Force32 = CUInt -> WGPUBufferBindingType
WGPUBufferBindingType CUInt
2147483647
{-# LINE 338 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUBlendFactor = WGPUBlendFactor CUInt deriving (WGPUBlendFactor -> WGPUBlendFactor -> Bool
(WGPUBlendFactor -> WGPUBlendFactor -> Bool)
-> (WGPUBlendFactor -> WGPUBlendFactor -> Bool)
-> Eq WGPUBlendFactor
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUBlendFactor -> WGPUBlendFactor -> Bool
== :: WGPUBlendFactor -> WGPUBlendFactor -> Bool
$c/= :: WGPUBlendFactor -> WGPUBlendFactor -> Bool
/= :: WGPUBlendFactor -> WGPUBlendFactor -> Bool
Eq, Eq WGPUBlendFactor
Eq WGPUBlendFactor =>
(WGPUBlendFactor -> WGPUBlendFactor -> Ordering)
-> (WGPUBlendFactor -> WGPUBlendFactor -> Bool)
-> (WGPUBlendFactor -> WGPUBlendFactor -> Bool)
-> (WGPUBlendFactor -> WGPUBlendFactor -> Bool)
-> (WGPUBlendFactor -> WGPUBlendFactor -> Bool)
-> (WGPUBlendFactor -> WGPUBlendFactor -> WGPUBlendFactor)
-> (WGPUBlendFactor -> WGPUBlendFactor -> WGPUBlendFactor)
-> Ord WGPUBlendFactor
WGPUBlendFactor -> WGPUBlendFactor -> Bool
WGPUBlendFactor -> WGPUBlendFactor -> Ordering
WGPUBlendFactor -> WGPUBlendFactor -> WGPUBlendFactor
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
$ccompare :: WGPUBlendFactor -> WGPUBlendFactor -> Ordering
compare :: WGPUBlendFactor -> WGPUBlendFactor -> Ordering
$c< :: WGPUBlendFactor -> WGPUBlendFactor -> Bool
< :: WGPUBlendFactor -> WGPUBlendFactor -> Bool
$c<= :: WGPUBlendFactor -> WGPUBlendFactor -> Bool
<= :: WGPUBlendFactor -> WGPUBlendFactor -> Bool
$c> :: WGPUBlendFactor -> WGPUBlendFactor -> Bool
> :: WGPUBlendFactor -> WGPUBlendFactor -> Bool
$c>= :: WGPUBlendFactor -> WGPUBlendFactor -> Bool
>= :: WGPUBlendFactor -> WGPUBlendFactor -> Bool
$cmax :: WGPUBlendFactor -> WGPUBlendFactor -> WGPUBlendFactor
max :: WGPUBlendFactor -> WGPUBlendFactor -> WGPUBlendFactor
$cmin :: WGPUBlendFactor -> WGPUBlendFactor -> WGPUBlendFactor
min :: WGPUBlendFactor -> WGPUBlendFactor -> WGPUBlendFactor
Ord, Int -> WGPUBlendFactor -> ShowS
[WGPUBlendFactor] -> ShowS
WGPUBlendFactor -> String
(Int -> WGPUBlendFactor -> ShowS)
-> (WGPUBlendFactor -> String)
-> ([WGPUBlendFactor] -> ShowS)
-> Show WGPUBlendFactor
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUBlendFactor -> ShowS
showsPrec :: Int -> WGPUBlendFactor -> ShowS
$cshow :: WGPUBlendFactor -> String
show :: WGPUBlendFactor -> String
$cshowList :: [WGPUBlendFactor] -> ShowS
showList :: [WGPUBlendFactor] -> ShowS
Show)
instance Storable WGPUBlendFactor where
alignment :: WGPUBlendFactor -> Int
alignment WGPUBlendFactor
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUBlendFactor -> Int
sizeOf WGPUBlendFactor
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUBlendFactor -> IO WGPUBlendFactor
peek Ptr WGPUBlendFactor
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUBlendFactor -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUBlendFactor
ptr)
pure $ WGPUBlendFactor x
poke :: Ptr WGPUBlendFactor -> WGPUBlendFactor -> IO ()
poke Ptr WGPUBlendFactor
ptr (WGPUBlendFactor CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUBlendFactor -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUBlendFactor
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUBlendFactor_Undefined :: WGPUBlendFactor
wGPUBlendFactor_Undefined :: WGPUBlendFactor
wGPUBlendFactor_Undefined = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
0
{-# LINE 353 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_Zero :: WGPUBlendFactor
wGPUBlendFactor_Zero :: WGPUBlendFactor
wGPUBlendFactor_Zero = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
1
{-# LINE 356 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_One :: WGPUBlendFactor
wGPUBlendFactor_One :: WGPUBlendFactor
wGPUBlendFactor_One = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
2
{-# LINE 359 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_Src :: WGPUBlendFactor
wGPUBlendFactor_Src :: WGPUBlendFactor
wGPUBlendFactor_Src = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
3
{-# LINE 362 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_OneMinusSrc :: WGPUBlendFactor
wGPUBlendFactor_OneMinusSrc :: WGPUBlendFactor
wGPUBlendFactor_OneMinusSrc = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
4
{-# LINE 365 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_SrcAlpha :: WGPUBlendFactor
wGPUBlendFactor_SrcAlpha :: WGPUBlendFactor
wGPUBlendFactor_SrcAlpha = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
5
{-# LINE 368 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_OneMinusSrcAlpha :: WGPUBlendFactor
wGPUBlendFactor_OneMinusSrcAlpha :: WGPUBlendFactor
wGPUBlendFactor_OneMinusSrcAlpha = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
6
{-# LINE 371 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_Dst :: WGPUBlendFactor
wGPUBlendFactor_Dst :: WGPUBlendFactor
wGPUBlendFactor_Dst = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
7
{-# LINE 374 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_OneMinusDst :: WGPUBlendFactor
wGPUBlendFactor_OneMinusDst :: WGPUBlendFactor
wGPUBlendFactor_OneMinusDst = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
8
{-# LINE 377 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_DstAlpha :: WGPUBlendFactor
wGPUBlendFactor_DstAlpha :: WGPUBlendFactor
wGPUBlendFactor_DstAlpha = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
9
{-# LINE 380 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_OneMinusDstAlpha :: WGPUBlendFactor
wGPUBlendFactor_OneMinusDstAlpha :: WGPUBlendFactor
wGPUBlendFactor_OneMinusDstAlpha = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
10
{-# LINE 383 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_SrcAlphaSaturated :: WGPUBlendFactor
wGPUBlendFactor_SrcAlphaSaturated :: WGPUBlendFactor
wGPUBlendFactor_SrcAlphaSaturated = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
11
{-# LINE 386 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_Constant :: WGPUBlendFactor
wGPUBlendFactor_Constant :: WGPUBlendFactor
wGPUBlendFactor_Constant = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
12
{-# LINE 389 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_OneMinusConstant :: WGPUBlendFactor
wGPUBlendFactor_OneMinusConstant :: WGPUBlendFactor
wGPUBlendFactor_OneMinusConstant = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
13
{-# LINE 392 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_Src1 :: WGPUBlendFactor
wGPUBlendFactor_Src1 :: WGPUBlendFactor
wGPUBlendFactor_Src1 = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
14
{-# LINE 395 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_OneMinusSrc1 :: WGPUBlendFactor
wGPUBlendFactor_OneMinusSrc1 :: WGPUBlendFactor
wGPUBlendFactor_OneMinusSrc1 = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
15
{-# LINE 398 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_Src1Alpha :: WGPUBlendFactor
wGPUBlendFactor_Src1Alpha :: WGPUBlendFactor
wGPUBlendFactor_Src1Alpha = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
16
{-# LINE 401 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_OneMinusSrc1Alpha :: WGPUBlendFactor
wGPUBlendFactor_OneMinusSrc1Alpha :: WGPUBlendFactor
wGPUBlendFactor_OneMinusSrc1Alpha = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
17
{-# LINE 404 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendFactor_Force32 :: WGPUBlendFactor
wGPUBlendFactor_Force32 :: WGPUBlendFactor
wGPUBlendFactor_Force32 = CUInt -> WGPUBlendFactor
WGPUBlendFactor CUInt
2147483647
{-# LINE 407 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUBlendOperation = WGPUBlendOperation CUInt deriving (WGPUBlendOperation -> WGPUBlendOperation -> Bool
(WGPUBlendOperation -> WGPUBlendOperation -> Bool)
-> (WGPUBlendOperation -> WGPUBlendOperation -> Bool)
-> Eq WGPUBlendOperation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUBlendOperation -> WGPUBlendOperation -> Bool
== :: WGPUBlendOperation -> WGPUBlendOperation -> Bool
$c/= :: WGPUBlendOperation -> WGPUBlendOperation -> Bool
/= :: WGPUBlendOperation -> WGPUBlendOperation -> Bool
Eq, Eq WGPUBlendOperation
Eq WGPUBlendOperation =>
(WGPUBlendOperation -> WGPUBlendOperation -> Ordering)
-> (WGPUBlendOperation -> WGPUBlendOperation -> Bool)
-> (WGPUBlendOperation -> WGPUBlendOperation -> Bool)
-> (WGPUBlendOperation -> WGPUBlendOperation -> Bool)
-> (WGPUBlendOperation -> WGPUBlendOperation -> Bool)
-> (WGPUBlendOperation -> WGPUBlendOperation -> WGPUBlendOperation)
-> (WGPUBlendOperation -> WGPUBlendOperation -> WGPUBlendOperation)
-> Ord WGPUBlendOperation
WGPUBlendOperation -> WGPUBlendOperation -> Bool
WGPUBlendOperation -> WGPUBlendOperation -> Ordering
WGPUBlendOperation -> WGPUBlendOperation -> WGPUBlendOperation
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
$ccompare :: WGPUBlendOperation -> WGPUBlendOperation -> Ordering
compare :: WGPUBlendOperation -> WGPUBlendOperation -> Ordering
$c< :: WGPUBlendOperation -> WGPUBlendOperation -> Bool
< :: WGPUBlendOperation -> WGPUBlendOperation -> Bool
$c<= :: WGPUBlendOperation -> WGPUBlendOperation -> Bool
<= :: WGPUBlendOperation -> WGPUBlendOperation -> Bool
$c> :: WGPUBlendOperation -> WGPUBlendOperation -> Bool
> :: WGPUBlendOperation -> WGPUBlendOperation -> Bool
$c>= :: WGPUBlendOperation -> WGPUBlendOperation -> Bool
>= :: WGPUBlendOperation -> WGPUBlendOperation -> Bool
$cmax :: WGPUBlendOperation -> WGPUBlendOperation -> WGPUBlendOperation
max :: WGPUBlendOperation -> WGPUBlendOperation -> WGPUBlendOperation
$cmin :: WGPUBlendOperation -> WGPUBlendOperation -> WGPUBlendOperation
min :: WGPUBlendOperation -> WGPUBlendOperation -> WGPUBlendOperation
Ord, Int -> WGPUBlendOperation -> ShowS
[WGPUBlendOperation] -> ShowS
WGPUBlendOperation -> String
(Int -> WGPUBlendOperation -> ShowS)
-> (WGPUBlendOperation -> String)
-> ([WGPUBlendOperation] -> ShowS)
-> Show WGPUBlendOperation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUBlendOperation -> ShowS
showsPrec :: Int -> WGPUBlendOperation -> ShowS
$cshow :: WGPUBlendOperation -> String
show :: WGPUBlendOperation -> String
$cshowList :: [WGPUBlendOperation] -> ShowS
showList :: [WGPUBlendOperation] -> ShowS
Show)
instance Storable WGPUBlendOperation where
alignment :: WGPUBlendOperation -> Int
alignment WGPUBlendOperation
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUBlendOperation -> Int
sizeOf WGPUBlendOperation
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUBlendOperation -> IO WGPUBlendOperation
peek Ptr WGPUBlendOperation
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUBlendOperation -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUBlendOperation
ptr)
pure $ WGPUBlendOperation x
poke :: Ptr WGPUBlendOperation -> WGPUBlendOperation -> IO ()
poke Ptr WGPUBlendOperation
ptr (WGPUBlendOperation CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUBlendOperation -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUBlendOperation
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUBlendOperation_Undefined :: WGPUBlendOperation
wGPUBlendOperation_Undefined :: WGPUBlendOperation
wGPUBlendOperation_Undefined = CUInt -> WGPUBlendOperation
WGPUBlendOperation CUInt
0
{-# LINE 423 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendOperation_Add :: WGPUBlendOperation
wGPUBlendOperation_Add :: WGPUBlendOperation
wGPUBlendOperation_Add = CUInt -> WGPUBlendOperation
WGPUBlendOperation CUInt
1
{-# LINE 426 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendOperation_Subtract :: WGPUBlendOperation
wGPUBlendOperation_Subtract :: WGPUBlendOperation
wGPUBlendOperation_Subtract = CUInt -> WGPUBlendOperation
WGPUBlendOperation CUInt
2
{-# LINE 429 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendOperation_ReverseSubtract :: WGPUBlendOperation
wGPUBlendOperation_ReverseSubtract :: WGPUBlendOperation
wGPUBlendOperation_ReverseSubtract = CUInt -> WGPUBlendOperation
WGPUBlendOperation CUInt
3
{-# LINE 432 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendOperation_Min :: WGPUBlendOperation
wGPUBlendOperation_Min :: WGPUBlendOperation
wGPUBlendOperation_Min = CUInt -> WGPUBlendOperation
WGPUBlendOperation CUInt
4
{-# LINE 435 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendOperation_Max :: WGPUBlendOperation
wGPUBlendOperation_Max :: WGPUBlendOperation
wGPUBlendOperation_Max = CUInt -> WGPUBlendOperation
WGPUBlendOperation CUInt
5
{-# LINE 438 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBlendOperation_Force32 :: WGPUBlendOperation
wGPUBlendOperation_Force32 :: WGPUBlendOperation
wGPUBlendOperation_Force32 = CUInt -> WGPUBlendOperation
WGPUBlendOperation CUInt
2147483647
{-# LINE 441 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUBufferMapState = WGPUBufferMapState CUInt deriving (WGPUBufferMapState -> WGPUBufferMapState -> Bool
(WGPUBufferMapState -> WGPUBufferMapState -> Bool)
-> (WGPUBufferMapState -> WGPUBufferMapState -> Bool)
-> Eq WGPUBufferMapState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUBufferMapState -> WGPUBufferMapState -> Bool
== :: WGPUBufferMapState -> WGPUBufferMapState -> Bool
$c/= :: WGPUBufferMapState -> WGPUBufferMapState -> Bool
/= :: WGPUBufferMapState -> WGPUBufferMapState -> Bool
Eq, Eq WGPUBufferMapState
Eq WGPUBufferMapState =>
(WGPUBufferMapState -> WGPUBufferMapState -> Ordering)
-> (WGPUBufferMapState -> WGPUBufferMapState -> Bool)
-> (WGPUBufferMapState -> WGPUBufferMapState -> Bool)
-> (WGPUBufferMapState -> WGPUBufferMapState -> Bool)
-> (WGPUBufferMapState -> WGPUBufferMapState -> Bool)
-> (WGPUBufferMapState -> WGPUBufferMapState -> WGPUBufferMapState)
-> (WGPUBufferMapState -> WGPUBufferMapState -> WGPUBufferMapState)
-> Ord WGPUBufferMapState
WGPUBufferMapState -> WGPUBufferMapState -> Bool
WGPUBufferMapState -> WGPUBufferMapState -> Ordering
WGPUBufferMapState -> WGPUBufferMapState -> WGPUBufferMapState
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
$ccompare :: WGPUBufferMapState -> WGPUBufferMapState -> Ordering
compare :: WGPUBufferMapState -> WGPUBufferMapState -> Ordering
$c< :: WGPUBufferMapState -> WGPUBufferMapState -> Bool
< :: WGPUBufferMapState -> WGPUBufferMapState -> Bool
$c<= :: WGPUBufferMapState -> WGPUBufferMapState -> Bool
<= :: WGPUBufferMapState -> WGPUBufferMapState -> Bool
$c> :: WGPUBufferMapState -> WGPUBufferMapState -> Bool
> :: WGPUBufferMapState -> WGPUBufferMapState -> Bool
$c>= :: WGPUBufferMapState -> WGPUBufferMapState -> Bool
>= :: WGPUBufferMapState -> WGPUBufferMapState -> Bool
$cmax :: WGPUBufferMapState -> WGPUBufferMapState -> WGPUBufferMapState
max :: WGPUBufferMapState -> WGPUBufferMapState -> WGPUBufferMapState
$cmin :: WGPUBufferMapState -> WGPUBufferMapState -> WGPUBufferMapState
min :: WGPUBufferMapState -> WGPUBufferMapState -> WGPUBufferMapState
Ord, Int -> WGPUBufferMapState -> ShowS
[WGPUBufferMapState] -> ShowS
WGPUBufferMapState -> String
(Int -> WGPUBufferMapState -> ShowS)
-> (WGPUBufferMapState -> String)
-> ([WGPUBufferMapState] -> ShowS)
-> Show WGPUBufferMapState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUBufferMapState -> ShowS
showsPrec :: Int -> WGPUBufferMapState -> ShowS
$cshow :: WGPUBufferMapState -> String
show :: WGPUBufferMapState -> String
$cshowList :: [WGPUBufferMapState] -> ShowS
showList :: [WGPUBufferMapState] -> ShowS
Show)
instance Storable WGPUBufferMapState where
alignment :: WGPUBufferMapState -> Int
alignment WGPUBufferMapState
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUBufferMapState -> Int
sizeOf WGPUBufferMapState
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUBufferMapState -> IO WGPUBufferMapState
peek Ptr WGPUBufferMapState
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUBufferMapState -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUBufferMapState
ptr)
pure $ WGPUBufferMapState x
poke :: Ptr WGPUBufferMapState -> WGPUBufferMapState -> IO ()
poke Ptr WGPUBufferMapState
ptr (WGPUBufferMapState CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUBufferMapState -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUBufferMapState
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUBufferMapState_Unmapped :: WGPUBufferMapState
wGPUBufferMapState_Unmapped :: WGPUBufferMapState
wGPUBufferMapState_Unmapped = CUInt -> WGPUBufferMapState
WGPUBufferMapState CUInt
1
{-# LINE 456 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferMapState_Pending :: WGPUBufferMapState
wGPUBufferMapState_Pending :: WGPUBufferMapState
wGPUBufferMapState_Pending = CUInt -> WGPUBufferMapState
WGPUBufferMapState CUInt
2
{-# LINE 459 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferMapState_Mapped :: WGPUBufferMapState
wGPUBufferMapState_Mapped :: WGPUBufferMapState
wGPUBufferMapState_Mapped = CUInt -> WGPUBufferMapState
WGPUBufferMapState CUInt
3
{-# LINE 462 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUBufferMapState_Force32 :: WGPUBufferMapState
wGPUBufferMapState_Force32 :: WGPUBufferMapState
wGPUBufferMapState_Force32 = CUInt -> WGPUBufferMapState
WGPUBufferMapState CUInt
2147483647
{-# LINE 465 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUTextureSampleType = WGPUTextureSampleType CUInt deriving (WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
(WGPUTextureSampleType -> WGPUTextureSampleType -> Bool)
-> (WGPUTextureSampleType -> WGPUTextureSampleType -> Bool)
-> Eq WGPUTextureSampleType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
== :: WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
$c/= :: WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
/= :: WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
Eq, Eq WGPUTextureSampleType
Eq WGPUTextureSampleType =>
(WGPUTextureSampleType -> WGPUTextureSampleType -> Ordering)
-> (WGPUTextureSampleType -> WGPUTextureSampleType -> Bool)
-> (WGPUTextureSampleType -> WGPUTextureSampleType -> Bool)
-> (WGPUTextureSampleType -> WGPUTextureSampleType -> Bool)
-> (WGPUTextureSampleType -> WGPUTextureSampleType -> Bool)
-> (WGPUTextureSampleType
-> WGPUTextureSampleType -> WGPUTextureSampleType)
-> (WGPUTextureSampleType
-> WGPUTextureSampleType -> WGPUTextureSampleType)
-> Ord WGPUTextureSampleType
WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
WGPUTextureSampleType -> WGPUTextureSampleType -> Ordering
WGPUTextureSampleType
-> WGPUTextureSampleType -> WGPUTextureSampleType
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
$ccompare :: WGPUTextureSampleType -> WGPUTextureSampleType -> Ordering
compare :: WGPUTextureSampleType -> WGPUTextureSampleType -> Ordering
$c< :: WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
< :: WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
$c<= :: WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
<= :: WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
$c> :: WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
> :: WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
$c>= :: WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
>= :: WGPUTextureSampleType -> WGPUTextureSampleType -> Bool
$cmax :: WGPUTextureSampleType
-> WGPUTextureSampleType -> WGPUTextureSampleType
max :: WGPUTextureSampleType
-> WGPUTextureSampleType -> WGPUTextureSampleType
$cmin :: WGPUTextureSampleType
-> WGPUTextureSampleType -> WGPUTextureSampleType
min :: WGPUTextureSampleType
-> WGPUTextureSampleType -> WGPUTextureSampleType
Ord, Int -> WGPUTextureSampleType -> ShowS
[WGPUTextureSampleType] -> ShowS
WGPUTextureSampleType -> String
(Int -> WGPUTextureSampleType -> ShowS)
-> (WGPUTextureSampleType -> String)
-> ([WGPUTextureSampleType] -> ShowS)
-> Show WGPUTextureSampleType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUTextureSampleType -> ShowS
showsPrec :: Int -> WGPUTextureSampleType -> ShowS
$cshow :: WGPUTextureSampleType -> String
show :: WGPUTextureSampleType -> String
$cshowList :: [WGPUTextureSampleType] -> ShowS
showList :: [WGPUTextureSampleType] -> ShowS
Show)
instance Storable WGPUTextureSampleType where
alignment :: WGPUTextureSampleType -> Int
alignment WGPUTextureSampleType
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUTextureSampleType -> Int
sizeOf WGPUTextureSampleType
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUTextureSampleType -> IO WGPUTextureSampleType
peek Ptr WGPUTextureSampleType
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUTextureSampleType -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUTextureSampleType
ptr)
pure $ WGPUTextureSampleType x
poke :: Ptr WGPUTextureSampleType -> WGPUTextureSampleType -> IO ()
poke Ptr WGPUTextureSampleType
ptr (WGPUTextureSampleType CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUTextureSampleType -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUTextureSampleType
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUTextureSampleType_BindingNotUsed :: WGPUTextureSampleType
wGPUTextureSampleType_BindingNotUsed :: WGPUTextureSampleType
wGPUTextureSampleType_BindingNotUsed = CUInt -> WGPUTextureSampleType
WGPUTextureSampleType CUInt
0
{-# LINE 481 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureSampleType_Undefined :: WGPUTextureSampleType
wGPUTextureSampleType_Undefined :: WGPUTextureSampleType
wGPUTextureSampleType_Undefined = CUInt -> WGPUTextureSampleType
WGPUTextureSampleType CUInt
1
{-# LINE 484 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureSampleType_Float :: WGPUTextureSampleType
wGPUTextureSampleType_Float :: WGPUTextureSampleType
wGPUTextureSampleType_Float = CUInt -> WGPUTextureSampleType
WGPUTextureSampleType CUInt
2
{-# LINE 487 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureSampleType_UnfilterableFloat :: WGPUTextureSampleType
wGPUTextureSampleType_UnfilterableFloat :: WGPUTextureSampleType
wGPUTextureSampleType_UnfilterableFloat = CUInt -> WGPUTextureSampleType
WGPUTextureSampleType CUInt
3
{-# LINE 490 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureSampleType_Depth :: WGPUTextureSampleType
wGPUTextureSampleType_Depth :: WGPUTextureSampleType
wGPUTextureSampleType_Depth = CUInt -> WGPUTextureSampleType
WGPUTextureSampleType CUInt
4
{-# LINE 493 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureSampleType_Sint :: WGPUTextureSampleType
wGPUTextureSampleType_Sint :: WGPUTextureSampleType
wGPUTextureSampleType_Sint = CUInt -> WGPUTextureSampleType
WGPUTextureSampleType CUInt
5
{-# LINE 496 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureSampleType_Uint :: WGPUTextureSampleType
wGPUTextureSampleType_Uint :: WGPUTextureSampleType
wGPUTextureSampleType_Uint = CUInt -> WGPUTextureSampleType
WGPUTextureSampleType CUInt
6
{-# LINE 499 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureSampleType_Force32 :: WGPUTextureSampleType
wGPUTextureSampleType_Force32 :: WGPUTextureSampleType
wGPUTextureSampleType_Force32 = CUInt -> WGPUTextureSampleType
WGPUTextureSampleType CUInt
2147483647
{-# LINE 502 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUTextureViewDimension = WGPUTextureViewDimension CUInt deriving (WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
(WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool)
-> (WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool)
-> Eq WGPUTextureViewDimension
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
== :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
$c/= :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
/= :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
Eq, Eq WGPUTextureViewDimension
Eq WGPUTextureViewDimension =>
(WGPUTextureViewDimension -> WGPUTextureViewDimension -> Ordering)
-> (WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool)
-> (WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool)
-> (WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool)
-> (WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool)
-> (WGPUTextureViewDimension
-> WGPUTextureViewDimension -> WGPUTextureViewDimension)
-> (WGPUTextureViewDimension
-> WGPUTextureViewDimension -> WGPUTextureViewDimension)
-> Ord WGPUTextureViewDimension
WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
WGPUTextureViewDimension -> WGPUTextureViewDimension -> Ordering
WGPUTextureViewDimension
-> WGPUTextureViewDimension -> WGPUTextureViewDimension
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
$ccompare :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Ordering
compare :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Ordering
$c< :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
< :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
$c<= :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
<= :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
$c> :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
> :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
$c>= :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
>= :: WGPUTextureViewDimension -> WGPUTextureViewDimension -> Bool
$cmax :: WGPUTextureViewDimension
-> WGPUTextureViewDimension -> WGPUTextureViewDimension
max :: WGPUTextureViewDimension
-> WGPUTextureViewDimension -> WGPUTextureViewDimension
$cmin :: WGPUTextureViewDimension
-> WGPUTextureViewDimension -> WGPUTextureViewDimension
min :: WGPUTextureViewDimension
-> WGPUTextureViewDimension -> WGPUTextureViewDimension
Ord, Int -> WGPUTextureViewDimension -> ShowS
[WGPUTextureViewDimension] -> ShowS
WGPUTextureViewDimension -> String
(Int -> WGPUTextureViewDimension -> ShowS)
-> (WGPUTextureViewDimension -> String)
-> ([WGPUTextureViewDimension] -> ShowS)
-> Show WGPUTextureViewDimension
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUTextureViewDimension -> ShowS
showsPrec :: Int -> WGPUTextureViewDimension -> ShowS
$cshow :: WGPUTextureViewDimension -> String
show :: WGPUTextureViewDimension -> String
$cshowList :: [WGPUTextureViewDimension] -> ShowS
showList :: [WGPUTextureViewDimension] -> ShowS
Show)
instance Storable WGPUTextureViewDimension where
alignment :: WGPUTextureViewDimension -> Int
alignment WGPUTextureViewDimension
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUTextureViewDimension -> Int
sizeOf WGPUTextureViewDimension
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUTextureViewDimension -> IO WGPUTextureViewDimension
peek Ptr WGPUTextureViewDimension
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUTextureViewDimension -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUTextureViewDimension
ptr)
pure $ WGPUTextureViewDimension x
poke :: Ptr WGPUTextureViewDimension -> WGPUTextureViewDimension -> IO ()
poke Ptr WGPUTextureViewDimension
ptr (WGPUTextureViewDimension CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUTextureViewDimension -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUTextureViewDimension
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUTextureViewDimension_Undefined :: WGPUTextureViewDimension
wGPUTextureViewDimension_Undefined :: WGPUTextureViewDimension
wGPUTextureViewDimension_Undefined = CUInt -> WGPUTextureViewDimension
WGPUTextureViewDimension CUInt
0
{-# LINE 517 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureViewDimension_1D :: WGPUTextureViewDimension
wGPUTextureViewDimension_1D :: WGPUTextureViewDimension
wGPUTextureViewDimension_1D = CUInt -> WGPUTextureViewDimension
WGPUTextureViewDimension CUInt
1
{-# LINE 520 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureViewDimension_2D :: WGPUTextureViewDimension
wGPUTextureViewDimension_2D :: WGPUTextureViewDimension
wGPUTextureViewDimension_2D = CUInt -> WGPUTextureViewDimension
WGPUTextureViewDimension CUInt
2
{-# LINE 523 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureViewDimension_2DArray :: WGPUTextureViewDimension
wGPUTextureViewDimension_2DArray :: WGPUTextureViewDimension
wGPUTextureViewDimension_2DArray = CUInt -> WGPUTextureViewDimension
WGPUTextureViewDimension CUInt
3
{-# LINE 526 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureViewDimension_Cube :: WGPUTextureViewDimension
wGPUTextureViewDimension_Cube :: WGPUTextureViewDimension
wGPUTextureViewDimension_Cube = CUInt -> WGPUTextureViewDimension
WGPUTextureViewDimension CUInt
4
{-# LINE 529 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureViewDimension_CubeArray :: WGPUTextureViewDimension
wGPUTextureViewDimension_CubeArray :: WGPUTextureViewDimension
wGPUTextureViewDimension_CubeArray = CUInt -> WGPUTextureViewDimension
WGPUTextureViewDimension CUInt
5
{-# LINE 532 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureViewDimension_3D :: WGPUTextureViewDimension
wGPUTextureViewDimension_3D :: WGPUTextureViewDimension
wGPUTextureViewDimension_3D = CUInt -> WGPUTextureViewDimension
WGPUTextureViewDimension CUInt
6
{-# LINE 535 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureViewDimension_Force32 :: WGPUTextureViewDimension
wGPUTextureViewDimension_Force32 :: WGPUTextureViewDimension
wGPUTextureViewDimension_Force32 = CUInt -> WGPUTextureViewDimension
WGPUTextureViewDimension CUInt
2147483647
{-# LINE 538 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUToneMappingMode = WGPUToneMappingMode CUInt deriving (WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
(WGPUToneMappingMode -> WGPUToneMappingMode -> Bool)
-> (WGPUToneMappingMode -> WGPUToneMappingMode -> Bool)
-> Eq WGPUToneMappingMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
== :: WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
$c/= :: WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
/= :: WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
Eq, Eq WGPUToneMappingMode
Eq WGPUToneMappingMode =>
(WGPUToneMappingMode -> WGPUToneMappingMode -> Ordering)
-> (WGPUToneMappingMode -> WGPUToneMappingMode -> Bool)
-> (WGPUToneMappingMode -> WGPUToneMappingMode -> Bool)
-> (WGPUToneMappingMode -> WGPUToneMappingMode -> Bool)
-> (WGPUToneMappingMode -> WGPUToneMappingMode -> Bool)
-> (WGPUToneMappingMode
-> WGPUToneMappingMode -> WGPUToneMappingMode)
-> (WGPUToneMappingMode
-> WGPUToneMappingMode -> WGPUToneMappingMode)
-> Ord WGPUToneMappingMode
WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
WGPUToneMappingMode -> WGPUToneMappingMode -> Ordering
WGPUToneMappingMode -> WGPUToneMappingMode -> WGPUToneMappingMode
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
$ccompare :: WGPUToneMappingMode -> WGPUToneMappingMode -> Ordering
compare :: WGPUToneMappingMode -> WGPUToneMappingMode -> Ordering
$c< :: WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
< :: WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
$c<= :: WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
<= :: WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
$c> :: WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
> :: WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
$c>= :: WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
>= :: WGPUToneMappingMode -> WGPUToneMappingMode -> Bool
$cmax :: WGPUToneMappingMode -> WGPUToneMappingMode -> WGPUToneMappingMode
max :: WGPUToneMappingMode -> WGPUToneMappingMode -> WGPUToneMappingMode
$cmin :: WGPUToneMappingMode -> WGPUToneMappingMode -> WGPUToneMappingMode
min :: WGPUToneMappingMode -> WGPUToneMappingMode -> WGPUToneMappingMode
Ord, Int -> WGPUToneMappingMode -> ShowS
[WGPUToneMappingMode] -> ShowS
WGPUToneMappingMode -> String
(Int -> WGPUToneMappingMode -> ShowS)
-> (WGPUToneMappingMode -> String)
-> ([WGPUToneMappingMode] -> ShowS)
-> Show WGPUToneMappingMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUToneMappingMode -> ShowS
showsPrec :: Int -> WGPUToneMappingMode -> ShowS
$cshow :: WGPUToneMappingMode -> String
show :: WGPUToneMappingMode -> String
$cshowList :: [WGPUToneMappingMode] -> ShowS
showList :: [WGPUToneMappingMode] -> ShowS
Show)
instance Storable WGPUToneMappingMode where
alignment :: WGPUToneMappingMode -> Int
alignment WGPUToneMappingMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUToneMappingMode -> Int
sizeOf WGPUToneMappingMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUToneMappingMode -> IO WGPUToneMappingMode
peek Ptr WGPUToneMappingMode
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUToneMappingMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUToneMappingMode
ptr)
pure $ WGPUToneMappingMode x
poke :: Ptr WGPUToneMappingMode -> WGPUToneMappingMode -> IO ()
poke Ptr WGPUToneMappingMode
ptr (WGPUToneMappingMode CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUToneMappingMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUToneMappingMode
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUToneMappingMode_Standard :: WGPUToneMappingMode
wGPUToneMappingMode_Standard :: WGPUToneMappingMode
wGPUToneMappingMode_Standard = CUInt -> WGPUToneMappingMode
WGPUToneMappingMode CUInt
1
{-# LINE 554 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUToneMappingMode_Extended :: WGPUToneMappingMode
wGPUToneMappingMode_Extended :: WGPUToneMappingMode
wGPUToneMappingMode_Extended = CUInt -> WGPUToneMappingMode
WGPUToneMappingMode CUInt
2
{-# LINE 557 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUToneMappingMode_Force32 :: WGPUToneMappingMode
wGPUToneMappingMode_Force32 :: WGPUToneMappingMode
wGPUToneMappingMode_Force32 = CUInt -> WGPUToneMappingMode
WGPUToneMappingMode CUInt
2147483647
{-# LINE 560 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUVertexFormat = WGPUVertexFormat CUInt deriving (WGPUVertexFormat -> WGPUVertexFormat -> Bool
(WGPUVertexFormat -> WGPUVertexFormat -> Bool)
-> (WGPUVertexFormat -> WGPUVertexFormat -> Bool)
-> Eq WGPUVertexFormat
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUVertexFormat -> WGPUVertexFormat -> Bool
== :: WGPUVertexFormat -> WGPUVertexFormat -> Bool
$c/= :: WGPUVertexFormat -> WGPUVertexFormat -> Bool
/= :: WGPUVertexFormat -> WGPUVertexFormat -> Bool
Eq, Eq WGPUVertexFormat
Eq WGPUVertexFormat =>
(WGPUVertexFormat -> WGPUVertexFormat -> Ordering)
-> (WGPUVertexFormat -> WGPUVertexFormat -> Bool)
-> (WGPUVertexFormat -> WGPUVertexFormat -> Bool)
-> (WGPUVertexFormat -> WGPUVertexFormat -> Bool)
-> (WGPUVertexFormat -> WGPUVertexFormat -> Bool)
-> (WGPUVertexFormat -> WGPUVertexFormat -> WGPUVertexFormat)
-> (WGPUVertexFormat -> WGPUVertexFormat -> WGPUVertexFormat)
-> Ord WGPUVertexFormat
WGPUVertexFormat -> WGPUVertexFormat -> Bool
WGPUVertexFormat -> WGPUVertexFormat -> Ordering
WGPUVertexFormat -> WGPUVertexFormat -> WGPUVertexFormat
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
$ccompare :: WGPUVertexFormat -> WGPUVertexFormat -> Ordering
compare :: WGPUVertexFormat -> WGPUVertexFormat -> Ordering
$c< :: WGPUVertexFormat -> WGPUVertexFormat -> Bool
< :: WGPUVertexFormat -> WGPUVertexFormat -> Bool
$c<= :: WGPUVertexFormat -> WGPUVertexFormat -> Bool
<= :: WGPUVertexFormat -> WGPUVertexFormat -> Bool
$c> :: WGPUVertexFormat -> WGPUVertexFormat -> Bool
> :: WGPUVertexFormat -> WGPUVertexFormat -> Bool
$c>= :: WGPUVertexFormat -> WGPUVertexFormat -> Bool
>= :: WGPUVertexFormat -> WGPUVertexFormat -> Bool
$cmax :: WGPUVertexFormat -> WGPUVertexFormat -> WGPUVertexFormat
max :: WGPUVertexFormat -> WGPUVertexFormat -> WGPUVertexFormat
$cmin :: WGPUVertexFormat -> WGPUVertexFormat -> WGPUVertexFormat
min :: WGPUVertexFormat -> WGPUVertexFormat -> WGPUVertexFormat
Ord, Int -> WGPUVertexFormat -> ShowS
[WGPUVertexFormat] -> ShowS
WGPUVertexFormat -> String
(Int -> WGPUVertexFormat -> ShowS)
-> (WGPUVertexFormat -> String)
-> ([WGPUVertexFormat] -> ShowS)
-> Show WGPUVertexFormat
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUVertexFormat -> ShowS
showsPrec :: Int -> WGPUVertexFormat -> ShowS
$cshow :: WGPUVertexFormat -> String
show :: WGPUVertexFormat -> String
$cshowList :: [WGPUVertexFormat] -> ShowS
showList :: [WGPUVertexFormat] -> ShowS
Show)
instance Storable WGPUVertexFormat where
alignment :: WGPUVertexFormat -> Int
alignment WGPUVertexFormat
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUVertexFormat -> Int
sizeOf WGPUVertexFormat
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUVertexFormat -> IO WGPUVertexFormat
peek Ptr WGPUVertexFormat
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUVertexFormat -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUVertexFormat
ptr)
pure $ WGPUVertexFormat x
poke :: Ptr WGPUVertexFormat -> WGPUVertexFormat -> IO ()
poke Ptr WGPUVertexFormat
ptr (WGPUVertexFormat CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUVertexFormat -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUVertexFormat
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUVertexFormat_Uint8 :: WGPUVertexFormat
wGPUVertexFormat_Uint8 :: WGPUVertexFormat
wGPUVertexFormat_Uint8 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
1
{-# LINE 576 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Uint8x2 :: WGPUVertexFormat
wGPUVertexFormat_Uint8x2 :: WGPUVertexFormat
wGPUVertexFormat_Uint8x2 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
2
{-# LINE 579 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Uint8x4 :: WGPUVertexFormat
wGPUVertexFormat_Uint8x4 :: WGPUVertexFormat
wGPUVertexFormat_Uint8x4 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
3
{-# LINE 582 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Sint8 :: WGPUVertexFormat
wGPUVertexFormat_Sint8 :: WGPUVertexFormat
wGPUVertexFormat_Sint8 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
4
{-# LINE 585 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Sint8x2 :: WGPUVertexFormat
wGPUVertexFormat_Sint8x2 :: WGPUVertexFormat
wGPUVertexFormat_Sint8x2 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
5
{-# LINE 588 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Sint8x4 :: WGPUVertexFormat
wGPUVertexFormat_Sint8x4 :: WGPUVertexFormat
wGPUVertexFormat_Sint8x4 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
6
{-# LINE 591 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Unorm8 :: WGPUVertexFormat
wGPUVertexFormat_Unorm8 :: WGPUVertexFormat
wGPUVertexFormat_Unorm8 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
7
{-# LINE 594 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Unorm8x2 :: WGPUVertexFormat
wGPUVertexFormat_Unorm8x2 :: WGPUVertexFormat
wGPUVertexFormat_Unorm8x2 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
8
{-# LINE 597 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Unorm8x4 :: WGPUVertexFormat
wGPUVertexFormat_Unorm8x4 :: WGPUVertexFormat
wGPUVertexFormat_Unorm8x4 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
9
{-# LINE 600 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Snorm8 :: WGPUVertexFormat
wGPUVertexFormat_Snorm8 :: WGPUVertexFormat
wGPUVertexFormat_Snorm8 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
10
{-# LINE 603 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Snorm8x2 :: WGPUVertexFormat
wGPUVertexFormat_Snorm8x2 :: WGPUVertexFormat
wGPUVertexFormat_Snorm8x2 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
11
{-# LINE 606 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Snorm8x4 :: WGPUVertexFormat
wGPUVertexFormat_Snorm8x4 :: WGPUVertexFormat
wGPUVertexFormat_Snorm8x4 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
12
{-# LINE 609 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Uint16 :: WGPUVertexFormat
wGPUVertexFormat_Uint16 :: WGPUVertexFormat
wGPUVertexFormat_Uint16 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
13
{-# LINE 612 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Uint16x2 :: WGPUVertexFormat
wGPUVertexFormat_Uint16x2 :: WGPUVertexFormat
wGPUVertexFormat_Uint16x2 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
14
{-# LINE 615 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Uint16x4 :: WGPUVertexFormat
wGPUVertexFormat_Uint16x4 :: WGPUVertexFormat
wGPUVertexFormat_Uint16x4 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
15
{-# LINE 618 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Sint16 :: WGPUVertexFormat
wGPUVertexFormat_Sint16 :: WGPUVertexFormat
wGPUVertexFormat_Sint16 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
16
{-# LINE 621 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Sint16x2 :: WGPUVertexFormat
wGPUVertexFormat_Sint16x2 :: WGPUVertexFormat
wGPUVertexFormat_Sint16x2 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
17
{-# LINE 624 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Sint16x4 :: WGPUVertexFormat
wGPUVertexFormat_Sint16x4 :: WGPUVertexFormat
wGPUVertexFormat_Sint16x4 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
18
{-# LINE 627 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Unorm16 :: WGPUVertexFormat
wGPUVertexFormat_Unorm16 :: WGPUVertexFormat
wGPUVertexFormat_Unorm16 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
19
{-# LINE 630 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Unorm16x2 :: WGPUVertexFormat
wGPUVertexFormat_Unorm16x2 :: WGPUVertexFormat
wGPUVertexFormat_Unorm16x2 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
20
{-# LINE 633 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Unorm16x4 :: WGPUVertexFormat
wGPUVertexFormat_Unorm16x4 :: WGPUVertexFormat
wGPUVertexFormat_Unorm16x4 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
21
{-# LINE 636 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Snorm16 :: WGPUVertexFormat
wGPUVertexFormat_Snorm16 :: WGPUVertexFormat
wGPUVertexFormat_Snorm16 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
22
{-# LINE 639 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Snorm16x2 :: WGPUVertexFormat
wGPUVertexFormat_Snorm16x2 :: WGPUVertexFormat
wGPUVertexFormat_Snorm16x2 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
23
{-# LINE 642 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Snorm16x4 :: WGPUVertexFormat
wGPUVertexFormat_Snorm16x4 :: WGPUVertexFormat
wGPUVertexFormat_Snorm16x4 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
24
{-# LINE 645 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Float16 :: WGPUVertexFormat
wGPUVertexFormat_Float16 :: WGPUVertexFormat
wGPUVertexFormat_Float16 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
25
{-# LINE 648 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Float16x2 :: WGPUVertexFormat
wGPUVertexFormat_Float16x2 :: WGPUVertexFormat
wGPUVertexFormat_Float16x2 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
26
{-# LINE 651 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Float16x4 :: WGPUVertexFormat
wGPUVertexFormat_Float16x4 :: WGPUVertexFormat
wGPUVertexFormat_Float16x4 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
27
{-# LINE 654 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Float32 :: WGPUVertexFormat
wGPUVertexFormat_Float32 :: WGPUVertexFormat
wGPUVertexFormat_Float32 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
28
{-# LINE 657 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Float32x2 :: WGPUVertexFormat
wGPUVertexFormat_Float32x2 :: WGPUVertexFormat
wGPUVertexFormat_Float32x2 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
29
{-# LINE 660 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Float32x3 :: WGPUVertexFormat
wGPUVertexFormat_Float32x3 :: WGPUVertexFormat
wGPUVertexFormat_Float32x3 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
30
{-# LINE 663 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Float32x4 :: WGPUVertexFormat
wGPUVertexFormat_Float32x4 :: WGPUVertexFormat
wGPUVertexFormat_Float32x4 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
31
{-# LINE 666 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Uint32 :: WGPUVertexFormat
wGPUVertexFormat_Uint32 :: WGPUVertexFormat
wGPUVertexFormat_Uint32 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
32
{-# LINE 669 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Uint32x2 :: WGPUVertexFormat
wGPUVertexFormat_Uint32x2 :: WGPUVertexFormat
wGPUVertexFormat_Uint32x2 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
33
{-# LINE 672 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Uint32x3 :: WGPUVertexFormat
wGPUVertexFormat_Uint32x3 :: WGPUVertexFormat
wGPUVertexFormat_Uint32x3 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
34
{-# LINE 675 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Uint32x4 :: WGPUVertexFormat
wGPUVertexFormat_Uint32x4 :: WGPUVertexFormat
wGPUVertexFormat_Uint32x4 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
35
{-# LINE 678 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Sint32 :: WGPUVertexFormat
wGPUVertexFormat_Sint32 :: WGPUVertexFormat
wGPUVertexFormat_Sint32 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
36
{-# LINE 681 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Sint32x2 :: WGPUVertexFormat
wGPUVertexFormat_Sint32x2 :: WGPUVertexFormat
wGPUVertexFormat_Sint32x2 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
37
{-# LINE 684 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Sint32x3 :: WGPUVertexFormat
wGPUVertexFormat_Sint32x3 :: WGPUVertexFormat
wGPUVertexFormat_Sint32x3 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
38
{-# LINE 687 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Sint32x4 :: WGPUVertexFormat
wGPUVertexFormat_Sint32x4 :: WGPUVertexFormat
wGPUVertexFormat_Sint32x4 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
39
{-# LINE 690 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Unorm10_10_10_2 :: WGPUVertexFormat
wGPUVertexFormat_Unorm10_10_10_2 :: WGPUVertexFormat
wGPUVertexFormat_Unorm10_10_10_2 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
40
{-# LINE 693 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Unorm8x4BGRA :: WGPUVertexFormat
wGPUVertexFormat_Unorm8x4BGRA :: WGPUVertexFormat
wGPUVertexFormat_Unorm8x4BGRA = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
41
{-# LINE 696 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexFormat_Force32 :: WGPUVertexFormat
wGPUVertexFormat_Force32 :: WGPUVertexFormat
wGPUVertexFormat_Force32 = CUInt -> WGPUVertexFormat
WGPUVertexFormat CUInt
2147483647
{-# LINE 699 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUVertexStepMode = WGPUVertexStepMode CUInt deriving (WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
(WGPUVertexStepMode -> WGPUVertexStepMode -> Bool)
-> (WGPUVertexStepMode -> WGPUVertexStepMode -> Bool)
-> Eq WGPUVertexStepMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
== :: WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
$c/= :: WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
/= :: WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
Eq, Eq WGPUVertexStepMode
Eq WGPUVertexStepMode =>
(WGPUVertexStepMode -> WGPUVertexStepMode -> Ordering)
-> (WGPUVertexStepMode -> WGPUVertexStepMode -> Bool)
-> (WGPUVertexStepMode -> WGPUVertexStepMode -> Bool)
-> (WGPUVertexStepMode -> WGPUVertexStepMode -> Bool)
-> (WGPUVertexStepMode -> WGPUVertexStepMode -> Bool)
-> (WGPUVertexStepMode -> WGPUVertexStepMode -> WGPUVertexStepMode)
-> (WGPUVertexStepMode -> WGPUVertexStepMode -> WGPUVertexStepMode)
-> Ord WGPUVertexStepMode
WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
WGPUVertexStepMode -> WGPUVertexStepMode -> Ordering
WGPUVertexStepMode -> WGPUVertexStepMode -> WGPUVertexStepMode
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
$ccompare :: WGPUVertexStepMode -> WGPUVertexStepMode -> Ordering
compare :: WGPUVertexStepMode -> WGPUVertexStepMode -> Ordering
$c< :: WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
< :: WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
$c<= :: WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
<= :: WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
$c> :: WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
> :: WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
$c>= :: WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
>= :: WGPUVertexStepMode -> WGPUVertexStepMode -> Bool
$cmax :: WGPUVertexStepMode -> WGPUVertexStepMode -> WGPUVertexStepMode
max :: WGPUVertexStepMode -> WGPUVertexStepMode -> WGPUVertexStepMode
$cmin :: WGPUVertexStepMode -> WGPUVertexStepMode -> WGPUVertexStepMode
min :: WGPUVertexStepMode -> WGPUVertexStepMode -> WGPUVertexStepMode
Ord, Int -> WGPUVertexStepMode -> ShowS
[WGPUVertexStepMode] -> ShowS
WGPUVertexStepMode -> String
(Int -> WGPUVertexStepMode -> ShowS)
-> (WGPUVertexStepMode -> String)
-> ([WGPUVertexStepMode] -> ShowS)
-> Show WGPUVertexStepMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUVertexStepMode -> ShowS
showsPrec :: Int -> WGPUVertexStepMode -> ShowS
$cshow :: WGPUVertexStepMode -> String
show :: WGPUVertexStepMode -> String
$cshowList :: [WGPUVertexStepMode] -> ShowS
showList :: [WGPUVertexStepMode] -> ShowS
Show)
instance Storable WGPUVertexStepMode where
alignment :: WGPUVertexStepMode -> Int
alignment WGPUVertexStepMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUVertexStepMode -> Int
sizeOf WGPUVertexStepMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUVertexStepMode -> IO WGPUVertexStepMode
peek Ptr WGPUVertexStepMode
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUVertexStepMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUVertexStepMode
ptr)
pure $ WGPUVertexStepMode x
poke :: Ptr WGPUVertexStepMode -> WGPUVertexStepMode -> IO ()
poke Ptr WGPUVertexStepMode
ptr (WGPUVertexStepMode CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUVertexStepMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUVertexStepMode
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUVertexStepMode_Undefined :: WGPUVertexStepMode
wGPUVertexStepMode_Undefined :: WGPUVertexStepMode
wGPUVertexStepMode_Undefined = CUInt -> WGPUVertexStepMode
WGPUVertexStepMode CUInt
0
{-# LINE 714 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexStepMode_Vertex :: WGPUVertexStepMode
wGPUVertexStepMode_Vertex :: WGPUVertexStepMode
wGPUVertexStepMode_Vertex = CUInt -> WGPUVertexStepMode
WGPUVertexStepMode CUInt
1
{-# LINE 717 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexStepMode_Instance :: WGPUVertexStepMode
wGPUVertexStepMode_Instance :: WGPUVertexStepMode
wGPUVertexStepMode_Instance = CUInt -> WGPUVertexStepMode
WGPUVertexStepMode CUInt
2
{-# LINE 720 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUVertexStepMode_Force32 :: WGPUVertexStepMode
wGPUVertexStepMode_Force32 :: WGPUVertexStepMode
wGPUVertexStepMode_Force32 = CUInt -> WGPUVertexStepMode
WGPUVertexStepMode CUInt
2147483647
{-# LINE 723 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUStorageTextureAccess = WGPUStorageTextureAccess CUInt deriving (WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
(WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool)
-> (WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool)
-> Eq WGPUStorageTextureAccess
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
== :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
$c/= :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
/= :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
Eq, Eq WGPUStorageTextureAccess
Eq WGPUStorageTextureAccess =>
(WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Ordering)
-> (WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool)
-> (WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool)
-> (WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool)
-> (WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool)
-> (WGPUStorageTextureAccess
-> WGPUStorageTextureAccess -> WGPUStorageTextureAccess)
-> (WGPUStorageTextureAccess
-> WGPUStorageTextureAccess -> WGPUStorageTextureAccess)
-> Ord WGPUStorageTextureAccess
WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Ordering
WGPUStorageTextureAccess
-> WGPUStorageTextureAccess -> WGPUStorageTextureAccess
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
$ccompare :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Ordering
compare :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Ordering
$c< :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
< :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
$c<= :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
<= :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
$c> :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
> :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
$c>= :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
>= :: WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> Bool
$cmax :: WGPUStorageTextureAccess
-> WGPUStorageTextureAccess -> WGPUStorageTextureAccess
max :: WGPUStorageTextureAccess
-> WGPUStorageTextureAccess -> WGPUStorageTextureAccess
$cmin :: WGPUStorageTextureAccess
-> WGPUStorageTextureAccess -> WGPUStorageTextureAccess
min :: WGPUStorageTextureAccess
-> WGPUStorageTextureAccess -> WGPUStorageTextureAccess
Ord, Int -> WGPUStorageTextureAccess -> ShowS
[WGPUStorageTextureAccess] -> ShowS
WGPUStorageTextureAccess -> String
(Int -> WGPUStorageTextureAccess -> ShowS)
-> (WGPUStorageTextureAccess -> String)
-> ([WGPUStorageTextureAccess] -> ShowS)
-> Show WGPUStorageTextureAccess
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUStorageTextureAccess -> ShowS
showsPrec :: Int -> WGPUStorageTextureAccess -> ShowS
$cshow :: WGPUStorageTextureAccess -> String
show :: WGPUStorageTextureAccess -> String
$cshowList :: [WGPUStorageTextureAccess] -> ShowS
showList :: [WGPUStorageTextureAccess] -> ShowS
Show)
instance Storable WGPUStorageTextureAccess where
alignment :: WGPUStorageTextureAccess -> Int
alignment WGPUStorageTextureAccess
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUStorageTextureAccess -> Int
sizeOf WGPUStorageTextureAccess
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUStorageTextureAccess -> IO WGPUStorageTextureAccess
peek Ptr WGPUStorageTextureAccess
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUStorageTextureAccess -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUStorageTextureAccess
ptr)
pure $ WGPUStorageTextureAccess x
poke :: Ptr WGPUStorageTextureAccess -> WGPUStorageTextureAccess -> IO ()
poke Ptr WGPUStorageTextureAccess
ptr (WGPUStorageTextureAccess CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUStorageTextureAccess -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUStorageTextureAccess
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUStorageTextureAccess_BindingNotUsed :: WGPUStorageTextureAccess
wGPUStorageTextureAccess_BindingNotUsed :: WGPUStorageTextureAccess
wGPUStorageTextureAccess_BindingNotUsed = CUInt -> WGPUStorageTextureAccess
WGPUStorageTextureAccess CUInt
0
{-# LINE 738 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUStorageTextureAccess_Undefined :: WGPUStorageTextureAccess
wGPUStorageTextureAccess_Undefined :: WGPUStorageTextureAccess
wGPUStorageTextureAccess_Undefined = CUInt -> WGPUStorageTextureAccess
WGPUStorageTextureAccess CUInt
1
{-# LINE 741 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUStorageTextureAccess_WriteOnly :: WGPUStorageTextureAccess
wGPUStorageTextureAccess_WriteOnly :: WGPUStorageTextureAccess
wGPUStorageTextureAccess_WriteOnly = CUInt -> WGPUStorageTextureAccess
WGPUStorageTextureAccess CUInt
2
{-# LINE 744 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUStorageTextureAccess_ReadOnly :: WGPUStorageTextureAccess
wGPUStorageTextureAccess_ReadOnly :: WGPUStorageTextureAccess
wGPUStorageTextureAccess_ReadOnly = CUInt -> WGPUStorageTextureAccess
WGPUStorageTextureAccess CUInt
3
{-# LINE 747 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUStorageTextureAccess_ReadWrite :: WGPUStorageTextureAccess
wGPUStorageTextureAccess_ReadWrite :: WGPUStorageTextureAccess
wGPUStorageTextureAccess_ReadWrite = CUInt -> WGPUStorageTextureAccess
WGPUStorageTextureAccess CUInt
4
{-# LINE 750 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUStorageTextureAccess_Force32 :: WGPUStorageTextureAccess
wGPUStorageTextureAccess_Force32 :: WGPUStorageTextureAccess
wGPUStorageTextureAccess_Force32 = CUInt -> WGPUStorageTextureAccess
WGPUStorageTextureAccess CUInt
2147483647
{-# LINE 753 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUTextureFormat = WGPUTextureFormat CUInt deriving (WGPUTextureFormat -> WGPUTextureFormat -> Bool
(WGPUTextureFormat -> WGPUTextureFormat -> Bool)
-> (WGPUTextureFormat -> WGPUTextureFormat -> Bool)
-> Eq WGPUTextureFormat
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUTextureFormat -> WGPUTextureFormat -> Bool
== :: WGPUTextureFormat -> WGPUTextureFormat -> Bool
$c/= :: WGPUTextureFormat -> WGPUTextureFormat -> Bool
/= :: WGPUTextureFormat -> WGPUTextureFormat -> Bool
Eq, Eq WGPUTextureFormat
Eq WGPUTextureFormat =>
(WGPUTextureFormat -> WGPUTextureFormat -> Ordering)
-> (WGPUTextureFormat -> WGPUTextureFormat -> Bool)
-> (WGPUTextureFormat -> WGPUTextureFormat -> Bool)
-> (WGPUTextureFormat -> WGPUTextureFormat -> Bool)
-> (WGPUTextureFormat -> WGPUTextureFormat -> Bool)
-> (WGPUTextureFormat -> WGPUTextureFormat -> WGPUTextureFormat)
-> (WGPUTextureFormat -> WGPUTextureFormat -> WGPUTextureFormat)
-> Ord WGPUTextureFormat
WGPUTextureFormat -> WGPUTextureFormat -> Bool
WGPUTextureFormat -> WGPUTextureFormat -> Ordering
WGPUTextureFormat -> WGPUTextureFormat -> WGPUTextureFormat
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
$ccompare :: WGPUTextureFormat -> WGPUTextureFormat -> Ordering
compare :: WGPUTextureFormat -> WGPUTextureFormat -> Ordering
$c< :: WGPUTextureFormat -> WGPUTextureFormat -> Bool
< :: WGPUTextureFormat -> WGPUTextureFormat -> Bool
$c<= :: WGPUTextureFormat -> WGPUTextureFormat -> Bool
<= :: WGPUTextureFormat -> WGPUTextureFormat -> Bool
$c> :: WGPUTextureFormat -> WGPUTextureFormat -> Bool
> :: WGPUTextureFormat -> WGPUTextureFormat -> Bool
$c>= :: WGPUTextureFormat -> WGPUTextureFormat -> Bool
>= :: WGPUTextureFormat -> WGPUTextureFormat -> Bool
$cmax :: WGPUTextureFormat -> WGPUTextureFormat -> WGPUTextureFormat
max :: WGPUTextureFormat -> WGPUTextureFormat -> WGPUTextureFormat
$cmin :: WGPUTextureFormat -> WGPUTextureFormat -> WGPUTextureFormat
min :: WGPUTextureFormat -> WGPUTextureFormat -> WGPUTextureFormat
Ord, Int -> WGPUTextureFormat -> ShowS
[WGPUTextureFormat] -> ShowS
WGPUTextureFormat -> String
(Int -> WGPUTextureFormat -> ShowS)
-> (WGPUTextureFormat -> String)
-> ([WGPUTextureFormat] -> ShowS)
-> Show WGPUTextureFormat
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUTextureFormat -> ShowS
showsPrec :: Int -> WGPUTextureFormat -> ShowS
$cshow :: WGPUTextureFormat -> String
show :: WGPUTextureFormat -> String
$cshowList :: [WGPUTextureFormat] -> ShowS
showList :: [WGPUTextureFormat] -> ShowS
Show)
instance Storable WGPUTextureFormat where
alignment :: WGPUTextureFormat -> Int
alignment WGPUTextureFormat
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUTextureFormat -> Int
sizeOf WGPUTextureFormat
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUTextureFormat -> IO WGPUTextureFormat
peek Ptr WGPUTextureFormat
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUTextureFormat -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUTextureFormat
ptr)
pure $ WGPUTextureFormat x
poke :: Ptr WGPUTextureFormat -> WGPUTextureFormat -> IO ()
poke Ptr WGPUTextureFormat
ptr (WGPUTextureFormat CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUTextureFormat -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUTextureFormat
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUTextureFormat_Undefined :: WGPUTextureFormat
wGPUTextureFormat_Undefined :: WGPUTextureFormat
wGPUTextureFormat_Undefined = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
0
{-# LINE 769 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_R8Unorm :: WGPUTextureFormat
wGPUTextureFormat_R8Unorm :: WGPUTextureFormat
wGPUTextureFormat_R8Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
1
{-# LINE 772 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_R8Snorm :: WGPUTextureFormat
wGPUTextureFormat_R8Snorm :: WGPUTextureFormat
wGPUTextureFormat_R8Snorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
2
{-# LINE 775 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_R8Uint :: WGPUTextureFormat
wGPUTextureFormat_R8Uint :: WGPUTextureFormat
wGPUTextureFormat_R8Uint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
3
{-# LINE 778 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_R8Sint :: WGPUTextureFormat
wGPUTextureFormat_R8Sint :: WGPUTextureFormat
wGPUTextureFormat_R8Sint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
4
{-# LINE 781 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_R16Unorm :: WGPUTextureFormat
wGPUTextureFormat_R16Unorm :: WGPUTextureFormat
wGPUTextureFormat_R16Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
5
{-# LINE 784 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_R16Snorm :: WGPUTextureFormat
wGPUTextureFormat_R16Snorm :: WGPUTextureFormat
wGPUTextureFormat_R16Snorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
6
{-# LINE 787 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_R16Uint :: WGPUTextureFormat
wGPUTextureFormat_R16Uint :: WGPUTextureFormat
wGPUTextureFormat_R16Uint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
7
{-# LINE 790 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_R16Sint :: WGPUTextureFormat
wGPUTextureFormat_R16Sint :: WGPUTextureFormat
wGPUTextureFormat_R16Sint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
8
{-# LINE 793 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_R16Float :: WGPUTextureFormat
wGPUTextureFormat_R16Float :: WGPUTextureFormat
wGPUTextureFormat_R16Float = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
9
{-# LINE 796 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RG8Unorm :: WGPUTextureFormat
wGPUTextureFormat_RG8Unorm :: WGPUTextureFormat
wGPUTextureFormat_RG8Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
10
{-# LINE 799 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RG8Snorm :: WGPUTextureFormat
wGPUTextureFormat_RG8Snorm :: WGPUTextureFormat
wGPUTextureFormat_RG8Snorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
11
{-# LINE 802 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RG8Uint :: WGPUTextureFormat
wGPUTextureFormat_RG8Uint :: WGPUTextureFormat
wGPUTextureFormat_RG8Uint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
12
{-# LINE 805 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RG8Sint :: WGPUTextureFormat
wGPUTextureFormat_RG8Sint :: WGPUTextureFormat
wGPUTextureFormat_RG8Sint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
13
{-# LINE 808 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_R32Float :: WGPUTextureFormat
wGPUTextureFormat_R32Float :: WGPUTextureFormat
wGPUTextureFormat_R32Float = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
14
{-# LINE 811 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_R32Uint :: WGPUTextureFormat
wGPUTextureFormat_R32Uint :: WGPUTextureFormat
wGPUTextureFormat_R32Uint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
15
{-# LINE 814 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_R32Sint :: WGPUTextureFormat
wGPUTextureFormat_R32Sint :: WGPUTextureFormat
wGPUTextureFormat_R32Sint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
16
{-# LINE 817 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RG16Unorm :: WGPUTextureFormat
wGPUTextureFormat_RG16Unorm :: WGPUTextureFormat
wGPUTextureFormat_RG16Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
17
{-# LINE 820 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RG16Snorm :: WGPUTextureFormat
wGPUTextureFormat_RG16Snorm :: WGPUTextureFormat
wGPUTextureFormat_RG16Snorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
18
{-# LINE 823 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RG16Uint :: WGPUTextureFormat
wGPUTextureFormat_RG16Uint :: WGPUTextureFormat
wGPUTextureFormat_RG16Uint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
19
{-# LINE 826 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RG16Sint :: WGPUTextureFormat
wGPUTextureFormat_RG16Sint :: WGPUTextureFormat
wGPUTextureFormat_RG16Sint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
20
{-# LINE 829 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RG16Float :: WGPUTextureFormat
wGPUTextureFormat_RG16Float :: WGPUTextureFormat
wGPUTextureFormat_RG16Float = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
21
{-# LINE 832 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGBA8Unorm :: WGPUTextureFormat
wGPUTextureFormat_RGBA8Unorm :: WGPUTextureFormat
wGPUTextureFormat_RGBA8Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
22
{-# LINE 835 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGBA8UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_RGBA8UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_RGBA8UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
23
{-# LINE 838 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGBA8Snorm :: WGPUTextureFormat
wGPUTextureFormat_RGBA8Snorm :: WGPUTextureFormat
wGPUTextureFormat_RGBA8Snorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
24
{-# LINE 841 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGBA8Uint :: WGPUTextureFormat
wGPUTextureFormat_RGBA8Uint :: WGPUTextureFormat
wGPUTextureFormat_RGBA8Uint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
25
{-# LINE 844 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGBA8Sint :: WGPUTextureFormat
wGPUTextureFormat_RGBA8Sint :: WGPUTextureFormat
wGPUTextureFormat_RGBA8Sint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
26
{-# LINE 847 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BGRA8Unorm :: WGPUTextureFormat
wGPUTextureFormat_BGRA8Unorm :: WGPUTextureFormat
wGPUTextureFormat_BGRA8Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
27
{-# LINE 850 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BGRA8UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_BGRA8UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_BGRA8UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
28
{-# LINE 853 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGB10A2Uint :: WGPUTextureFormat
wGPUTextureFormat_RGB10A2Uint :: WGPUTextureFormat
wGPUTextureFormat_RGB10A2Uint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
29
{-# LINE 856 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGB10A2Unorm :: WGPUTextureFormat
wGPUTextureFormat_RGB10A2Unorm :: WGPUTextureFormat
wGPUTextureFormat_RGB10A2Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
30
{-# LINE 859 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RG11B10Ufloat :: WGPUTextureFormat
wGPUTextureFormat_RG11B10Ufloat :: WGPUTextureFormat
wGPUTextureFormat_RG11B10Ufloat = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
31
{-# LINE 862 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGB9E5Ufloat :: WGPUTextureFormat
wGPUTextureFormat_RGB9E5Ufloat :: WGPUTextureFormat
wGPUTextureFormat_RGB9E5Ufloat = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
32
{-# LINE 865 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RG32Float :: WGPUTextureFormat
wGPUTextureFormat_RG32Float :: WGPUTextureFormat
wGPUTextureFormat_RG32Float = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
33
{-# LINE 868 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RG32Uint :: WGPUTextureFormat
wGPUTextureFormat_RG32Uint :: WGPUTextureFormat
wGPUTextureFormat_RG32Uint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
34
{-# LINE 871 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RG32Sint :: WGPUTextureFormat
wGPUTextureFormat_RG32Sint :: WGPUTextureFormat
wGPUTextureFormat_RG32Sint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
35
{-# LINE 874 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGBA16Unorm :: WGPUTextureFormat
wGPUTextureFormat_RGBA16Unorm :: WGPUTextureFormat
wGPUTextureFormat_RGBA16Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
36
{-# LINE 877 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGBA16Snorm :: WGPUTextureFormat
wGPUTextureFormat_RGBA16Snorm :: WGPUTextureFormat
wGPUTextureFormat_RGBA16Snorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
37
{-# LINE 880 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGBA16Uint :: WGPUTextureFormat
wGPUTextureFormat_RGBA16Uint :: WGPUTextureFormat
wGPUTextureFormat_RGBA16Uint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
38
{-# LINE 883 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGBA16Sint :: WGPUTextureFormat
wGPUTextureFormat_RGBA16Sint :: WGPUTextureFormat
wGPUTextureFormat_RGBA16Sint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
39
{-# LINE 886 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGBA16Float :: WGPUTextureFormat
wGPUTextureFormat_RGBA16Float :: WGPUTextureFormat
wGPUTextureFormat_RGBA16Float = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
40
{-# LINE 889 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGBA32Float :: WGPUTextureFormat
wGPUTextureFormat_RGBA32Float :: WGPUTextureFormat
wGPUTextureFormat_RGBA32Float = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
41
{-# LINE 892 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGBA32Uint :: WGPUTextureFormat
wGPUTextureFormat_RGBA32Uint :: WGPUTextureFormat
wGPUTextureFormat_RGBA32Uint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
42
{-# LINE 895 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_RGBA32Sint :: WGPUTextureFormat
wGPUTextureFormat_RGBA32Sint :: WGPUTextureFormat
wGPUTextureFormat_RGBA32Sint = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
43
{-# LINE 898 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_Stencil8 :: WGPUTextureFormat
wGPUTextureFormat_Stencil8 :: WGPUTextureFormat
wGPUTextureFormat_Stencil8 = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
44
{-# LINE 901 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_Depth16Unorm :: WGPUTextureFormat
wGPUTextureFormat_Depth16Unorm :: WGPUTextureFormat
wGPUTextureFormat_Depth16Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
45
{-# LINE 904 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_Depth24Plus :: WGPUTextureFormat
wGPUTextureFormat_Depth24Plus :: WGPUTextureFormat
wGPUTextureFormat_Depth24Plus = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
46
{-# LINE 907 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_Depth24PlusStencil8 :: WGPUTextureFormat
wGPUTextureFormat_Depth24PlusStencil8 :: WGPUTextureFormat
wGPUTextureFormat_Depth24PlusStencil8 = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
47
{-# LINE 910 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_Depth32Float :: WGPUTextureFormat
wGPUTextureFormat_Depth32Float :: WGPUTextureFormat
wGPUTextureFormat_Depth32Float = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
48
{-# LINE 913 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_Depth32FloatStencil8 :: WGPUTextureFormat
wGPUTextureFormat_Depth32FloatStencil8 :: WGPUTextureFormat
wGPUTextureFormat_Depth32FloatStencil8 = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
49
{-# LINE 916 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC1RGBAUnorm :: WGPUTextureFormat
wGPUTextureFormat_BC1RGBAUnorm :: WGPUTextureFormat
wGPUTextureFormat_BC1RGBAUnorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
50
{-# LINE 919 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC1RGBAUnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_BC1RGBAUnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_BC1RGBAUnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
51
{-# LINE 922 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC2RGBAUnorm :: WGPUTextureFormat
wGPUTextureFormat_BC2RGBAUnorm :: WGPUTextureFormat
wGPUTextureFormat_BC2RGBAUnorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
52
{-# LINE 925 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC2RGBAUnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_BC2RGBAUnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_BC2RGBAUnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
53
{-# LINE 928 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC3RGBAUnorm :: WGPUTextureFormat
wGPUTextureFormat_BC3RGBAUnorm :: WGPUTextureFormat
wGPUTextureFormat_BC3RGBAUnorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
54
{-# LINE 931 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC3RGBAUnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_BC3RGBAUnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_BC3RGBAUnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
55
{-# LINE 934 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC4RUnorm :: WGPUTextureFormat
wGPUTextureFormat_BC4RUnorm :: WGPUTextureFormat
wGPUTextureFormat_BC4RUnorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
56
{-# LINE 937 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC4RSnorm :: WGPUTextureFormat
wGPUTextureFormat_BC4RSnorm :: WGPUTextureFormat
wGPUTextureFormat_BC4RSnorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
57
{-# LINE 940 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC5RGUnorm :: WGPUTextureFormat
wGPUTextureFormat_BC5RGUnorm :: WGPUTextureFormat
wGPUTextureFormat_BC5RGUnorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
58
{-# LINE 943 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC5RGSnorm :: WGPUTextureFormat
wGPUTextureFormat_BC5RGSnorm :: WGPUTextureFormat
wGPUTextureFormat_BC5RGSnorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
59
{-# LINE 946 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC6HRGBUfloat :: WGPUTextureFormat
wGPUTextureFormat_BC6HRGBUfloat :: WGPUTextureFormat
wGPUTextureFormat_BC6HRGBUfloat = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
60
{-# LINE 949 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC6HRGBFloat :: WGPUTextureFormat
wGPUTextureFormat_BC6HRGBFloat :: WGPUTextureFormat
wGPUTextureFormat_BC6HRGBFloat = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
61
{-# LINE 952 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC7RGBAUnorm :: WGPUTextureFormat
wGPUTextureFormat_BC7RGBAUnorm :: WGPUTextureFormat
wGPUTextureFormat_BC7RGBAUnorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
62
{-# LINE 955 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_BC7RGBAUnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_BC7RGBAUnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_BC7RGBAUnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
63
{-# LINE 958 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ETC2RGB8Unorm :: WGPUTextureFormat
wGPUTextureFormat_ETC2RGB8Unorm :: WGPUTextureFormat
wGPUTextureFormat_ETC2RGB8Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
64
{-# LINE 961 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ETC2RGB8UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ETC2RGB8UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ETC2RGB8UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
65
{-# LINE 964 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ETC2RGB8A1Unorm :: WGPUTextureFormat
wGPUTextureFormat_ETC2RGB8A1Unorm :: WGPUTextureFormat
wGPUTextureFormat_ETC2RGB8A1Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
66
{-# LINE 967 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ETC2RGB8A1UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ETC2RGB8A1UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ETC2RGB8A1UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
67
{-# LINE 970 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ETC2RGBA8Unorm :: WGPUTextureFormat
wGPUTextureFormat_ETC2RGBA8Unorm :: WGPUTextureFormat
wGPUTextureFormat_ETC2RGBA8Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
68
{-# LINE 973 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ETC2RGBA8UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ETC2RGBA8UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ETC2RGBA8UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
69
{-# LINE 976 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_EACR11Unorm :: WGPUTextureFormat
wGPUTextureFormat_EACR11Unorm :: WGPUTextureFormat
wGPUTextureFormat_EACR11Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
70
{-# LINE 979 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_EACR11Snorm :: WGPUTextureFormat
wGPUTextureFormat_EACR11Snorm :: WGPUTextureFormat
wGPUTextureFormat_EACR11Snorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
71
{-# LINE 982 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_EACRG11Unorm :: WGPUTextureFormat
wGPUTextureFormat_EACRG11Unorm :: WGPUTextureFormat
wGPUTextureFormat_EACRG11Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
72
{-# LINE 985 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_EACRG11Snorm :: WGPUTextureFormat
wGPUTextureFormat_EACRG11Snorm :: WGPUTextureFormat
wGPUTextureFormat_EACRG11Snorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
73
{-# LINE 988 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC4x4Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC4x4Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC4x4Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
74
{-# LINE 991 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC4x4UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC4x4UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC4x4UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
75
{-# LINE 994 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC5x4Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC5x4Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC5x4Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
76
{-# LINE 997 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC5x4UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC5x4UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC5x4UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
77
{-# LINE 1000 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC5x5Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC5x5Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC5x5Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
78
{-# LINE 1003 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC5x5UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC5x5UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC5x5UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
79
{-# LINE 1006 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC6x5Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC6x5Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC6x5Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
80
{-# LINE 1009 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC6x5UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC6x5UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC6x5UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
81
{-# LINE 1012 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC6x6Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC6x6Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC6x6Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
82
{-# LINE 1015 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC6x6UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC6x6UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC6x6UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
83
{-# LINE 1018 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC8x5Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC8x5Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC8x5Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
84
{-# LINE 1021 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC8x5UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC8x5UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC8x5UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
85
{-# LINE 1024 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC8x6Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC8x6Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC8x6Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
86
{-# LINE 1027 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC8x6UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC8x6UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC8x6UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
87
{-# LINE 1030 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC8x8Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC8x8Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC8x8Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
88
{-# LINE 1033 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC8x8UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC8x8UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC8x8UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
89
{-# LINE 1036 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC10x5Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x5Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x5Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
90
{-# LINE 1039 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC10x5UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x5UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x5UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
91
{-# LINE 1042 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC10x6Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x6Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x6Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
92
{-# LINE 1045 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC10x6UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x6UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x6UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
93
{-# LINE 1048 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC10x8Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x8Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x8Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
94
{-# LINE 1051 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC10x8UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x8UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x8UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
95
{-# LINE 1054 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC10x10Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x10Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x10Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
96
{-# LINE 1057 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC10x10UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x10UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC10x10UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
97
{-# LINE 1060 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC12x10Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC12x10Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC12x10Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
98
{-# LINE 1063 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC12x10UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC12x10UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC12x10UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
99
{-# LINE 1066 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC12x12Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC12x12Unorm :: WGPUTextureFormat
wGPUTextureFormat_ASTC12x12Unorm = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
100
{-# LINE 1069 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_ASTC12x12UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC12x12UnormSrgb :: WGPUTextureFormat
wGPUTextureFormat_ASTC12x12UnormSrgb = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
101
{-# LINE 1072 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureFormat_Force32 :: WGPUTextureFormat
wGPUTextureFormat_Force32 :: WGPUTextureFormat
wGPUTextureFormat_Force32 = CUInt -> WGPUTextureFormat
WGPUTextureFormat CUInt
2147483647
{-# LINE 1075 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUTextureUsage = WGPUTextureUsage WGPUFlags deriving newtype (Int -> WGPUTextureUsage -> ShowS
[WGPUTextureUsage] -> ShowS
WGPUTextureUsage -> String
(Int -> WGPUTextureUsage -> ShowS)
-> (WGPUTextureUsage -> String)
-> ([WGPUTextureUsage] -> ShowS)
-> Show WGPUTextureUsage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUTextureUsage -> ShowS
showsPrec :: Int -> WGPUTextureUsage -> ShowS
$cshow :: WGPUTextureUsage -> String
show :: WGPUTextureUsage -> String
$cshowList :: [WGPUTextureUsage] -> ShowS
showList :: [WGPUTextureUsage] -> ShowS
Show, WGPUTextureUsage -> WGPUTextureUsage -> Bool
(WGPUTextureUsage -> WGPUTextureUsage -> Bool)
-> (WGPUTextureUsage -> WGPUTextureUsage -> Bool)
-> Eq WGPUTextureUsage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUTextureUsage -> WGPUTextureUsage -> Bool
== :: WGPUTextureUsage -> WGPUTextureUsage -> Bool
$c/= :: WGPUTextureUsage -> WGPUTextureUsage -> Bool
/= :: WGPUTextureUsage -> WGPUTextureUsage -> Bool
Eq, Ptr WGPUTextureUsage -> IO WGPUTextureUsage
Ptr WGPUTextureUsage -> Int -> IO WGPUTextureUsage
Ptr WGPUTextureUsage -> Int -> WGPUTextureUsage -> IO ()
Ptr WGPUTextureUsage -> WGPUTextureUsage -> IO ()
WGPUTextureUsage -> Int
(WGPUTextureUsage -> Int)
-> (WGPUTextureUsage -> Int)
-> (Ptr WGPUTextureUsage -> Int -> IO WGPUTextureUsage)
-> (Ptr WGPUTextureUsage -> Int -> WGPUTextureUsage -> IO ())
-> (forall b. Ptr b -> Int -> IO WGPUTextureUsage)
-> (forall b. Ptr b -> Int -> WGPUTextureUsage -> IO ())
-> (Ptr WGPUTextureUsage -> IO WGPUTextureUsage)
-> (Ptr WGPUTextureUsage -> WGPUTextureUsage -> IO ())
-> Storable WGPUTextureUsage
forall b. Ptr b -> Int -> IO WGPUTextureUsage
forall b. Ptr b -> Int -> WGPUTextureUsage -> 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
$csizeOf :: WGPUTextureUsage -> Int
sizeOf :: WGPUTextureUsage -> Int
$calignment :: WGPUTextureUsage -> Int
alignment :: WGPUTextureUsage -> Int
$cpeekElemOff :: Ptr WGPUTextureUsage -> Int -> IO WGPUTextureUsage
peekElemOff :: Ptr WGPUTextureUsage -> Int -> IO WGPUTextureUsage
$cpokeElemOff :: Ptr WGPUTextureUsage -> Int -> WGPUTextureUsage -> IO ()
pokeElemOff :: Ptr WGPUTextureUsage -> Int -> WGPUTextureUsage -> IO ()
$cpeekByteOff :: forall b. Ptr b -> Int -> IO WGPUTextureUsage
peekByteOff :: forall b. Ptr b -> Int -> IO WGPUTextureUsage
$cpokeByteOff :: forall b. Ptr b -> Int -> WGPUTextureUsage -> IO ()
pokeByteOff :: forall b. Ptr b -> Int -> WGPUTextureUsage -> IO ()
$cpeek :: Ptr WGPUTextureUsage -> IO WGPUTextureUsage
peek :: Ptr WGPUTextureUsage -> IO WGPUTextureUsage
$cpoke :: Ptr WGPUTextureUsage -> WGPUTextureUsage -> IO ()
poke :: Ptr WGPUTextureUsage -> WGPUTextureUsage -> IO ()
Storable, Integer -> WGPUTextureUsage
WGPUTextureUsage -> WGPUTextureUsage
WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
(WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage)
-> (WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage)
-> (WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage)
-> (WGPUTextureUsage -> WGPUTextureUsage)
-> (WGPUTextureUsage -> WGPUTextureUsage)
-> (WGPUTextureUsage -> WGPUTextureUsage)
-> (Integer -> WGPUTextureUsage)
-> Num WGPUTextureUsage
forall a.
(a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (Integer -> a)
-> Num a
$c+ :: WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
+ :: WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
$c- :: WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
- :: WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
$c* :: WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
* :: WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
$cnegate :: WGPUTextureUsage -> WGPUTextureUsage
negate :: WGPUTextureUsage -> WGPUTextureUsage
$cabs :: WGPUTextureUsage -> WGPUTextureUsage
abs :: WGPUTextureUsage -> WGPUTextureUsage
$csignum :: WGPUTextureUsage -> WGPUTextureUsage
signum :: WGPUTextureUsage -> WGPUTextureUsage
$cfromInteger :: Integer -> WGPUTextureUsage
fromInteger :: Integer -> WGPUTextureUsage
Num, Eq WGPUTextureUsage
WGPUTextureUsage
Eq WGPUTextureUsage =>
(WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage)
-> (WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage)
-> (WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage)
-> (WGPUTextureUsage -> WGPUTextureUsage)
-> (WGPUTextureUsage -> Int -> WGPUTextureUsage)
-> (WGPUTextureUsage -> Int -> WGPUTextureUsage)
-> WGPUTextureUsage
-> (Int -> WGPUTextureUsage)
-> (WGPUTextureUsage -> Int -> WGPUTextureUsage)
-> (WGPUTextureUsage -> Int -> WGPUTextureUsage)
-> (WGPUTextureUsage -> Int -> WGPUTextureUsage)
-> (WGPUTextureUsage -> Int -> Bool)
-> (WGPUTextureUsage -> Maybe Int)
-> (WGPUTextureUsage -> Int)
-> (WGPUTextureUsage -> Bool)
-> (WGPUTextureUsage -> Int -> WGPUTextureUsage)
-> (WGPUTextureUsage -> Int -> WGPUTextureUsage)
-> (WGPUTextureUsage -> Int -> WGPUTextureUsage)
-> (WGPUTextureUsage -> Int -> WGPUTextureUsage)
-> (WGPUTextureUsage -> Int -> WGPUTextureUsage)
-> (WGPUTextureUsage -> Int -> WGPUTextureUsage)
-> (WGPUTextureUsage -> Int)
-> Bits WGPUTextureUsage
Int -> WGPUTextureUsage
WGPUTextureUsage -> Bool
WGPUTextureUsage -> Int
WGPUTextureUsage -> Maybe Int
WGPUTextureUsage -> WGPUTextureUsage
WGPUTextureUsage -> Int -> Bool
WGPUTextureUsage -> Int -> WGPUTextureUsage
WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
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
$c.&. :: WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
.&. :: WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
$c.|. :: WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
.|. :: WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
$cxor :: WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
xor :: WGPUTextureUsage -> WGPUTextureUsage -> WGPUTextureUsage
$ccomplement :: WGPUTextureUsage -> WGPUTextureUsage
complement :: WGPUTextureUsage -> WGPUTextureUsage
$cshift :: WGPUTextureUsage -> Int -> WGPUTextureUsage
shift :: WGPUTextureUsage -> Int -> WGPUTextureUsage
$crotate :: WGPUTextureUsage -> Int -> WGPUTextureUsage
rotate :: WGPUTextureUsage -> Int -> WGPUTextureUsage
$czeroBits :: WGPUTextureUsage
zeroBits :: WGPUTextureUsage
$cbit :: Int -> WGPUTextureUsage
bit :: Int -> WGPUTextureUsage
$csetBit :: WGPUTextureUsage -> Int -> WGPUTextureUsage
setBit :: WGPUTextureUsage -> Int -> WGPUTextureUsage
$cclearBit :: WGPUTextureUsage -> Int -> WGPUTextureUsage
clearBit :: WGPUTextureUsage -> Int -> WGPUTextureUsage
$ccomplementBit :: WGPUTextureUsage -> Int -> WGPUTextureUsage
complementBit :: WGPUTextureUsage -> Int -> WGPUTextureUsage
$ctestBit :: WGPUTextureUsage -> Int -> Bool
testBit :: WGPUTextureUsage -> Int -> Bool
$cbitSizeMaybe :: WGPUTextureUsage -> Maybe Int
bitSizeMaybe :: WGPUTextureUsage -> Maybe Int
$cbitSize :: WGPUTextureUsage -> Int
bitSize :: WGPUTextureUsage -> Int
$cisSigned :: WGPUTextureUsage -> Bool
isSigned :: WGPUTextureUsage -> Bool
$cshiftL :: WGPUTextureUsage -> Int -> WGPUTextureUsage
shiftL :: WGPUTextureUsage -> Int -> WGPUTextureUsage
$cunsafeShiftL :: WGPUTextureUsage -> Int -> WGPUTextureUsage
unsafeShiftL :: WGPUTextureUsage -> Int -> WGPUTextureUsage
$cshiftR :: WGPUTextureUsage -> Int -> WGPUTextureUsage
shiftR :: WGPUTextureUsage -> Int -> WGPUTextureUsage
$cunsafeShiftR :: WGPUTextureUsage -> Int -> WGPUTextureUsage
unsafeShiftR :: WGPUTextureUsage -> Int -> WGPUTextureUsage
$crotateL :: WGPUTextureUsage -> Int -> WGPUTextureUsage
rotateL :: WGPUTextureUsage -> Int -> WGPUTextureUsage
$crotateR :: WGPUTextureUsage -> Int -> WGPUTextureUsage
rotateR :: WGPUTextureUsage -> Int -> WGPUTextureUsage
$cpopCount :: WGPUTextureUsage -> Int
popCount :: WGPUTextureUsage -> Int
Bits)
wGPUTextureUsage_None :: WGPUTextureUsage
wGPUTextureUsage_None :: WGPUTextureUsage
wGPUTextureUsage_None = WGPUFlags -> WGPUTextureUsage
WGPUTextureUsage (WGPUFlags -> WGPUTextureUsage) -> WGPUFlags -> WGPUTextureUsage
forall a b. (a -> b) -> a -> b
$ Word64 -> WGPUFlags
WGPUFlags Word64
0
{-# LINE 1080 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureUsage_CopySrc :: WGPUTextureUsage
wGPUTextureUsage_CopySrc :: WGPUTextureUsage
wGPUTextureUsage_CopySrc = WGPUFlags -> WGPUTextureUsage
WGPUTextureUsage (WGPUFlags -> WGPUTextureUsage) -> WGPUFlags -> WGPUTextureUsage
forall a b. (a -> b) -> a -> b
$ Word64 -> WGPUFlags
WGPUFlags Word64
1
{-# LINE 1083 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureUsage_CopyDst :: WGPUTextureUsage
wGPUTextureUsage_CopyDst :: WGPUTextureUsage
wGPUTextureUsage_CopyDst = WGPUFlags -> WGPUTextureUsage
WGPUTextureUsage (WGPUFlags -> WGPUTextureUsage) -> WGPUFlags -> WGPUTextureUsage
forall a b. (a -> b) -> a -> b
$ Word64 -> WGPUFlags
WGPUFlags Word64
2
{-# LINE 1086 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureUsage_TextureBinding :: WGPUTextureUsage
wGPUTextureUsage_TextureBinding :: WGPUTextureUsage
wGPUTextureUsage_TextureBinding = WGPUFlags -> WGPUTextureUsage
WGPUTextureUsage (WGPUFlags -> WGPUTextureUsage) -> WGPUFlags -> WGPUTextureUsage
forall a b. (a -> b) -> a -> b
$ Word64 -> WGPUFlags
WGPUFlags Word64
4
{-# LINE 1089 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureUsage_StorageBinding :: WGPUTextureUsage
wGPUTextureUsage_StorageBinding :: WGPUTextureUsage
wGPUTextureUsage_StorageBinding = WGPUFlags -> WGPUTextureUsage
WGPUTextureUsage (WGPUFlags -> WGPUTextureUsage) -> WGPUFlags -> WGPUTextureUsage
forall a b. (a -> b) -> a -> b
$ Word64 -> WGPUFlags
WGPUFlags Word64
8
{-# LINE 1092 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureUsage_RenderAttachment :: WGPUTextureUsage
wGPUTextureUsage_RenderAttachment :: WGPUTextureUsage
wGPUTextureUsage_RenderAttachment = WGPUFlags -> WGPUTextureUsage
WGPUTextureUsage (WGPUFlags -> WGPUTextureUsage) -> WGPUFlags -> WGPUTextureUsage
forall a b. (a -> b) -> a -> b
$ Word64 -> WGPUFlags
WGPUFlags Word64
16
{-# LINE 1095 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureUsage_TransientAttachment :: WGPUTextureUsage
wGPUTextureUsage_TransientAttachment :: WGPUTextureUsage
wGPUTextureUsage_TransientAttachment = WGPUFlags -> WGPUTextureUsage
WGPUTextureUsage (WGPUFlags -> WGPUTextureUsage) -> WGPUFlags -> WGPUTextureUsage
forall a b. (a -> b) -> a -> b
$ Word64 -> WGPUFlags
WGPUFlags Word64
32
{-# LINE 1098 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUPresentMode = WGPUPresentMode CUInt deriving (WGPUPresentMode -> WGPUPresentMode -> Bool
(WGPUPresentMode -> WGPUPresentMode -> Bool)
-> (WGPUPresentMode -> WGPUPresentMode -> Bool)
-> Eq WGPUPresentMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUPresentMode -> WGPUPresentMode -> Bool
== :: WGPUPresentMode -> WGPUPresentMode -> Bool
$c/= :: WGPUPresentMode -> WGPUPresentMode -> Bool
/= :: WGPUPresentMode -> WGPUPresentMode -> Bool
Eq, Eq WGPUPresentMode
Eq WGPUPresentMode =>
(WGPUPresentMode -> WGPUPresentMode -> Ordering)
-> (WGPUPresentMode -> WGPUPresentMode -> Bool)
-> (WGPUPresentMode -> WGPUPresentMode -> Bool)
-> (WGPUPresentMode -> WGPUPresentMode -> Bool)
-> (WGPUPresentMode -> WGPUPresentMode -> Bool)
-> (WGPUPresentMode -> WGPUPresentMode -> WGPUPresentMode)
-> (WGPUPresentMode -> WGPUPresentMode -> WGPUPresentMode)
-> Ord WGPUPresentMode
WGPUPresentMode -> WGPUPresentMode -> Bool
WGPUPresentMode -> WGPUPresentMode -> Ordering
WGPUPresentMode -> WGPUPresentMode -> WGPUPresentMode
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
$ccompare :: WGPUPresentMode -> WGPUPresentMode -> Ordering
compare :: WGPUPresentMode -> WGPUPresentMode -> Ordering
$c< :: WGPUPresentMode -> WGPUPresentMode -> Bool
< :: WGPUPresentMode -> WGPUPresentMode -> Bool
$c<= :: WGPUPresentMode -> WGPUPresentMode -> Bool
<= :: WGPUPresentMode -> WGPUPresentMode -> Bool
$c> :: WGPUPresentMode -> WGPUPresentMode -> Bool
> :: WGPUPresentMode -> WGPUPresentMode -> Bool
$c>= :: WGPUPresentMode -> WGPUPresentMode -> Bool
>= :: WGPUPresentMode -> WGPUPresentMode -> Bool
$cmax :: WGPUPresentMode -> WGPUPresentMode -> WGPUPresentMode
max :: WGPUPresentMode -> WGPUPresentMode -> WGPUPresentMode
$cmin :: WGPUPresentMode -> WGPUPresentMode -> WGPUPresentMode
min :: WGPUPresentMode -> WGPUPresentMode -> WGPUPresentMode
Ord, Int -> WGPUPresentMode -> ShowS
[WGPUPresentMode] -> ShowS
WGPUPresentMode -> String
(Int -> WGPUPresentMode -> ShowS)
-> (WGPUPresentMode -> String)
-> ([WGPUPresentMode] -> ShowS)
-> Show WGPUPresentMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUPresentMode -> ShowS
showsPrec :: Int -> WGPUPresentMode -> ShowS
$cshow :: WGPUPresentMode -> String
show :: WGPUPresentMode -> String
$cshowList :: [WGPUPresentMode] -> ShowS
showList :: [WGPUPresentMode] -> ShowS
Show)
instance Storable WGPUPresentMode where
alignment :: WGPUPresentMode -> Int
alignment WGPUPresentMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUPresentMode -> Int
sizeOf WGPUPresentMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUPresentMode -> IO WGPUPresentMode
peek Ptr WGPUPresentMode
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUPresentMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUPresentMode
ptr)
pure $ WGPUPresentMode x
poke :: Ptr WGPUPresentMode -> WGPUPresentMode -> IO ()
poke Ptr WGPUPresentMode
ptr (WGPUPresentMode CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUPresentMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUPresentMode
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUPresentMode_Undefined :: WGPUPresentMode
wGPUPresentMode_Undefined :: WGPUPresentMode
wGPUPresentMode_Undefined = CUInt -> WGPUPresentMode
WGPUPresentMode CUInt
0
{-# LINE 1114 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPresentMode_Fifo :: WGPUPresentMode
wGPUPresentMode_Fifo :: WGPUPresentMode
wGPUPresentMode_Fifo = CUInt -> WGPUPresentMode
WGPUPresentMode CUInt
1
{-# LINE 1117 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPresentMode_FifoRelaxed :: WGPUPresentMode
wGPUPresentMode_FifoRelaxed :: WGPUPresentMode
wGPUPresentMode_FifoRelaxed = CUInt -> WGPUPresentMode
WGPUPresentMode CUInt
2
{-# LINE 1120 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPresentMode_Immediate :: WGPUPresentMode
wGPUPresentMode_Immediate :: WGPUPresentMode
wGPUPresentMode_Immediate = CUInt -> WGPUPresentMode
WGPUPresentMode CUInt
3
{-# LINE 1123 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPresentMode_Mailbox :: WGPUPresentMode
wGPUPresentMode_Mailbox :: WGPUPresentMode
wGPUPresentMode_Mailbox = CUInt -> WGPUPresentMode
WGPUPresentMode CUInt
4
{-# LINE 1126 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPresentMode_Force32 :: WGPUPresentMode
wGPUPresentMode_Force32 :: WGPUPresentMode
wGPUPresentMode_Force32 = CUInt -> WGPUPresentMode
WGPUPresentMode CUInt
2147483647
{-# LINE 1129 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUCompositeAlphaMode = WGPUCompositeAlphaMode CUInt deriving (WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
(WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool)
-> (WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool)
-> Eq WGPUCompositeAlphaMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
== :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
$c/= :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
/= :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
Eq, Eq WGPUCompositeAlphaMode
Eq WGPUCompositeAlphaMode =>
(WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Ordering)
-> (WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool)
-> (WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool)
-> (WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool)
-> (WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool)
-> (WGPUCompositeAlphaMode
-> WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode)
-> (WGPUCompositeAlphaMode
-> WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode)
-> Ord WGPUCompositeAlphaMode
WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Ordering
WGPUCompositeAlphaMode
-> WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode
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
$ccompare :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Ordering
compare :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Ordering
$c< :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
< :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
$c<= :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
<= :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
$c> :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
> :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
$c>= :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
>= :: WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> Bool
$cmax :: WGPUCompositeAlphaMode
-> WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode
max :: WGPUCompositeAlphaMode
-> WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode
$cmin :: WGPUCompositeAlphaMode
-> WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode
min :: WGPUCompositeAlphaMode
-> WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode
Ord, Int -> WGPUCompositeAlphaMode -> ShowS
[WGPUCompositeAlphaMode] -> ShowS
WGPUCompositeAlphaMode -> String
(Int -> WGPUCompositeAlphaMode -> ShowS)
-> (WGPUCompositeAlphaMode -> String)
-> ([WGPUCompositeAlphaMode] -> ShowS)
-> Show WGPUCompositeAlphaMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUCompositeAlphaMode -> ShowS
showsPrec :: Int -> WGPUCompositeAlphaMode -> ShowS
$cshow :: WGPUCompositeAlphaMode -> String
show :: WGPUCompositeAlphaMode -> String
$cshowList :: [WGPUCompositeAlphaMode] -> ShowS
showList :: [WGPUCompositeAlphaMode] -> ShowS
Show)
instance Storable WGPUCompositeAlphaMode where
alignment :: WGPUCompositeAlphaMode -> Int
alignment WGPUCompositeAlphaMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUCompositeAlphaMode -> Int
sizeOf WGPUCompositeAlphaMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUCompositeAlphaMode -> IO WGPUCompositeAlphaMode
peek Ptr WGPUCompositeAlphaMode
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUCompositeAlphaMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUCompositeAlphaMode
ptr)
pure $ WGPUCompositeAlphaMode x
poke :: Ptr WGPUCompositeAlphaMode -> WGPUCompositeAlphaMode -> IO ()
poke Ptr WGPUCompositeAlphaMode
ptr (WGPUCompositeAlphaMode CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUCompositeAlphaMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUCompositeAlphaMode
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUCompositeAlphaMode_Auto :: WGPUCompositeAlphaMode
wGPUCompositeAlphaMode_Auto :: WGPUCompositeAlphaMode
wGPUCompositeAlphaMode_Auto = CUInt -> WGPUCompositeAlphaMode
WGPUCompositeAlphaMode CUInt
0
{-# LINE 1145 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompositeAlphaMode_Opaque :: WGPUCompositeAlphaMode
wGPUCompositeAlphaMode_Opaque :: WGPUCompositeAlphaMode
wGPUCompositeAlphaMode_Opaque = CUInt -> WGPUCompositeAlphaMode
WGPUCompositeAlphaMode CUInt
1
{-# LINE 1148 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompositeAlphaMode_Premultiplied :: WGPUCompositeAlphaMode
wGPUCompositeAlphaMode_Premultiplied :: WGPUCompositeAlphaMode
wGPUCompositeAlphaMode_Premultiplied = CUInt -> WGPUCompositeAlphaMode
WGPUCompositeAlphaMode CUInt
2
{-# LINE 1151 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompositeAlphaMode_Unpremultiplied :: WGPUCompositeAlphaMode
wGPUCompositeAlphaMode_Unpremultiplied :: WGPUCompositeAlphaMode
wGPUCompositeAlphaMode_Unpremultiplied = CUInt -> WGPUCompositeAlphaMode
WGPUCompositeAlphaMode CUInt
3
{-# LINE 1154 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompositeAlphaMode_Inherit :: WGPUCompositeAlphaMode
wGPUCompositeAlphaMode_Inherit :: WGPUCompositeAlphaMode
wGPUCompositeAlphaMode_Inherit = CUInt -> WGPUCompositeAlphaMode
WGPUCompositeAlphaMode CUInt
4
{-# LINE 1157 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompositeAlphaMode_Force32 :: WGPUCompositeAlphaMode
wGPUCompositeAlphaMode_Force32 :: WGPUCompositeAlphaMode
wGPUCompositeAlphaMode_Force32 = CUInt -> WGPUCompositeAlphaMode
WGPUCompositeAlphaMode CUInt
2147483647
{-# LINE 1160 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUPrimitiveTopology = WGPUPrimitiveTopology CUInt deriving (WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
(WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool)
-> (WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool)
-> Eq WGPUPrimitiveTopology
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
== :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
$c/= :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
/= :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
Eq, Eq WGPUPrimitiveTopology
Eq WGPUPrimitiveTopology =>
(WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Ordering)
-> (WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool)
-> (WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool)
-> (WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool)
-> (WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool)
-> (WGPUPrimitiveTopology
-> WGPUPrimitiveTopology -> WGPUPrimitiveTopology)
-> (WGPUPrimitiveTopology
-> WGPUPrimitiveTopology -> WGPUPrimitiveTopology)
-> Ord WGPUPrimitiveTopology
WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Ordering
WGPUPrimitiveTopology
-> WGPUPrimitiveTopology -> WGPUPrimitiveTopology
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
$ccompare :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Ordering
compare :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Ordering
$c< :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
< :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
$c<= :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
<= :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
$c> :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
> :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
$c>= :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
>= :: WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> Bool
$cmax :: WGPUPrimitiveTopology
-> WGPUPrimitiveTopology -> WGPUPrimitiveTopology
max :: WGPUPrimitiveTopology
-> WGPUPrimitiveTopology -> WGPUPrimitiveTopology
$cmin :: WGPUPrimitiveTopology
-> WGPUPrimitiveTopology -> WGPUPrimitiveTopology
min :: WGPUPrimitiveTopology
-> WGPUPrimitiveTopology -> WGPUPrimitiveTopology
Ord, Int -> WGPUPrimitiveTopology -> ShowS
[WGPUPrimitiveTopology] -> ShowS
WGPUPrimitiveTopology -> String
(Int -> WGPUPrimitiveTopology -> ShowS)
-> (WGPUPrimitiveTopology -> String)
-> ([WGPUPrimitiveTopology] -> ShowS)
-> Show WGPUPrimitiveTopology
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUPrimitiveTopology -> ShowS
showsPrec :: Int -> WGPUPrimitiveTopology -> ShowS
$cshow :: WGPUPrimitiveTopology -> String
show :: WGPUPrimitiveTopology -> String
$cshowList :: [WGPUPrimitiveTopology] -> ShowS
showList :: [WGPUPrimitiveTopology] -> ShowS
Show)
instance Storable WGPUPrimitiveTopology where
alignment :: WGPUPrimitiveTopology -> Int
alignment WGPUPrimitiveTopology
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUPrimitiveTopology -> Int
sizeOf WGPUPrimitiveTopology
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUPrimitiveTopology -> IO WGPUPrimitiveTopology
peek Ptr WGPUPrimitiveTopology
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUPrimitiveTopology -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUPrimitiveTopology
ptr)
pure $ WGPUPrimitiveTopology x
poke :: Ptr WGPUPrimitiveTopology -> WGPUPrimitiveTopology -> IO ()
poke Ptr WGPUPrimitiveTopology
ptr (WGPUPrimitiveTopology CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUPrimitiveTopology -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUPrimitiveTopology
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUPrimitiveTopology_Undefined :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_Undefined :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_Undefined = CUInt -> WGPUPrimitiveTopology
WGPUPrimitiveTopology CUInt
0
{-# LINE 1175 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPrimitiveTopology_PointList :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_PointList :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_PointList = CUInt -> WGPUPrimitiveTopology
WGPUPrimitiveTopology CUInt
1
{-# LINE 1178 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPrimitiveTopology_LineList :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_LineList :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_LineList = CUInt -> WGPUPrimitiveTopology
WGPUPrimitiveTopology CUInt
2
{-# LINE 1181 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPrimitiveTopology_LineStrip :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_LineStrip :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_LineStrip = CUInt -> WGPUPrimitiveTopology
WGPUPrimitiveTopology CUInt
3
{-# LINE 1184 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPrimitiveTopology_TriangleList :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_TriangleList :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_TriangleList = CUInt -> WGPUPrimitiveTopology
WGPUPrimitiveTopology CUInt
4
{-# LINE 1187 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPrimitiveTopology_TriangleStrip :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_TriangleStrip :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_TriangleStrip = CUInt -> WGPUPrimitiveTopology
WGPUPrimitiveTopology CUInt
5
{-# LINE 1190 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUPrimitiveTopology_Force32 :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_Force32 :: WGPUPrimitiveTopology
wGPUPrimitiveTopology_Force32 = CUInt -> WGPUPrimitiveTopology
WGPUPrimitiveTopology CUInt
2147483647
{-# LINE 1193 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUIndexFormat = WGPUIndexFormat CUInt deriving (WGPUIndexFormat -> WGPUIndexFormat -> Bool
(WGPUIndexFormat -> WGPUIndexFormat -> Bool)
-> (WGPUIndexFormat -> WGPUIndexFormat -> Bool)
-> Eq WGPUIndexFormat
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUIndexFormat -> WGPUIndexFormat -> Bool
== :: WGPUIndexFormat -> WGPUIndexFormat -> Bool
$c/= :: WGPUIndexFormat -> WGPUIndexFormat -> Bool
/= :: WGPUIndexFormat -> WGPUIndexFormat -> Bool
Eq, Eq WGPUIndexFormat
Eq WGPUIndexFormat =>
(WGPUIndexFormat -> WGPUIndexFormat -> Ordering)
-> (WGPUIndexFormat -> WGPUIndexFormat -> Bool)
-> (WGPUIndexFormat -> WGPUIndexFormat -> Bool)
-> (WGPUIndexFormat -> WGPUIndexFormat -> Bool)
-> (WGPUIndexFormat -> WGPUIndexFormat -> Bool)
-> (WGPUIndexFormat -> WGPUIndexFormat -> WGPUIndexFormat)
-> (WGPUIndexFormat -> WGPUIndexFormat -> WGPUIndexFormat)
-> Ord WGPUIndexFormat
WGPUIndexFormat -> WGPUIndexFormat -> Bool
WGPUIndexFormat -> WGPUIndexFormat -> Ordering
WGPUIndexFormat -> WGPUIndexFormat -> WGPUIndexFormat
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
$ccompare :: WGPUIndexFormat -> WGPUIndexFormat -> Ordering
compare :: WGPUIndexFormat -> WGPUIndexFormat -> Ordering
$c< :: WGPUIndexFormat -> WGPUIndexFormat -> Bool
< :: WGPUIndexFormat -> WGPUIndexFormat -> Bool
$c<= :: WGPUIndexFormat -> WGPUIndexFormat -> Bool
<= :: WGPUIndexFormat -> WGPUIndexFormat -> Bool
$c> :: WGPUIndexFormat -> WGPUIndexFormat -> Bool
> :: WGPUIndexFormat -> WGPUIndexFormat -> Bool
$c>= :: WGPUIndexFormat -> WGPUIndexFormat -> Bool
>= :: WGPUIndexFormat -> WGPUIndexFormat -> Bool
$cmax :: WGPUIndexFormat -> WGPUIndexFormat -> WGPUIndexFormat
max :: WGPUIndexFormat -> WGPUIndexFormat -> WGPUIndexFormat
$cmin :: WGPUIndexFormat -> WGPUIndexFormat -> WGPUIndexFormat
min :: WGPUIndexFormat -> WGPUIndexFormat -> WGPUIndexFormat
Ord, Int -> WGPUIndexFormat -> ShowS
[WGPUIndexFormat] -> ShowS
WGPUIndexFormat -> String
(Int -> WGPUIndexFormat -> ShowS)
-> (WGPUIndexFormat -> String)
-> ([WGPUIndexFormat] -> ShowS)
-> Show WGPUIndexFormat
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUIndexFormat -> ShowS
showsPrec :: Int -> WGPUIndexFormat -> ShowS
$cshow :: WGPUIndexFormat -> String
show :: WGPUIndexFormat -> String
$cshowList :: [WGPUIndexFormat] -> ShowS
showList :: [WGPUIndexFormat] -> ShowS
Show)
instance Storable WGPUIndexFormat where
alignment :: WGPUIndexFormat -> Int
alignment WGPUIndexFormat
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUIndexFormat -> Int
sizeOf WGPUIndexFormat
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUIndexFormat -> IO WGPUIndexFormat
peek Ptr WGPUIndexFormat
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUIndexFormat -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUIndexFormat
ptr)
pure $ WGPUIndexFormat x
poke :: Ptr WGPUIndexFormat -> WGPUIndexFormat -> IO ()
poke Ptr WGPUIndexFormat
ptr (WGPUIndexFormat CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUIndexFormat -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUIndexFormat
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUIndexFormat_Undefined :: WGPUIndexFormat
wGPUIndexFormat_Undefined :: WGPUIndexFormat
wGPUIndexFormat_Undefined = CUInt -> WGPUIndexFormat
WGPUIndexFormat CUInt
0
{-# LINE 1208 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUIndexFormat_Uint16 :: WGPUIndexFormat
wGPUIndexFormat_Uint16 :: WGPUIndexFormat
wGPUIndexFormat_Uint16 = CUInt -> WGPUIndexFormat
WGPUIndexFormat CUInt
1
{-# LINE 1211 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUIndexFormat_Uint32 :: WGPUIndexFormat
wGPUIndexFormat_Uint32 :: WGPUIndexFormat
wGPUIndexFormat_Uint32 = CUInt -> WGPUIndexFormat
WGPUIndexFormat CUInt
2
{-# LINE 1214 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUIndexFormat_Force32 :: WGPUIndexFormat
wGPUIndexFormat_Force32 :: WGPUIndexFormat
wGPUIndexFormat_Force32 = CUInt -> WGPUIndexFormat
WGPUIndexFormat CUInt
2147483647
{-# LINE 1217 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUFrontFace = WGPUFrontFace CUInt deriving (Eq, Ord, Show)
instance Storable WGPUFrontFace where
alignment :: WGPUFrontFace -> Int
alignment WGPUFrontFace
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUFrontFace -> Int
sizeOf WGPUFrontFace
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUFrontFace -> IO WGPUFrontFace
peek Ptr WGPUFrontFace
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUFrontFace -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUFrontFace
ptr)
pure $ WGPUFrontFace x
poke :: Ptr WGPUFrontFace -> WGPUFrontFace -> IO ()
poke Ptr WGPUFrontFace
ptr (WGPUFrontFace CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUFrontFace -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUFrontFace
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUFrontFace_Undefined :: WGPUFrontFace
wGPUFrontFace_Undefined :: WGPUFrontFace
wGPUFrontFace_Undefined = CUInt -> WGPUFrontFace
WGPUFrontFace CUInt
0
{-# LINE 1231 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUFrontFace_CCW :: WGPUFrontFace
wGPUFrontFace_CCW :: WGPUFrontFace
wGPUFrontFace_CCW = CUInt -> WGPUFrontFace
WGPUFrontFace CUInt
1
{-# LINE 1234 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUFrontFace_CW :: WGPUFrontFace
wGPUFrontFace_CW :: WGPUFrontFace
wGPUFrontFace_CW = CUInt -> WGPUFrontFace
WGPUFrontFace CUInt
2
{-# LINE 1237 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUFrontFace_Force32 :: WGPUFrontFace
wGPUFrontFace_Force32 :: WGPUFrontFace
wGPUFrontFace_Force32 = CUInt -> WGPUFrontFace
WGPUFrontFace CUInt
2147483647
{-# LINE 1240 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUCullMode = WGPUCullMode CUInt deriving (WGPUCullMode -> WGPUCullMode -> Bool
(WGPUCullMode -> WGPUCullMode -> Bool)
-> (WGPUCullMode -> WGPUCullMode -> Bool) -> Eq WGPUCullMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUCullMode -> WGPUCullMode -> Bool
== :: WGPUCullMode -> WGPUCullMode -> Bool
$c/= :: WGPUCullMode -> WGPUCullMode -> Bool
/= :: WGPUCullMode -> WGPUCullMode -> Bool
Eq, Eq WGPUCullMode
Eq WGPUCullMode =>
(WGPUCullMode -> WGPUCullMode -> Ordering)
-> (WGPUCullMode -> WGPUCullMode -> Bool)
-> (WGPUCullMode -> WGPUCullMode -> Bool)
-> (WGPUCullMode -> WGPUCullMode -> Bool)
-> (WGPUCullMode -> WGPUCullMode -> Bool)
-> (WGPUCullMode -> WGPUCullMode -> WGPUCullMode)
-> (WGPUCullMode -> WGPUCullMode -> WGPUCullMode)
-> Ord WGPUCullMode
WGPUCullMode -> WGPUCullMode -> Bool
WGPUCullMode -> WGPUCullMode -> Ordering
WGPUCullMode -> WGPUCullMode -> WGPUCullMode
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
$ccompare :: WGPUCullMode -> WGPUCullMode -> Ordering
compare :: WGPUCullMode -> WGPUCullMode -> Ordering
$c< :: WGPUCullMode -> WGPUCullMode -> Bool
< :: WGPUCullMode -> WGPUCullMode -> Bool
$c<= :: WGPUCullMode -> WGPUCullMode -> Bool
<= :: WGPUCullMode -> WGPUCullMode -> Bool
$c> :: WGPUCullMode -> WGPUCullMode -> Bool
> :: WGPUCullMode -> WGPUCullMode -> Bool
$c>= :: WGPUCullMode -> WGPUCullMode -> Bool
>= :: WGPUCullMode -> WGPUCullMode -> Bool
$cmax :: WGPUCullMode -> WGPUCullMode -> WGPUCullMode
max :: WGPUCullMode -> WGPUCullMode -> WGPUCullMode
$cmin :: WGPUCullMode -> WGPUCullMode -> WGPUCullMode
min :: WGPUCullMode -> WGPUCullMode -> WGPUCullMode
Ord, Int -> WGPUCullMode -> ShowS
[WGPUCullMode] -> ShowS
WGPUCullMode -> String
(Int -> WGPUCullMode -> ShowS)
-> (WGPUCullMode -> String)
-> ([WGPUCullMode] -> ShowS)
-> Show WGPUCullMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUCullMode -> ShowS
showsPrec :: Int -> WGPUCullMode -> ShowS
$cshow :: WGPUCullMode -> String
show :: WGPUCullMode -> String
$cshowList :: [WGPUCullMode] -> ShowS
showList :: [WGPUCullMode] -> ShowS
Show)
instance Storable WGPUCullMode where
alignment :: WGPUCullMode -> Int
alignment WGPUCullMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUCullMode -> Int
sizeOf WGPUCullMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUCullMode -> IO WGPUCullMode
peek Ptr WGPUCullMode
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUCullMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUCullMode
ptr)
pure $ WGPUCullMode x
poke :: Ptr WGPUCullMode -> WGPUCullMode -> IO ()
poke Ptr WGPUCullMode
ptr (WGPUCullMode CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUCullMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUCullMode
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUCullMode_Undefined :: WGPUCullMode
wGPUCullMode_Undefined :: WGPUCullMode
wGPUCullMode_Undefined = CUInt -> WGPUCullMode
WGPUCullMode CUInt
0
{-# LINE 1256 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCullMode_None :: WGPUCullMode
wGPUCullMode_None :: WGPUCullMode
wGPUCullMode_None = CUInt -> WGPUCullMode
WGPUCullMode CUInt
1
{-# LINE 1259 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCullMode_Front :: WGPUCullMode
wGPUCullMode_Front :: WGPUCullMode
wGPUCullMode_Front = CUInt -> WGPUCullMode
WGPUCullMode CUInt
2
{-# LINE 1262 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCullMode_Back :: WGPUCullMode
wGPUCullMode_Back :: WGPUCullMode
wGPUCullMode_Back = CUInt -> WGPUCullMode
WGPUCullMode CUInt
3
{-# LINE 1265 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCullMode_Force32 :: WGPUCullMode
wGPUCullMode_Force32 :: WGPUCullMode
wGPUCullMode_Force32 = CUInt -> WGPUCullMode
WGPUCullMode CUInt
2147483647
{-# LINE 1268 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUColorWriteMask = WGPUColorWriteMask WGPUFlags deriving newtype (Int -> WGPUColorWriteMask -> ShowS
[WGPUColorWriteMask] -> ShowS
WGPUColorWriteMask -> String
(Int -> WGPUColorWriteMask -> ShowS)
-> (WGPUColorWriteMask -> String)
-> ([WGPUColorWriteMask] -> ShowS)
-> Show WGPUColorWriteMask
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUColorWriteMask -> ShowS
showsPrec :: Int -> WGPUColorWriteMask -> ShowS
$cshow :: WGPUColorWriteMask -> String
show :: WGPUColorWriteMask -> String
$cshowList :: [WGPUColorWriteMask] -> ShowS
showList :: [WGPUColorWriteMask] -> ShowS
Show, WGPUColorWriteMask -> WGPUColorWriteMask -> Bool
(WGPUColorWriteMask -> WGPUColorWriteMask -> Bool)
-> (WGPUColorWriteMask -> WGPUColorWriteMask -> Bool)
-> Eq WGPUColorWriteMask
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUColorWriteMask -> WGPUColorWriteMask -> Bool
== :: WGPUColorWriteMask -> WGPUColorWriteMask -> Bool
$c/= :: WGPUColorWriteMask -> WGPUColorWriteMask -> Bool
/= :: WGPUColorWriteMask -> WGPUColorWriteMask -> Bool
Eq, Ptr WGPUColorWriteMask -> IO WGPUColorWriteMask
Ptr WGPUColorWriteMask -> Int -> IO WGPUColorWriteMask
Ptr WGPUColorWriteMask -> Int -> WGPUColorWriteMask -> IO ()
Ptr WGPUColorWriteMask -> WGPUColorWriteMask -> IO ()
WGPUColorWriteMask -> Int
(WGPUColorWriteMask -> Int)
-> (WGPUColorWriteMask -> Int)
-> (Ptr WGPUColorWriteMask -> Int -> IO WGPUColorWriteMask)
-> (Ptr WGPUColorWriteMask -> Int -> WGPUColorWriteMask -> IO ())
-> (forall b. Ptr b -> Int -> IO WGPUColorWriteMask)
-> (forall b. Ptr b -> Int -> WGPUColorWriteMask -> IO ())
-> (Ptr WGPUColorWriteMask -> IO WGPUColorWriteMask)
-> (Ptr WGPUColorWriteMask -> WGPUColorWriteMask -> IO ())
-> Storable WGPUColorWriteMask
forall b. Ptr b -> Int -> IO WGPUColorWriteMask
forall b. Ptr b -> Int -> WGPUColorWriteMask -> 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
$csizeOf :: WGPUColorWriteMask -> Int
sizeOf :: WGPUColorWriteMask -> Int
$calignment :: WGPUColorWriteMask -> Int
alignment :: WGPUColorWriteMask -> Int
$cpeekElemOff :: Ptr WGPUColorWriteMask -> Int -> IO WGPUColorWriteMask
peekElemOff :: Ptr WGPUColorWriteMask -> Int -> IO WGPUColorWriteMask
$cpokeElemOff :: Ptr WGPUColorWriteMask -> Int -> WGPUColorWriteMask -> IO ()
pokeElemOff :: Ptr WGPUColorWriteMask -> Int -> WGPUColorWriteMask -> IO ()
$cpeekByteOff :: forall b. Ptr b -> Int -> IO WGPUColorWriteMask
peekByteOff :: forall b. Ptr b -> Int -> IO WGPUColorWriteMask
$cpokeByteOff :: forall b. Ptr b -> Int -> WGPUColorWriteMask -> IO ()
pokeByteOff :: forall b. Ptr b -> Int -> WGPUColorWriteMask -> IO ()
$cpeek :: Ptr WGPUColorWriteMask -> IO WGPUColorWriteMask
peek :: Ptr WGPUColorWriteMask -> IO WGPUColorWriteMask
$cpoke :: Ptr WGPUColorWriteMask -> WGPUColorWriteMask -> IO ()
poke :: Ptr WGPUColorWriteMask -> WGPUColorWriteMask -> IO ()
Storable, Integer -> WGPUColorWriteMask
WGPUColorWriteMask -> WGPUColorWriteMask
WGPUColorWriteMask -> WGPUColorWriteMask -> WGPUColorWriteMask
(WGPUColorWriteMask -> WGPUColorWriteMask -> WGPUColorWriteMask)
-> (WGPUColorWriteMask -> WGPUColorWriteMask -> WGPUColorWriteMask)
-> (WGPUColorWriteMask -> WGPUColorWriteMask -> WGPUColorWriteMask)
-> (WGPUColorWriteMask -> WGPUColorWriteMask)
-> (WGPUColorWriteMask -> WGPUColorWriteMask)
-> (WGPUColorWriteMask -> WGPUColorWriteMask)
-> (Integer -> WGPUColorWriteMask)
-> Num WGPUColorWriteMask
forall a.
(a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (Integer -> a)
-> Num a
$c+ :: WGPUColorWriteMask -> WGPUColorWriteMask -> WGPUColorWriteMask
+ :: WGPUColorWriteMask -> WGPUColorWriteMask -> WGPUColorWriteMask
$c- :: WGPUColorWriteMask -> WGPUColorWriteMask -> WGPUColorWriteMask
- :: WGPUColorWriteMask -> WGPUColorWriteMask -> WGPUColorWriteMask
$c* :: WGPUColorWriteMask -> WGPUColorWriteMask -> WGPUColorWriteMask
* :: WGPUColorWriteMask -> WGPUColorWriteMask -> WGPUColorWriteMask
$cnegate :: WGPUColorWriteMask -> WGPUColorWriteMask
negate :: WGPUColorWriteMask -> WGPUColorWriteMask
$cabs :: WGPUColorWriteMask -> WGPUColorWriteMask
abs :: WGPUColorWriteMask -> WGPUColorWriteMask
$csignum :: WGPUColorWriteMask -> WGPUColorWriteMask
signum :: WGPUColorWriteMask -> WGPUColorWriteMask
$cfromInteger :: Integer -> WGPUColorWriteMask
fromInteger :: Integer -> WGPUColorWriteMask
Num)
wGPUColorWriteMask_None :: WGPUColorWriteMask
wGPUColorWriteMask_None :: WGPUColorWriteMask
wGPUColorWriteMask_None = WGPUFlags -> WGPUColorWriteMask
WGPUColorWriteMask (WGPUFlags -> WGPUColorWriteMask)
-> WGPUFlags -> WGPUColorWriteMask
forall a b. (a -> b) -> a -> b
$ Word64 -> WGPUFlags
WGPUFlags Word64
0
{-# LINE 1273 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUColorWriteMask_Red :: WGPUColorWriteMask
wGPUColorWriteMask_Red :: WGPUColorWriteMask
wGPUColorWriteMask_Red = WGPUFlags -> WGPUColorWriteMask
WGPUColorWriteMask (WGPUFlags -> WGPUColorWriteMask)
-> WGPUFlags -> WGPUColorWriteMask
forall a b. (a -> b) -> a -> b
$ Word64 -> WGPUFlags
WGPUFlags Word64
1
{-# LINE 1276 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUColorWriteMask_Green :: WGPUColorWriteMask
wGPUColorWriteMask_Green :: WGPUColorWriteMask
wGPUColorWriteMask_Green = WGPUFlags -> WGPUColorWriteMask
WGPUColorWriteMask (WGPUFlags -> WGPUColorWriteMask)
-> WGPUFlags -> WGPUColorWriteMask
forall a b. (a -> b) -> a -> b
$ Word64 -> WGPUFlags
WGPUFlags Word64
2
{-# LINE 1279 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUColorWriteMask_Blue :: WGPUColorWriteMask
wGPUColorWriteMask_Blue :: WGPUColorWriteMask
wGPUColorWriteMask_Blue = WGPUFlags -> WGPUColorWriteMask
WGPUColorWriteMask (WGPUFlags -> WGPUColorWriteMask)
-> WGPUFlags -> WGPUColorWriteMask
forall a b. (a -> b) -> a -> b
$ Word64 -> WGPUFlags
WGPUFlags Word64
4
{-# LINE 1282 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUColorWriteMask_Alpha :: WGPUColorWriteMask
wGPUColorWriteMask_Alpha :: WGPUColorWriteMask
wGPUColorWriteMask_Alpha = WGPUFlags -> WGPUColorWriteMask
WGPUColorWriteMask (WGPUFlags -> WGPUColorWriteMask)
-> WGPUFlags -> WGPUColorWriteMask
forall a b. (a -> b) -> a -> b
$ Word64 -> WGPUFlags
WGPUFlags Word64
8
{-# LINE 1285 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUColorWriteMask_All :: WGPUColorWriteMask
wGPUColorWriteMask_All :: WGPUColorWriteMask
wGPUColorWriteMask_All = WGPUFlags -> WGPUColorWriteMask
WGPUColorWriteMask (WGPUFlags -> WGPUColorWriteMask)
-> WGPUFlags -> WGPUColorWriteMask
forall a b. (a -> b) -> a -> b
$ Word64 -> WGPUFlags
WGPUFlags Word64
15
{-# LINE 1288 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUSurfaceGetCurrentTextureStatus = WGPUSurfaceGetCurrentTextureStatus CUInt deriving (WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
(WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool)
-> (WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool)
-> Eq WGPUSurfaceGetCurrentTextureStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
== :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
$c/= :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
/= :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
Eq, Eq WGPUSurfaceGetCurrentTextureStatus
Eq WGPUSurfaceGetCurrentTextureStatus =>
(WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Ordering)
-> (WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool)
-> (WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool)
-> (WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool)
-> (WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool)
-> (WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus)
-> (WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus)
-> Ord WGPUSurfaceGetCurrentTextureStatus
WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Ordering
WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus
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
$ccompare :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Ordering
compare :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Ordering
$c< :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
< :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
$c<= :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
<= :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
$c> :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
> :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
$c>= :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
>= :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> Bool
$cmax :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus
max :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus
$cmin :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus
min :: WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus
Ord, Int -> WGPUSurfaceGetCurrentTextureStatus -> ShowS
[WGPUSurfaceGetCurrentTextureStatus] -> ShowS
WGPUSurfaceGetCurrentTextureStatus -> String
(Int -> WGPUSurfaceGetCurrentTextureStatus -> ShowS)
-> (WGPUSurfaceGetCurrentTextureStatus -> String)
-> ([WGPUSurfaceGetCurrentTextureStatus] -> ShowS)
-> Show WGPUSurfaceGetCurrentTextureStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUSurfaceGetCurrentTextureStatus -> ShowS
showsPrec :: Int -> WGPUSurfaceGetCurrentTextureStatus -> ShowS
$cshow :: WGPUSurfaceGetCurrentTextureStatus -> String
show :: WGPUSurfaceGetCurrentTextureStatus -> String
$cshowList :: [WGPUSurfaceGetCurrentTextureStatus] -> ShowS
showList :: [WGPUSurfaceGetCurrentTextureStatus] -> ShowS
Show)
instance Storable WGPUSurfaceGetCurrentTextureStatus where
alignment :: WGPUSurfaceGetCurrentTextureStatus -> Int
alignment WGPUSurfaceGetCurrentTextureStatus
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUSurfaceGetCurrentTextureStatus -> Int
sizeOf WGPUSurfaceGetCurrentTextureStatus
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUSurfaceGetCurrentTextureStatus
-> IO WGPUSurfaceGetCurrentTextureStatus
peek Ptr WGPUSurfaceGetCurrentTextureStatus
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUSurfaceGetCurrentTextureStatus -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUSurfaceGetCurrentTextureStatus
ptr)
pure $ WGPUSurfaceGetCurrentTextureStatus x
poke :: Ptr WGPUSurfaceGetCurrentTextureStatus
-> WGPUSurfaceGetCurrentTextureStatus -> IO ()
poke Ptr WGPUSurfaceGetCurrentTextureStatus
ptr (WGPUSurfaceGetCurrentTextureStatus CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUSurfaceGetCurrentTextureStatus -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUSurfaceGetCurrentTextureStatus
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUSurfaceGetCurrentTextureStatus_SuccessOptimal :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_SuccessOptimal :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_SuccessOptimal = CUInt -> WGPUSurfaceGetCurrentTextureStatus
WGPUSurfaceGetCurrentTextureStatus CUInt
1
{-# LINE 1303 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal = CUInt -> WGPUSurfaceGetCurrentTextureStatus
WGPUSurfaceGetCurrentTextureStatus CUInt
2
{-# LINE 1306 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSurfaceGetCurrentTextureStatus_Timeout :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_Timeout :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_Timeout = CUInt -> WGPUSurfaceGetCurrentTextureStatus
WGPUSurfaceGetCurrentTextureStatus CUInt
3
{-# LINE 1309 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSurfaceGetCurrentTextureStatus_Outdated :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_Outdated :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_Outdated = CUInt -> WGPUSurfaceGetCurrentTextureStatus
WGPUSurfaceGetCurrentTextureStatus CUInt
4
{-# LINE 1312 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSurfaceGetCurrentTextureStatus_Lost :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_Lost :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_Lost = CUInt -> WGPUSurfaceGetCurrentTextureStatus
WGPUSurfaceGetCurrentTextureStatus CUInt
5
{-# LINE 1315 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSurfaceGetCurrentTextureStatus_Error :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_Error :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_Error = CUInt -> WGPUSurfaceGetCurrentTextureStatus
WGPUSurfaceGetCurrentTextureStatus CUInt
6
{-# LINE 1318 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSurfaceGetCurrentTextureStatus_Force32 :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_Force32 :: WGPUSurfaceGetCurrentTextureStatus
wGPUSurfaceGetCurrentTextureStatus_Force32 = CUInt -> WGPUSurfaceGetCurrentTextureStatus
WGPUSurfaceGetCurrentTextureStatus CUInt
2147483647
{-# LINE 1321 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPULoadOp = WGPULoadOp CUInt deriving (WGPULoadOp -> WGPULoadOp -> Bool
(WGPULoadOp -> WGPULoadOp -> Bool)
-> (WGPULoadOp -> WGPULoadOp -> Bool) -> Eq WGPULoadOp
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPULoadOp -> WGPULoadOp -> Bool
== :: WGPULoadOp -> WGPULoadOp -> Bool
$c/= :: WGPULoadOp -> WGPULoadOp -> Bool
/= :: WGPULoadOp -> WGPULoadOp -> Bool
Eq, Eq WGPULoadOp
Eq WGPULoadOp =>
(WGPULoadOp -> WGPULoadOp -> Ordering)
-> (WGPULoadOp -> WGPULoadOp -> Bool)
-> (WGPULoadOp -> WGPULoadOp -> Bool)
-> (WGPULoadOp -> WGPULoadOp -> Bool)
-> (WGPULoadOp -> WGPULoadOp -> Bool)
-> (WGPULoadOp -> WGPULoadOp -> WGPULoadOp)
-> (WGPULoadOp -> WGPULoadOp -> WGPULoadOp)
-> Ord WGPULoadOp
WGPULoadOp -> WGPULoadOp -> Bool
WGPULoadOp -> WGPULoadOp -> Ordering
WGPULoadOp -> WGPULoadOp -> WGPULoadOp
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
$ccompare :: WGPULoadOp -> WGPULoadOp -> Ordering
compare :: WGPULoadOp -> WGPULoadOp -> Ordering
$c< :: WGPULoadOp -> WGPULoadOp -> Bool
< :: WGPULoadOp -> WGPULoadOp -> Bool
$c<= :: WGPULoadOp -> WGPULoadOp -> Bool
<= :: WGPULoadOp -> WGPULoadOp -> Bool
$c> :: WGPULoadOp -> WGPULoadOp -> Bool
> :: WGPULoadOp -> WGPULoadOp -> Bool
$c>= :: WGPULoadOp -> WGPULoadOp -> Bool
>= :: WGPULoadOp -> WGPULoadOp -> Bool
$cmax :: WGPULoadOp -> WGPULoadOp -> WGPULoadOp
max :: WGPULoadOp -> WGPULoadOp -> WGPULoadOp
$cmin :: WGPULoadOp -> WGPULoadOp -> WGPULoadOp
min :: WGPULoadOp -> WGPULoadOp -> WGPULoadOp
Ord, Int -> WGPULoadOp -> ShowS
[WGPULoadOp] -> ShowS
WGPULoadOp -> String
(Int -> WGPULoadOp -> ShowS)
-> (WGPULoadOp -> String)
-> ([WGPULoadOp] -> ShowS)
-> Show WGPULoadOp
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPULoadOp -> ShowS
showsPrec :: Int -> WGPULoadOp -> ShowS
$cshow :: WGPULoadOp -> String
show :: WGPULoadOp -> String
$cshowList :: [WGPULoadOp] -> ShowS
showList :: [WGPULoadOp] -> ShowS
Show)
instance Storable WGPULoadOp where
alignment :: WGPULoadOp -> Int
alignment WGPULoadOp
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPULoadOp -> Int
sizeOf WGPULoadOp
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPULoadOp -> IO WGPULoadOp
peek Ptr WGPULoadOp
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPULoadOp -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPULoadOp
ptr)
pure $ WGPULoadOp x
poke :: Ptr WGPULoadOp -> WGPULoadOp -> IO ()
poke Ptr WGPULoadOp
ptr (WGPULoadOp CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPULoadOp -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPULoadOp
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPULoadOp_Undefined :: WGPULoadOp
wGPULoadOp_Undefined :: WGPULoadOp
wGPULoadOp_Undefined = CUInt -> WGPULoadOp
WGPULoadOp CUInt
0
{-# LINE 1337 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPULoadOp_Load :: WGPULoadOp
wGPULoadOp_Load :: WGPULoadOp
wGPULoadOp_Load = CUInt -> WGPULoadOp
WGPULoadOp CUInt
1
{-# LINE 1340 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPULoadOp_Clear :: WGPULoadOp
wGPULoadOp_Clear :: WGPULoadOp
wGPULoadOp_Clear = CUInt -> WGPULoadOp
WGPULoadOp CUInt
2
{-# LINE 1343 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPULoadOp_Force32 :: WGPULoadOp
wGPULoadOp_Force32 :: WGPULoadOp
wGPULoadOp_Force32 = CUInt -> WGPULoadOp
WGPULoadOp CUInt
2147483647
{-# LINE 1346 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUStoreOp = WGPUStoreOp CUInt deriving (WGPUStoreOp -> WGPUStoreOp -> Bool
(WGPUStoreOp -> WGPUStoreOp -> Bool)
-> (WGPUStoreOp -> WGPUStoreOp -> Bool) -> Eq WGPUStoreOp
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUStoreOp -> WGPUStoreOp -> Bool
== :: WGPUStoreOp -> WGPUStoreOp -> Bool
$c/= :: WGPUStoreOp -> WGPUStoreOp -> Bool
/= :: WGPUStoreOp -> WGPUStoreOp -> Bool
Eq, Eq WGPUStoreOp
Eq WGPUStoreOp =>
(WGPUStoreOp -> WGPUStoreOp -> Ordering)
-> (WGPUStoreOp -> WGPUStoreOp -> Bool)
-> (WGPUStoreOp -> WGPUStoreOp -> Bool)
-> (WGPUStoreOp -> WGPUStoreOp -> Bool)
-> (WGPUStoreOp -> WGPUStoreOp -> Bool)
-> (WGPUStoreOp -> WGPUStoreOp -> WGPUStoreOp)
-> (WGPUStoreOp -> WGPUStoreOp -> WGPUStoreOp)
-> Ord WGPUStoreOp
WGPUStoreOp -> WGPUStoreOp -> Bool
WGPUStoreOp -> WGPUStoreOp -> Ordering
WGPUStoreOp -> WGPUStoreOp -> WGPUStoreOp
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
$ccompare :: WGPUStoreOp -> WGPUStoreOp -> Ordering
compare :: WGPUStoreOp -> WGPUStoreOp -> Ordering
$c< :: WGPUStoreOp -> WGPUStoreOp -> Bool
< :: WGPUStoreOp -> WGPUStoreOp -> Bool
$c<= :: WGPUStoreOp -> WGPUStoreOp -> Bool
<= :: WGPUStoreOp -> WGPUStoreOp -> Bool
$c> :: WGPUStoreOp -> WGPUStoreOp -> Bool
> :: WGPUStoreOp -> WGPUStoreOp -> Bool
$c>= :: WGPUStoreOp -> WGPUStoreOp -> Bool
>= :: WGPUStoreOp -> WGPUStoreOp -> Bool
$cmax :: WGPUStoreOp -> WGPUStoreOp -> WGPUStoreOp
max :: WGPUStoreOp -> WGPUStoreOp -> WGPUStoreOp
$cmin :: WGPUStoreOp -> WGPUStoreOp -> WGPUStoreOp
min :: WGPUStoreOp -> WGPUStoreOp -> WGPUStoreOp
Ord, Int -> WGPUStoreOp -> ShowS
[WGPUStoreOp] -> ShowS
WGPUStoreOp -> String
(Int -> WGPUStoreOp -> ShowS)
-> (WGPUStoreOp -> String)
-> ([WGPUStoreOp] -> ShowS)
-> Show WGPUStoreOp
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUStoreOp -> ShowS
showsPrec :: Int -> WGPUStoreOp -> ShowS
$cshow :: WGPUStoreOp -> String
show :: WGPUStoreOp -> String
$cshowList :: [WGPUStoreOp] -> ShowS
showList :: [WGPUStoreOp] -> ShowS
Show)
instance Storable WGPUStoreOp where
alignment :: WGPUStoreOp -> Int
alignment WGPUStoreOp
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUStoreOp -> Int
sizeOf WGPUStoreOp
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUStoreOp -> IO WGPUStoreOp
peek Ptr WGPUStoreOp
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUStoreOp -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUStoreOp
ptr)
pure $ WGPUStoreOp x
poke :: Ptr WGPUStoreOp -> WGPUStoreOp -> IO ()
poke Ptr WGPUStoreOp
ptr (WGPUStoreOp CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUStoreOp -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUStoreOp
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUStoreOp_Undefined :: WGPUStoreOp
wGPUStoreOp_Undefined :: WGPUStoreOp
wGPUStoreOp_Undefined = CUInt -> WGPUStoreOp
WGPUStoreOp CUInt
0
{-# LINE 1362 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUStoreOp_Store :: WGPUStoreOp
wGPUStoreOp_Store :: WGPUStoreOp
wGPUStoreOp_Store = CUInt -> WGPUStoreOp
WGPUStoreOp CUInt
1
{-# LINE 1365 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUStoreOp_Discard :: WGPUStoreOp
wGPUStoreOp_Discard :: WGPUStoreOp
wGPUStoreOp_Discard = CUInt -> WGPUStoreOp
WGPUStoreOp CUInt
2
{-# LINE 1368 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUStoreOp_Force32 :: WGPUStoreOp
wGPUStoreOp_Force32 :: WGPUStoreOp
wGPUStoreOp_Force32 = CUInt -> WGPUStoreOp
WGPUStoreOp CUInt
2147483647
{-# LINE 1371 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUTextureAspect = WGPUTextureAspect CUInt deriving (WGPUTextureAspect -> WGPUTextureAspect -> Bool
(WGPUTextureAspect -> WGPUTextureAspect -> Bool)
-> (WGPUTextureAspect -> WGPUTextureAspect -> Bool)
-> Eq WGPUTextureAspect
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUTextureAspect -> WGPUTextureAspect -> Bool
== :: WGPUTextureAspect -> WGPUTextureAspect -> Bool
$c/= :: WGPUTextureAspect -> WGPUTextureAspect -> Bool
/= :: WGPUTextureAspect -> WGPUTextureAspect -> Bool
Eq, Eq WGPUTextureAspect
Eq WGPUTextureAspect =>
(WGPUTextureAspect -> WGPUTextureAspect -> Ordering)
-> (WGPUTextureAspect -> WGPUTextureAspect -> Bool)
-> (WGPUTextureAspect -> WGPUTextureAspect -> Bool)
-> (WGPUTextureAspect -> WGPUTextureAspect -> Bool)
-> (WGPUTextureAspect -> WGPUTextureAspect -> Bool)
-> (WGPUTextureAspect -> WGPUTextureAspect -> WGPUTextureAspect)
-> (WGPUTextureAspect -> WGPUTextureAspect -> WGPUTextureAspect)
-> Ord WGPUTextureAspect
WGPUTextureAspect -> WGPUTextureAspect -> Bool
WGPUTextureAspect -> WGPUTextureAspect -> Ordering
WGPUTextureAspect -> WGPUTextureAspect -> WGPUTextureAspect
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
$ccompare :: WGPUTextureAspect -> WGPUTextureAspect -> Ordering
compare :: WGPUTextureAspect -> WGPUTextureAspect -> Ordering
$c< :: WGPUTextureAspect -> WGPUTextureAspect -> Bool
< :: WGPUTextureAspect -> WGPUTextureAspect -> Bool
$c<= :: WGPUTextureAspect -> WGPUTextureAspect -> Bool
<= :: WGPUTextureAspect -> WGPUTextureAspect -> Bool
$c> :: WGPUTextureAspect -> WGPUTextureAspect -> Bool
> :: WGPUTextureAspect -> WGPUTextureAspect -> Bool
$c>= :: WGPUTextureAspect -> WGPUTextureAspect -> Bool
>= :: WGPUTextureAspect -> WGPUTextureAspect -> Bool
$cmax :: WGPUTextureAspect -> WGPUTextureAspect -> WGPUTextureAspect
max :: WGPUTextureAspect -> WGPUTextureAspect -> WGPUTextureAspect
$cmin :: WGPUTextureAspect -> WGPUTextureAspect -> WGPUTextureAspect
min :: WGPUTextureAspect -> WGPUTextureAspect -> WGPUTextureAspect
Ord, Int -> WGPUTextureAspect -> ShowS
[WGPUTextureAspect] -> ShowS
WGPUTextureAspect -> String
(Int -> WGPUTextureAspect -> ShowS)
-> (WGPUTextureAspect -> String)
-> ([WGPUTextureAspect] -> ShowS)
-> Show WGPUTextureAspect
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUTextureAspect -> ShowS
showsPrec :: Int -> WGPUTextureAspect -> ShowS
$cshow :: WGPUTextureAspect -> String
show :: WGPUTextureAspect -> String
$cshowList :: [WGPUTextureAspect] -> ShowS
showList :: [WGPUTextureAspect] -> ShowS
Show)
instance Storable WGPUTextureAspect where
alignment :: WGPUTextureAspect -> Int
alignment WGPUTextureAspect
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUTextureAspect -> Int
sizeOf WGPUTextureAspect
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUTextureAspect -> IO WGPUTextureAspect
peek Ptr WGPUTextureAspect
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUTextureAspect -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUTextureAspect
ptr)
pure $ WGPUTextureAspect x
poke :: Ptr WGPUTextureAspect -> WGPUTextureAspect -> IO ()
poke Ptr WGPUTextureAspect
ptr (WGPUTextureAspect CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUTextureAspect -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUTextureAspect
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUTextureAspect_Undefined :: WGPUTextureAspect
wGPUTextureAspect_Undefined :: WGPUTextureAspect
wGPUTextureAspect_Undefined = CUInt -> WGPUTextureAspect
WGPUTextureAspect CUInt
0
{-# LINE 1387 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureAspect_All :: WGPUTextureAspect
wGPUTextureAspect_All :: WGPUTextureAspect
wGPUTextureAspect_All = CUInt -> WGPUTextureAspect
WGPUTextureAspect CUInt
1
{-# LINE 1390 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureAspect_StencilOnly :: WGPUTextureAspect
wGPUTextureAspect_StencilOnly :: WGPUTextureAspect
wGPUTextureAspect_StencilOnly = CUInt -> WGPUTextureAspect
WGPUTextureAspect CUInt
2
{-# LINE 1393 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureAspect_DepthOnly :: WGPUTextureAspect
wGPUTextureAspect_DepthOnly :: WGPUTextureAspect
wGPUTextureAspect_DepthOnly = CUInt -> WGPUTextureAspect
WGPUTextureAspect CUInt
3
{-# LINE 1396 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureAspect_Force32 :: WGPUTextureAspect
wGPUTextureAspect_Force32 :: WGPUTextureAspect
wGPUTextureAspect_Force32 = CUInt -> WGPUTextureAspect
WGPUTextureAspect CUInt
2147483647
{-# LINE 1399 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUTextureDimension = WGPUTextureDimension CUInt deriving (WGPUTextureDimension -> WGPUTextureDimension -> Bool
(WGPUTextureDimension -> WGPUTextureDimension -> Bool)
-> (WGPUTextureDimension -> WGPUTextureDimension -> Bool)
-> Eq WGPUTextureDimension
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUTextureDimension -> WGPUTextureDimension -> Bool
== :: WGPUTextureDimension -> WGPUTextureDimension -> Bool
$c/= :: WGPUTextureDimension -> WGPUTextureDimension -> Bool
/= :: WGPUTextureDimension -> WGPUTextureDimension -> Bool
Eq, Eq WGPUTextureDimension
Eq WGPUTextureDimension =>
(WGPUTextureDimension -> WGPUTextureDimension -> Ordering)
-> (WGPUTextureDimension -> WGPUTextureDimension -> Bool)
-> (WGPUTextureDimension -> WGPUTextureDimension -> Bool)
-> (WGPUTextureDimension -> WGPUTextureDimension -> Bool)
-> (WGPUTextureDimension -> WGPUTextureDimension -> Bool)
-> (WGPUTextureDimension
-> WGPUTextureDimension -> WGPUTextureDimension)
-> (WGPUTextureDimension
-> WGPUTextureDimension -> WGPUTextureDimension)
-> Ord WGPUTextureDimension
WGPUTextureDimension -> WGPUTextureDimension -> Bool
WGPUTextureDimension -> WGPUTextureDimension -> Ordering
WGPUTextureDimension
-> WGPUTextureDimension -> WGPUTextureDimension
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
$ccompare :: WGPUTextureDimension -> WGPUTextureDimension -> Ordering
compare :: WGPUTextureDimension -> WGPUTextureDimension -> Ordering
$c< :: WGPUTextureDimension -> WGPUTextureDimension -> Bool
< :: WGPUTextureDimension -> WGPUTextureDimension -> Bool
$c<= :: WGPUTextureDimension -> WGPUTextureDimension -> Bool
<= :: WGPUTextureDimension -> WGPUTextureDimension -> Bool
$c> :: WGPUTextureDimension -> WGPUTextureDimension -> Bool
> :: WGPUTextureDimension -> WGPUTextureDimension -> Bool
$c>= :: WGPUTextureDimension -> WGPUTextureDimension -> Bool
>= :: WGPUTextureDimension -> WGPUTextureDimension -> Bool
$cmax :: WGPUTextureDimension
-> WGPUTextureDimension -> WGPUTextureDimension
max :: WGPUTextureDimension
-> WGPUTextureDimension -> WGPUTextureDimension
$cmin :: WGPUTextureDimension
-> WGPUTextureDimension -> WGPUTextureDimension
min :: WGPUTextureDimension
-> WGPUTextureDimension -> WGPUTextureDimension
Ord, Int -> WGPUTextureDimension -> ShowS
[WGPUTextureDimension] -> ShowS
WGPUTextureDimension -> String
(Int -> WGPUTextureDimension -> ShowS)
-> (WGPUTextureDimension -> String)
-> ([WGPUTextureDimension] -> ShowS)
-> Show WGPUTextureDimension
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUTextureDimension -> ShowS
showsPrec :: Int -> WGPUTextureDimension -> ShowS
$cshow :: WGPUTextureDimension -> String
show :: WGPUTextureDimension -> String
$cshowList :: [WGPUTextureDimension] -> ShowS
showList :: [WGPUTextureDimension] -> ShowS
Show)
instance Storable WGPUTextureDimension where
alignment :: WGPUTextureDimension -> Int
alignment WGPUTextureDimension
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUTextureDimension -> Int
sizeOf WGPUTextureDimension
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUTextureDimension -> IO WGPUTextureDimension
peek Ptr WGPUTextureDimension
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUTextureDimension -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUTextureDimension
ptr)
pure $ WGPUTextureDimension x
poke :: Ptr WGPUTextureDimension -> WGPUTextureDimension -> IO ()
poke Ptr WGPUTextureDimension
ptr (WGPUTextureDimension CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUTextureDimension -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUTextureDimension
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUTextureDimension_Undefined :: WGPUTextureDimension
wGPUTextureDimension_Undefined :: WGPUTextureDimension
wGPUTextureDimension_Undefined = CUInt -> WGPUTextureDimension
WGPUTextureDimension CUInt
0
{-# LINE 1415 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureDimension_1D :: WGPUTextureDimension
wGPUTextureDimension_1D :: WGPUTextureDimension
wGPUTextureDimension_1D = CUInt -> WGPUTextureDimension
WGPUTextureDimension CUInt
1
{-# LINE 1418 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureDimension_2D :: WGPUTextureDimension
wGPUTextureDimension_2D :: WGPUTextureDimension
wGPUTextureDimension_2D = CUInt -> WGPUTextureDimension
WGPUTextureDimension CUInt
2
{-# LINE 1421 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureDimension_3D :: WGPUTextureDimension
wGPUTextureDimension_3D :: WGPUTextureDimension
wGPUTextureDimension_3D = CUInt -> WGPUTextureDimension
WGPUTextureDimension CUInt
3
{-# LINE 1424 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUTextureDimension_Force32 :: WGPUTextureDimension
wGPUTextureDimension_Force32 :: WGPUTextureDimension
wGPUTextureDimension_Force32 = CUInt -> WGPUTextureDimension
WGPUTextureDimension CUInt
2147483647
{-# LINE 1427 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUAddressMode = WGPUAddressMode CUInt deriving (WGPUAddressMode -> WGPUAddressMode -> Bool
(WGPUAddressMode -> WGPUAddressMode -> Bool)
-> (WGPUAddressMode -> WGPUAddressMode -> Bool)
-> Eq WGPUAddressMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUAddressMode -> WGPUAddressMode -> Bool
== :: WGPUAddressMode -> WGPUAddressMode -> Bool
$c/= :: WGPUAddressMode -> WGPUAddressMode -> Bool
/= :: WGPUAddressMode -> WGPUAddressMode -> Bool
Eq, Eq WGPUAddressMode
Eq WGPUAddressMode =>
(WGPUAddressMode -> WGPUAddressMode -> Ordering)
-> (WGPUAddressMode -> WGPUAddressMode -> Bool)
-> (WGPUAddressMode -> WGPUAddressMode -> Bool)
-> (WGPUAddressMode -> WGPUAddressMode -> Bool)
-> (WGPUAddressMode -> WGPUAddressMode -> Bool)
-> (WGPUAddressMode -> WGPUAddressMode -> WGPUAddressMode)
-> (WGPUAddressMode -> WGPUAddressMode -> WGPUAddressMode)
-> Ord WGPUAddressMode
WGPUAddressMode -> WGPUAddressMode -> Bool
WGPUAddressMode -> WGPUAddressMode -> Ordering
WGPUAddressMode -> WGPUAddressMode -> WGPUAddressMode
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
$ccompare :: WGPUAddressMode -> WGPUAddressMode -> Ordering
compare :: WGPUAddressMode -> WGPUAddressMode -> Ordering
$c< :: WGPUAddressMode -> WGPUAddressMode -> Bool
< :: WGPUAddressMode -> WGPUAddressMode -> Bool
$c<= :: WGPUAddressMode -> WGPUAddressMode -> Bool
<= :: WGPUAddressMode -> WGPUAddressMode -> Bool
$c> :: WGPUAddressMode -> WGPUAddressMode -> Bool
> :: WGPUAddressMode -> WGPUAddressMode -> Bool
$c>= :: WGPUAddressMode -> WGPUAddressMode -> Bool
>= :: WGPUAddressMode -> WGPUAddressMode -> Bool
$cmax :: WGPUAddressMode -> WGPUAddressMode -> WGPUAddressMode
max :: WGPUAddressMode -> WGPUAddressMode -> WGPUAddressMode
$cmin :: WGPUAddressMode -> WGPUAddressMode -> WGPUAddressMode
min :: WGPUAddressMode -> WGPUAddressMode -> WGPUAddressMode
Ord, Int -> WGPUAddressMode -> ShowS
[WGPUAddressMode] -> ShowS
WGPUAddressMode -> String
(Int -> WGPUAddressMode -> ShowS)
-> (WGPUAddressMode -> String)
-> ([WGPUAddressMode] -> ShowS)
-> Show WGPUAddressMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUAddressMode -> ShowS
showsPrec :: Int -> WGPUAddressMode -> ShowS
$cshow :: WGPUAddressMode -> String
show :: WGPUAddressMode -> String
$cshowList :: [WGPUAddressMode] -> ShowS
showList :: [WGPUAddressMode] -> ShowS
Show)
instance Storable WGPUAddressMode where
alignment :: WGPUAddressMode -> Int
alignment WGPUAddressMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUAddressMode -> Int
sizeOf WGPUAddressMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUAddressMode -> IO WGPUAddressMode
peek Ptr WGPUAddressMode
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUAddressMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUAddressMode
ptr)
pure $ WGPUAddressMode x
poke :: Ptr WGPUAddressMode -> WGPUAddressMode -> IO ()
poke Ptr WGPUAddressMode
ptr (WGPUAddressMode CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUAddressMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUAddressMode
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUAddressMode_Undefined :: WGPUAddressMode
wGPUAddressMode_Undefined :: WGPUAddressMode
wGPUAddressMode_Undefined = CUInt -> WGPUAddressMode
WGPUAddressMode CUInt
0
{-# LINE 1443 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUAddressMode_ClampToEdge :: WGPUAddressMode
wGPUAddressMode_ClampToEdge :: WGPUAddressMode
wGPUAddressMode_ClampToEdge = CUInt -> WGPUAddressMode
WGPUAddressMode CUInt
1
{-# LINE 1446 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUAddressMode_Repeat :: WGPUAddressMode
wGPUAddressMode_Repeat :: WGPUAddressMode
wGPUAddressMode_Repeat = CUInt -> WGPUAddressMode
WGPUAddressMode CUInt
2
{-# LINE 1449 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUAddressMode_MirrorRepeat :: WGPUAddressMode
wGPUAddressMode_MirrorRepeat :: WGPUAddressMode
wGPUAddressMode_MirrorRepeat = CUInt -> WGPUAddressMode
WGPUAddressMode CUInt
3
{-# LINE 1452 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUAddressMode_Force32 :: WGPUAddressMode
wGPUAddressMode_Force32 :: WGPUAddressMode
wGPUAddressMode_Force32 = CUInt -> WGPUAddressMode
WGPUAddressMode CUInt
2147483647
{-# LINE 1455 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUFilterMode = WGPUFilterMode CUInt deriving (WGPUFilterMode -> WGPUFilterMode -> Bool
(WGPUFilterMode -> WGPUFilterMode -> Bool)
-> (WGPUFilterMode -> WGPUFilterMode -> Bool) -> Eq WGPUFilterMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUFilterMode -> WGPUFilterMode -> Bool
== :: WGPUFilterMode -> WGPUFilterMode -> Bool
$c/= :: WGPUFilterMode -> WGPUFilterMode -> Bool
/= :: WGPUFilterMode -> WGPUFilterMode -> Bool
Eq, Eq WGPUFilterMode
Eq WGPUFilterMode =>
(WGPUFilterMode -> WGPUFilterMode -> Ordering)
-> (WGPUFilterMode -> WGPUFilterMode -> Bool)
-> (WGPUFilterMode -> WGPUFilterMode -> Bool)
-> (WGPUFilterMode -> WGPUFilterMode -> Bool)
-> (WGPUFilterMode -> WGPUFilterMode -> Bool)
-> (WGPUFilterMode -> WGPUFilterMode -> WGPUFilterMode)
-> (WGPUFilterMode -> WGPUFilterMode -> WGPUFilterMode)
-> Ord WGPUFilterMode
WGPUFilterMode -> WGPUFilterMode -> Bool
WGPUFilterMode -> WGPUFilterMode -> Ordering
WGPUFilterMode -> WGPUFilterMode -> WGPUFilterMode
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
$ccompare :: WGPUFilterMode -> WGPUFilterMode -> Ordering
compare :: WGPUFilterMode -> WGPUFilterMode -> Ordering
$c< :: WGPUFilterMode -> WGPUFilterMode -> Bool
< :: WGPUFilterMode -> WGPUFilterMode -> Bool
$c<= :: WGPUFilterMode -> WGPUFilterMode -> Bool
<= :: WGPUFilterMode -> WGPUFilterMode -> Bool
$c> :: WGPUFilterMode -> WGPUFilterMode -> Bool
> :: WGPUFilterMode -> WGPUFilterMode -> Bool
$c>= :: WGPUFilterMode -> WGPUFilterMode -> Bool
>= :: WGPUFilterMode -> WGPUFilterMode -> Bool
$cmax :: WGPUFilterMode -> WGPUFilterMode -> WGPUFilterMode
max :: WGPUFilterMode -> WGPUFilterMode -> WGPUFilterMode
$cmin :: WGPUFilterMode -> WGPUFilterMode -> WGPUFilterMode
min :: WGPUFilterMode -> WGPUFilterMode -> WGPUFilterMode
Ord, Int -> WGPUFilterMode -> ShowS
[WGPUFilterMode] -> ShowS
WGPUFilterMode -> String
(Int -> WGPUFilterMode -> ShowS)
-> (WGPUFilterMode -> String)
-> ([WGPUFilterMode] -> ShowS)
-> Show WGPUFilterMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUFilterMode -> ShowS
showsPrec :: Int -> WGPUFilterMode -> ShowS
$cshow :: WGPUFilterMode -> String
show :: WGPUFilterMode -> String
$cshowList :: [WGPUFilterMode] -> ShowS
showList :: [WGPUFilterMode] -> ShowS
Show)
instance Storable WGPUFilterMode where
alignment :: WGPUFilterMode -> Int
alignment WGPUFilterMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUFilterMode -> Int
sizeOf WGPUFilterMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUFilterMode -> IO WGPUFilterMode
peek Ptr WGPUFilterMode
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUFilterMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUFilterMode
ptr)
pure $ WGPUFilterMode x
poke :: Ptr WGPUFilterMode -> WGPUFilterMode -> IO ()
poke Ptr WGPUFilterMode
ptr (WGPUFilterMode CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUFilterMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUFilterMode
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUFilterMode_Undefined :: WGPUFilterMode
wGPUFilterMode_Undefined :: WGPUFilterMode
wGPUFilterMode_Undefined = CUInt -> WGPUFilterMode
WGPUFilterMode CUInt
0
{-# LINE 1471 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUFilterMode_Nearest :: WGPUFilterMode
wGPUFilterMode_Nearest :: WGPUFilterMode
wGPUFilterMode_Nearest = CUInt -> WGPUFilterMode
WGPUFilterMode CUInt
1
{-# LINE 1474 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUFilterMode_Linear :: WGPUFilterMode
wGPUFilterMode_Linear :: WGPUFilterMode
wGPUFilterMode_Linear = CUInt -> WGPUFilterMode
WGPUFilterMode CUInt
2
{-# LINE 1477 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUFilterMode_Force32 :: WGPUFilterMode
wGPUFilterMode_Force32 :: WGPUFilterMode
wGPUFilterMode_Force32 = CUInt -> WGPUFilterMode
WGPUFilterMode CUInt
2147483647
{-# LINE 1480 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUMipmapFilterMode = WGPUMipmapFilterMode CUInt deriving (WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
(WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool)
-> (WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool)
-> Eq WGPUMipmapFilterMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
== :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
$c/= :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
/= :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
Eq, Eq WGPUMipmapFilterMode
Eq WGPUMipmapFilterMode =>
(WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Ordering)
-> (WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool)
-> (WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool)
-> (WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool)
-> (WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool)
-> (WGPUMipmapFilterMode
-> WGPUMipmapFilterMode -> WGPUMipmapFilterMode)
-> (WGPUMipmapFilterMode
-> WGPUMipmapFilterMode -> WGPUMipmapFilterMode)
-> Ord WGPUMipmapFilterMode
WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Ordering
WGPUMipmapFilterMode
-> WGPUMipmapFilterMode -> WGPUMipmapFilterMode
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
$ccompare :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Ordering
compare :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Ordering
$c< :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
< :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
$c<= :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
<= :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
$c> :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
> :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
$c>= :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
>= :: WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> Bool
$cmax :: WGPUMipmapFilterMode
-> WGPUMipmapFilterMode -> WGPUMipmapFilterMode
max :: WGPUMipmapFilterMode
-> WGPUMipmapFilterMode -> WGPUMipmapFilterMode
$cmin :: WGPUMipmapFilterMode
-> WGPUMipmapFilterMode -> WGPUMipmapFilterMode
min :: WGPUMipmapFilterMode
-> WGPUMipmapFilterMode -> WGPUMipmapFilterMode
Ord, Int -> WGPUMipmapFilterMode -> ShowS
[WGPUMipmapFilterMode] -> ShowS
WGPUMipmapFilterMode -> String
(Int -> WGPUMipmapFilterMode -> ShowS)
-> (WGPUMipmapFilterMode -> String)
-> ([WGPUMipmapFilterMode] -> ShowS)
-> Show WGPUMipmapFilterMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUMipmapFilterMode -> ShowS
showsPrec :: Int -> WGPUMipmapFilterMode -> ShowS
$cshow :: WGPUMipmapFilterMode -> String
show :: WGPUMipmapFilterMode -> String
$cshowList :: [WGPUMipmapFilterMode] -> ShowS
showList :: [WGPUMipmapFilterMode] -> ShowS
Show)
instance Storable WGPUMipmapFilterMode where
alignment :: WGPUMipmapFilterMode -> Int
alignment WGPUMipmapFilterMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUMipmapFilterMode -> Int
sizeOf WGPUMipmapFilterMode
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUMipmapFilterMode -> IO WGPUMipmapFilterMode
peek Ptr WGPUMipmapFilterMode
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUMipmapFilterMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUMipmapFilterMode
ptr)
pure $ WGPUMipmapFilterMode x
poke :: Ptr WGPUMipmapFilterMode -> WGPUMipmapFilterMode -> IO ()
poke Ptr WGPUMipmapFilterMode
ptr (WGPUMipmapFilterMode CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUMipmapFilterMode -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUMipmapFilterMode
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUMipmapFilterMode_Undefined :: WGPUMipmapFilterMode
wGPUMipmapFilterMode_Undefined :: WGPUMipmapFilterMode
wGPUMipmapFilterMode_Undefined = CUInt -> WGPUMipmapFilterMode
WGPUMipmapFilterMode CUInt
0
{-# LINE 1496 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUMipmapFilterMode_Nearest :: WGPUMipmapFilterMode
wGPUMipmapFilterMode_Nearest :: WGPUMipmapFilterMode
wGPUMipmapFilterMode_Nearest = CUInt -> WGPUMipmapFilterMode
WGPUMipmapFilterMode CUInt
1
{-# LINE 1499 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUMipmapFilterMode_Linear :: WGPUMipmapFilterMode
wGPUMipmapFilterMode_Linear :: WGPUMipmapFilterMode
wGPUMipmapFilterMode_Linear = CUInt -> WGPUMipmapFilterMode
WGPUMipmapFilterMode CUInt
2
{-# LINE 1502 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUMipmapFilterMode_Force32 :: WGPUMipmapFilterMode
wGPUMipmapFilterMode_Force32 :: WGPUMipmapFilterMode
wGPUMipmapFilterMode_Force32 = CUInt -> WGPUMipmapFilterMode
WGPUMipmapFilterMode CUInt
2147483647
{-# LINE 1505 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUCompareFunction = WGPUCompareFunction CUInt deriving (WGPUCompareFunction -> WGPUCompareFunction -> Bool
(WGPUCompareFunction -> WGPUCompareFunction -> Bool)
-> (WGPUCompareFunction -> WGPUCompareFunction -> Bool)
-> Eq WGPUCompareFunction
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUCompareFunction -> WGPUCompareFunction -> Bool
== :: WGPUCompareFunction -> WGPUCompareFunction -> Bool
$c/= :: WGPUCompareFunction -> WGPUCompareFunction -> Bool
/= :: WGPUCompareFunction -> WGPUCompareFunction -> Bool
Eq, Eq WGPUCompareFunction
Eq WGPUCompareFunction =>
(WGPUCompareFunction -> WGPUCompareFunction -> Ordering)
-> (WGPUCompareFunction -> WGPUCompareFunction -> Bool)
-> (WGPUCompareFunction -> WGPUCompareFunction -> Bool)
-> (WGPUCompareFunction -> WGPUCompareFunction -> Bool)
-> (WGPUCompareFunction -> WGPUCompareFunction -> Bool)
-> (WGPUCompareFunction
-> WGPUCompareFunction -> WGPUCompareFunction)
-> (WGPUCompareFunction
-> WGPUCompareFunction -> WGPUCompareFunction)
-> Ord WGPUCompareFunction
WGPUCompareFunction -> WGPUCompareFunction -> Bool
WGPUCompareFunction -> WGPUCompareFunction -> Ordering
WGPUCompareFunction -> WGPUCompareFunction -> WGPUCompareFunction
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
$ccompare :: WGPUCompareFunction -> WGPUCompareFunction -> Ordering
compare :: WGPUCompareFunction -> WGPUCompareFunction -> Ordering
$c< :: WGPUCompareFunction -> WGPUCompareFunction -> Bool
< :: WGPUCompareFunction -> WGPUCompareFunction -> Bool
$c<= :: WGPUCompareFunction -> WGPUCompareFunction -> Bool
<= :: WGPUCompareFunction -> WGPUCompareFunction -> Bool
$c> :: WGPUCompareFunction -> WGPUCompareFunction -> Bool
> :: WGPUCompareFunction -> WGPUCompareFunction -> Bool
$c>= :: WGPUCompareFunction -> WGPUCompareFunction -> Bool
>= :: WGPUCompareFunction -> WGPUCompareFunction -> Bool
$cmax :: WGPUCompareFunction -> WGPUCompareFunction -> WGPUCompareFunction
max :: WGPUCompareFunction -> WGPUCompareFunction -> WGPUCompareFunction
$cmin :: WGPUCompareFunction -> WGPUCompareFunction -> WGPUCompareFunction
min :: WGPUCompareFunction -> WGPUCompareFunction -> WGPUCompareFunction
Ord, Int -> WGPUCompareFunction -> ShowS
[WGPUCompareFunction] -> ShowS
WGPUCompareFunction -> String
(Int -> WGPUCompareFunction -> ShowS)
-> (WGPUCompareFunction -> String)
-> ([WGPUCompareFunction] -> ShowS)
-> Show WGPUCompareFunction
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUCompareFunction -> ShowS
showsPrec :: Int -> WGPUCompareFunction -> ShowS
$cshow :: WGPUCompareFunction -> String
show :: WGPUCompareFunction -> String
$cshowList :: [WGPUCompareFunction] -> ShowS
showList :: [WGPUCompareFunction] -> ShowS
Show)
instance Storable WGPUCompareFunction where
alignment :: WGPUCompareFunction -> Int
alignment WGPUCompareFunction
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUCompareFunction -> Int
sizeOf WGPUCompareFunction
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUCompareFunction -> IO WGPUCompareFunction
peek Ptr WGPUCompareFunction
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUCompareFunction -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUCompareFunction
ptr)
pure $ WGPUCompareFunction x
poke :: Ptr WGPUCompareFunction -> WGPUCompareFunction -> IO ()
poke Ptr WGPUCompareFunction
ptr (WGPUCompareFunction CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUCompareFunction -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUCompareFunction
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUCompareFunction_Undefined :: WGPUCompareFunction
wGPUCompareFunction_Undefined :: WGPUCompareFunction
wGPUCompareFunction_Undefined = CUInt -> WGPUCompareFunction
WGPUCompareFunction CUInt
0
{-# LINE 1521 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompareFunction_Never :: WGPUCompareFunction
wGPUCompareFunction_Never :: WGPUCompareFunction
wGPUCompareFunction_Never = CUInt -> WGPUCompareFunction
WGPUCompareFunction CUInt
1
{-# LINE 1524 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompareFunction_Less :: WGPUCompareFunction
wGPUCompareFunction_Less :: WGPUCompareFunction
wGPUCompareFunction_Less = CUInt -> WGPUCompareFunction
WGPUCompareFunction CUInt
2
{-# LINE 1527 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompareFunction_Equal :: WGPUCompareFunction
wGPUCompareFunction_Equal :: WGPUCompareFunction
wGPUCompareFunction_Equal = CUInt -> WGPUCompareFunction
WGPUCompareFunction CUInt
3
{-# LINE 1530 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompareFunction_LessEqual :: WGPUCompareFunction
wGPUCompareFunction_LessEqual :: WGPUCompareFunction
wGPUCompareFunction_LessEqual = CUInt -> WGPUCompareFunction
WGPUCompareFunction CUInt
4
{-# LINE 1533 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompareFunction_Greater :: WGPUCompareFunction
wGPUCompareFunction_Greater :: WGPUCompareFunction
wGPUCompareFunction_Greater = CUInt -> WGPUCompareFunction
WGPUCompareFunction CUInt
5
{-# LINE 1536 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompareFunction_NotEqual :: WGPUCompareFunction
wGPUCompareFunction_NotEqual :: WGPUCompareFunction
wGPUCompareFunction_NotEqual = CUInt -> WGPUCompareFunction
WGPUCompareFunction CUInt
6
{-# LINE 1539 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompareFunction_GreaterEqual :: WGPUCompareFunction
wGPUCompareFunction_GreaterEqual :: WGPUCompareFunction
wGPUCompareFunction_GreaterEqual = CUInt -> WGPUCompareFunction
WGPUCompareFunction CUInt
7
{-# LINE 1542 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompareFunction_Always :: WGPUCompareFunction
wGPUCompareFunction_Always :: WGPUCompareFunction
wGPUCompareFunction_Always = CUInt -> WGPUCompareFunction
WGPUCompareFunction CUInt
8
{-# LINE 1545 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUCompareFunction_Force32 :: WGPUCompareFunction
wGPUCompareFunction_Force32 :: WGPUCompareFunction
wGPUCompareFunction_Force32 = CUInt -> WGPUCompareFunction
WGPUCompareFunction CUInt
2147483647
{-# LINE 1548 "src/Mischief/WGPU/Types/Enums.hsc" #-}
newtype WGPUSamplerBindingType = WGPUSamplerBindingType CUInt deriving (WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
(WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool)
-> (WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool)
-> Eq WGPUSamplerBindingType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
== :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
$c/= :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
/= :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
Eq, Eq WGPUSamplerBindingType
Eq WGPUSamplerBindingType =>
(WGPUSamplerBindingType -> WGPUSamplerBindingType -> Ordering)
-> (WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool)
-> (WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool)
-> (WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool)
-> (WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool)
-> (WGPUSamplerBindingType
-> WGPUSamplerBindingType -> WGPUSamplerBindingType)
-> (WGPUSamplerBindingType
-> WGPUSamplerBindingType -> WGPUSamplerBindingType)
-> Ord WGPUSamplerBindingType
WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
WGPUSamplerBindingType -> WGPUSamplerBindingType -> Ordering
WGPUSamplerBindingType
-> WGPUSamplerBindingType -> WGPUSamplerBindingType
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
$ccompare :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Ordering
compare :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Ordering
$c< :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
< :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
$c<= :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
<= :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
$c> :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
> :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
$c>= :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
>= :: WGPUSamplerBindingType -> WGPUSamplerBindingType -> Bool
$cmax :: WGPUSamplerBindingType
-> WGPUSamplerBindingType -> WGPUSamplerBindingType
max :: WGPUSamplerBindingType
-> WGPUSamplerBindingType -> WGPUSamplerBindingType
$cmin :: WGPUSamplerBindingType
-> WGPUSamplerBindingType -> WGPUSamplerBindingType
min :: WGPUSamplerBindingType
-> WGPUSamplerBindingType -> WGPUSamplerBindingType
Ord, Int -> WGPUSamplerBindingType -> ShowS
[WGPUSamplerBindingType] -> ShowS
WGPUSamplerBindingType -> String
(Int -> WGPUSamplerBindingType -> ShowS)
-> (WGPUSamplerBindingType -> String)
-> ([WGPUSamplerBindingType] -> ShowS)
-> Show WGPUSamplerBindingType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WGPUSamplerBindingType -> ShowS
showsPrec :: Int -> WGPUSamplerBindingType -> ShowS
$cshow :: WGPUSamplerBindingType -> String
show :: WGPUSamplerBindingType -> String
$cshowList :: [WGPUSamplerBindingType] -> ShowS
showList :: [WGPUSamplerBindingType] -> ShowS
Show)
instance Storable WGPUSamplerBindingType where
alignment :: WGPUSamplerBindingType -> Int
alignment WGPUSamplerBindingType
_ = CUInt -> Int
forall a. Storable a => a -> Int
alignment (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
sizeOf :: WGPUSamplerBindingType -> Int
sizeOf WGPUSamplerBindingType
_ = CUInt -> Int
forall a. Storable a => a -> Int
sizeOf (CUInt
forall a. HasCallStack => a
undefined :: CUInt)
peek :: Ptr WGPUSamplerBindingType -> IO WGPUSamplerBindingType
peek Ptr WGPUSamplerBindingType
ptr = do
x <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr WGPUSamplerBindingType -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUSamplerBindingType
ptr)
pure $ WGPUSamplerBindingType x
poke :: Ptr WGPUSamplerBindingType -> WGPUSamplerBindingType -> IO ()
poke Ptr WGPUSamplerBindingType
ptr (WGPUSamplerBindingType CUInt
x) = do
let Ptr CUInt
a :: Ptr CUInt = Ptr WGPUSamplerBindingType -> Ptr CUInt
forall a b. Ptr a -> Ptr b
castPtr Ptr WGPUSamplerBindingType
ptr
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr CUInt
a CUInt
x
wGPUSamplerBindingType_BindingNotUsed :: WGPUSamplerBindingType
wGPUSamplerBindingType_BindingNotUsed :: WGPUSamplerBindingType
wGPUSamplerBindingType_BindingNotUsed = CUInt -> WGPUSamplerBindingType
WGPUSamplerBindingType CUInt
0
{-# LINE 1564 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSamplerBindingType_Undefined :: WGPUSamplerBindingType
wGPUSamplerBindingType_Undefined :: WGPUSamplerBindingType
wGPUSamplerBindingType_Undefined = CUInt -> WGPUSamplerBindingType
WGPUSamplerBindingType CUInt
1
{-# LINE 1567 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSamplerBindingType_Filtering :: WGPUSamplerBindingType
wGPUSamplerBindingType_Filtering :: WGPUSamplerBindingType
wGPUSamplerBindingType_Filtering = CUInt -> WGPUSamplerBindingType
WGPUSamplerBindingType CUInt
2
{-# LINE 1570 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSamplerBindingType_NonFiltering :: WGPUSamplerBindingType
wGPUSamplerBindingType_NonFiltering :: WGPUSamplerBindingType
wGPUSamplerBindingType_NonFiltering = CUInt -> WGPUSamplerBindingType
WGPUSamplerBindingType CUInt
3
{-# LINE 1573 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSamplerBindingType_Comparison :: WGPUSamplerBindingType
wGPUSamplerBindingType_Comparison :: WGPUSamplerBindingType
wGPUSamplerBindingType_Comparison = CUInt -> WGPUSamplerBindingType
WGPUSamplerBindingType CUInt
4
{-# LINE 1576 "src/Mischief/WGPU/Types/Enums.hsc" #-}
wGPUSamplerBindingType_Force32 :: WGPUSamplerBindingType
wGPUSamplerBindingType_Force32 :: WGPUSamplerBindingType
wGPUSamplerBindingType_Force32 = CUInt -> WGPUSamplerBindingType
WGPUSamplerBindingType CUInt
2147483647
{-# LINE 1579 "src/Mischief/WGPU/Types/Enums.hsc" #-}