wgpu-hs-0.3.0.0: WGPU
Safe HaskellNone
LanguageHaskell2010

WGPU.Internal.Device

Description

 
Synopsis

Types

data Device Source #

An open connection to a graphics and/or compute device.

A Device may be created using the requestDevice function.

Constructors

Device 

Instances

Instances details
Eq Device Source # 
Instance details

Defined in WGPU.Internal.Device

Methods

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

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

Show Device Source # 
Instance details

Defined in WGPU.Internal.Device

ToRaw Device WGPUDevice Source # 
Instance details

Defined in WGPU.Internal.Device

data DeviceDescriptor Source #

Describes a Device.

Constructors

DeviceDescriptor 

Fields

newtype Features Source #

Device features that are not guaranteed to be supported.

Instances

Instances details
Eq Features Source # 
Instance details

Defined in WGPU.Internal.Device

Show Features Source # 
Instance details

Defined in WGPU.Internal.Device

Default Features Source # 
Instance details

Defined in WGPU.Internal.Device

Methods

def :: Features #

ToRaw Features WGPUNativeFeature Source # 
Instance details

Defined in WGPU.Internal.Device

data Limits Source #

Device limits.

Represents the set of limits an adapter/device supports.

Constructors

Limits 

Fields

Instances

Instances details
Eq Limits Source # 
Instance details

Defined in WGPU.Internal.Device

Methods

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

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

Show Limits Source # 
Instance details

Defined in WGPU.Internal.Device

Default Limits Source # 
Instance details

Defined in WGPU.Internal.Device

Methods

def :: Limits #

Functions

requestDevice Source #

Arguments

:: MonadIO m 
=> Adapter

Adapter for which the device will be returned.

-> DeviceDescriptor

The features and limits requested for the device.

-> m (Maybe Device)

The returned Device, if it could be retrieved.

Requests a connection to a physical device, creating a logical device.

This action blocks until an available device is returned.