wgpu-hs-0.4.0.0: WGPU
Safe HaskellNone
LanguageHaskell2010

WGPU.Internal.Adapter

Description

 
Synopsis

Types

data Adapter Source #

Handle to a physical graphics and/or compute device.

Request an Adapter for a Surface using the requestAdapter function.

Constructors

Adapter 

Instances

Instances details
Eq Adapter Source # 
Instance details

Defined in WGPU.Internal.Adapter

Methods

(==) :: Adapter -> Adapter -> Bool #

(/=) :: Adapter -> Adapter -> Bool #

Show Adapter Source # 
Instance details

Defined in WGPU.Internal.Adapter

ToRaw Adapter WGPUAdapter Source # 
Instance details

Defined in WGPU.Internal.Adapter

Functions

requestAdapter Source #

Arguments

:: MonadIO m 
=> Surface

Existing surface for which to request an Adapter.

-> m (Maybe Adapter)

The returned Adapter, if it could be retrieved.

Request an Adapter that is compatible with a given Surface.

This action blocks until an available adapter is returned.

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.