| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
WGPU.Internal.Adapter
Description
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.
Constructors
| Adapter | |
Fields
| |
data AdapterType Source #
Physical device type.
Instances
| Eq AdapterType Source # | |
Defined in WGPU.Internal.Adapter | |
| Show AdapterType Source # | |
Defined in WGPU.Internal.Adapter Methods showsPrec :: Int -> AdapterType -> ShowS # show :: AdapterType -> String # showList :: [AdapterType] -> ShowS # | |
| FromRaw WGPUAdapterType AdapterType Source # | |
Defined in WGPU.Internal.Adapter Methods fromRaw :: MonadIO m => WGPUAdapterType -> m AdapterType Source # | |
| ToRaw AdapterType WGPUAdapterType Source # | |
Defined in WGPU.Internal.Adapter Methods raw :: AdapterType -> ContT r IO WGPUAdapterType Source # | |
data BackendType Source #
Backends supported by WGPU.
Constructors
| BackendTypeNull | |
| BackendTypeD3D11 | |
| BackendTypeD3D12 | |
| BackendTypeMetal | |
| BackendTypeVulkan | |
| BackendTypeOpenGL | |
| BackendTypeOpenGLES |
Instances
| Eq BackendType Source # | |
Defined in WGPU.Internal.Adapter | |
| Show BackendType Source # | |
Defined in WGPU.Internal.Adapter Methods showsPrec :: Int -> BackendType -> ShowS # show :: BackendType -> String # showList :: [BackendType] -> ShowS # | |
| FromRaw WGPUBackendType BackendType Source # | |
Defined in WGPU.Internal.Adapter Methods fromRaw :: MonadIO m => WGPUBackendType -> m BackendType Source # | |
| ToRaw BackendType WGPUBackendType Source # | |
Defined in WGPU.Internal.Adapter Methods raw :: BackendType -> ContT r IO WGPUBackendType Source # | |
data AdapterProperties Source #
Constructors
| AdapterProperties | |
Fields
| |
Instances
| Eq AdapterProperties Source # | |
Defined in WGPU.Internal.Adapter Methods (==) :: AdapterProperties -> AdapterProperties -> Bool # (/=) :: AdapterProperties -> AdapterProperties -> Bool # | |
| Show AdapterProperties Source # | |
Defined in WGPU.Internal.Adapter Methods showsPrec :: Int -> AdapterProperties -> ShowS # show :: AdapterProperties -> String # showList :: [AdapterProperties] -> ShowS # | |
| FromRaw WGPUAdapterProperties AdapterProperties Source # | |
Defined in WGPU.Internal.Adapter Methods fromRaw :: MonadIO m => WGPUAdapterProperties -> m AdapterProperties Source # | |
| ToRaw AdapterProperties WGPUAdapterProperties Source # | |
Defined in WGPU.Internal.Adapter Methods 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.