Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Adapter = Adapter {}
- data AdapterType
- data BackendType
- data AdapterProperties = AdapterProperties {
- deviceID :: !Word32
- vendorID :: !Word32
- adapterName :: !Text
- driverDescription :: !Text
- adapterType :: !AdapterType
- backendType :: !BackendType
- requestAdapter :: MonadIO m => Surface -> m (Maybe Adapter)
- getAdapterProperties :: MonadIO m => Adapter -> m AdapterProperties
- adapterPropertiesToText :: AdapterProperties -> Text
Types
Handle to a physical graphics and/or compute device.
Request an Adapter
for a Surface
using the requestAdapter
function.
Adapter | |
|
data AdapterType Source #
Physical device type.
Instances
Eq AdapterType Source # | |
Defined in WGPU.Internal.Adapter (==) :: AdapterType -> AdapterType -> Bool # (/=) :: AdapterType -> AdapterType -> Bool # | |
Show AdapterType Source # | |
Defined in WGPU.Internal.Adapter showsPrec :: Int -> AdapterType -> ShowS # show :: AdapterType -> String # showList :: [AdapterType] -> ShowS # | |
FromRaw WGPUAdapterType AdapterType Source # | |
Defined in WGPU.Internal.Adapter fromRaw :: MonadIO m => WGPUAdapterType -> m AdapterType Source # | |
ToRaw AdapterType WGPUAdapterType Source # | |
Defined in WGPU.Internal.Adapter raw :: AdapterType -> ContT r IO WGPUAdapterType Source # |
data BackendType Source #
Backends supported by WGPU.
BackendTypeNull | |
BackendTypeD3D11 | |
BackendTypeD3D12 | |
BackendTypeMetal | |
BackendTypeVulkan | |
BackendTypeOpenGL | |
BackendTypeOpenGLES |
Instances
Eq BackendType Source # | |
Defined in WGPU.Internal.Adapter (==) :: BackendType -> BackendType -> Bool # (/=) :: BackendType -> BackendType -> Bool # | |
Show BackendType Source # | |
Defined in WGPU.Internal.Adapter showsPrec :: Int -> BackendType -> ShowS # show :: BackendType -> String # showList :: [BackendType] -> ShowS # | |
FromRaw WGPUBackendType BackendType Source # | |
Defined in WGPU.Internal.Adapter fromRaw :: MonadIO m => WGPUBackendType -> m BackendType Source # | |
ToRaw BackendType WGPUBackendType Source # | |
Defined in WGPU.Internal.Adapter raw :: BackendType -> ContT r IO WGPUBackendType Source # |
data AdapterProperties Source #
AdapterProperties | |
|
Instances
Eq AdapterProperties Source # | |
Defined in WGPU.Internal.Adapter (==) :: AdapterProperties -> AdapterProperties -> Bool # (/=) :: AdapterProperties -> AdapterProperties -> Bool # | |
Show AdapterProperties Source # | |
Defined in WGPU.Internal.Adapter showsPrec :: Int -> AdapterProperties -> ShowS # show :: AdapterProperties -> String # showList :: [AdapterProperties] -> ShowS # | |
FromRaw WGPUAdapterProperties AdapterProperties Source # | |
Defined in WGPU.Internal.Adapter fromRaw :: MonadIO m => WGPUAdapterProperties -> m AdapterProperties Source # | |
ToRaw AdapterProperties WGPUAdapterProperties Source # | |
Defined in WGPU.Internal.Adapter raw :: AdapterProperties -> ContT r IO WGPUAdapterProperties Source # |
Functions
getAdapterProperties :: MonadIO m => Adapter -> m AdapterProperties Source #
Get information about an adapter.
adapterPropertiesToText :: AdapterProperties -> Text Source #
Format adapter properties into a multi-line block of text.
This can be useful for debugging purposes.