| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
WGPU.Internal.Device
Description
Synopsis
- data Device = Device {
- deviceInst :: !Instance
- wgpuDevice :: !WGPUDevice
- data DeviceDescriptor = DeviceDescriptor {}
- newtype Features = Features {}
- data Limits = Limits {}
- requestDevice :: MonadIO m => Adapter -> DeviceDescriptor -> m (Maybe Device)
Types
An open connection to a graphics and/or compute device.
A Device may be created using the requestDevice function.
Constructors
| Device | |
Fields
| |
data DeviceDescriptor Source #
Describes a Device.
Constructors
| DeviceDescriptor | |
Instances
| Eq DeviceDescriptor Source # | |
Defined in WGPU.Internal.Device Methods (==) :: DeviceDescriptor -> DeviceDescriptor -> Bool # (/=) :: DeviceDescriptor -> DeviceDescriptor -> Bool # | |
| Show DeviceDescriptor Source # | |
Defined in WGPU.Internal.Device Methods showsPrec :: Int -> DeviceDescriptor -> ShowS # show :: DeviceDescriptor -> String # showList :: [DeviceDescriptor] -> ShowS # | |
| Default DeviceDescriptor Source # | |
Defined in WGPU.Internal.Device Methods def :: DeviceDescriptor # | |
| ToRaw DeviceDescriptor WGPUDeviceExtras Source # | |
Defined in WGPU.Internal.Device Methods raw :: DeviceDescriptor -> ContT r IO WGPUDeviceExtras Source # | |
Device features that are not guaranteed to be supported.
- NOTE: The Rust API currently has far more extensive
Features. Perhaps they have not yet been ported to the C API? https://docs.rs/wgpu-types/0.9.0/wgpu_types/struct.Features.html
Constructors
| Features | |
Fields | |
Device limits.
Represents the set of limits an adapter/device supports.
Constructors
| Limits | |
Fields
| |
Functions
Arguments
| :: MonadIO m | |
| => Adapter |
|
| -> DeviceDescriptor | The features and limits requested for the device. |
| -> m (Maybe Device) | The returned |
Requests a connection to a physical device, creating a logical device.
This action blocks until an available device is returned.