GPUAdapter¶
interface GPUAdapter : AutoCloseable
Properties¶
features¶
abstract val features: GPUSupportedFeatures
The set of values in this.[adapter].[[`features`](index.md#features)].
info¶
abstract val info: GPUAdapterInfo
Information about the physical adapter underlying this GPUAdapter. For a given GPUAdapter, the GPUAdapterInfo values exposed are constant over time.
limits¶
abstract val limits: GPUSupportedLimits
The limits in this.[adapter].[[`limits`](index.md#limits)].
See [GPUAdapter.limits in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpuadapter-limits).
Functions¶
close¶
expect abstract fun close()
requestDevice¶
abstract suspend fun requestDevice(descriptor: GPUDeviceDescriptor? = null): Result<GPUDevice>
Requests a device from the adapter. This is a one-time action: if a device is returned successfully, the adapter becomes "consumed".
**Parameters**
- descriptor: Description of the GPUDevice to request.