Skip to main content

Module backend

Module backend 

Source
Expand description

Native GPU ownership, shared-device injection and per-client isolation.

This layer contains no JSC values. An embedder can supply its renderer’s device through GpuHost; a JavaScript client’s destroy() never destroys that physical device or replaces the embedder’s error/loss callbacks.

Structs§

Adapter
AdapterOptions
Client
One logical JavaScript GPUDevice. Resource brands use this id even when two clients share an identical physical device.
Context
The physical device and queue, potentially also owned by GPUI.
DeviceLoss
A loss notification owned by the host rather than by any one JS client.
GpuError

Traits§

GpuHost

Functions§

request_adapter
set_host
Changes the provider for future requests. Existing adapters/devices retain their original provider’s resources and continue to work.

Type Aliases§

AdapterFuture