Skip to main content

Module gpu

Module gpu 

Source
Expand description

Optional GPU backend slot for bulk SIMD offload.

The trait defines the contract a backend (Borsalino/Metal on iOS, a wgpu-based desktop backend, or a test fake) implements so the runtime can dispatch bulk SIMD work to GPU compute. Backends are identified by opaque handles, keeping the trait object-safe and FFI-friendly.

See docs/borsalino-integration.md for the integration design.

Structs§

GpuError
GPU backend failure.

Enums§

GpuErrorKind
The category of a GPU backend failure.

Traits§

GpuBackend
A GPU compute backend for bulk SIMD offload (Borsalino Level 1).

Type Aliases§

GpuBufferId
Opaque handle to a GPU buffer, owned by the backend.
GpuKernelId
Opaque handle to a compiled compute kernel, owned by the backend.