Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
Device | |
|
data DeviceDescriptor Source #
Describes a Device
.
Instances
Eq DeviceDescriptor Source # | |
Defined in WGPU.Internal.Device (==) :: DeviceDescriptor -> DeviceDescriptor -> Bool # (/=) :: DeviceDescriptor -> DeviceDescriptor -> Bool # | |
Show DeviceDescriptor Source # | |
Defined in WGPU.Internal.Device showsPrec :: Int -> DeviceDescriptor -> ShowS # show :: DeviceDescriptor -> String # showList :: [DeviceDescriptor] -> ShowS # | |
Default DeviceDescriptor Source # | |
Defined in WGPU.Internal.Device def :: DeviceDescriptor # | |
ToRaw DeviceDescriptor WGPUDeviceExtras Source # | |
Defined in WGPU.Internal.Device 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
Device limits.
Represents the set of limits an adapter/device supports.
Limits | |
|
Functions
:: 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.