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
- Adapter
Options - 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.
- Device
Loss - A loss notification owned by the host rather than by any one JS client.
- GpuError
Traits§
Functions§
- request_
adapter - set_
host - Changes the provider for future requests. Existing adapters/devices retain their original provider’s resources and continue to work.