vyre_wgpu/lib.rs
1#![deny(unsafe_code)]
2#![deny(missing_docs)]
3
4//! # vyre-wgpu — wgpu backend for the vyre GPU compute specification
5//!
6//! Implements [`vyre::VyreBackend`] on `wgpu::Device` + `wgpu::Queue`. Owns
7//! the GPU runtime: device acquisition, buffer pool, pipeline cache, shader
8//! compilation, and dispatch. Consumers call `WgpuBackend::dispatch(&program,
9//! &inputs, &config)`; lowering to WGSL happens inside this crate.
10//!
11//! This crate has exactly one responsibility: run a vyre IR `Program` on
12//! wgpu. Every other concern — IR construction, algebraic law verification,
13//! certificate generation — lives in a sibling crate.
14
15mod bytemuck_safe;
16
17/// wgpu-backed host engines and runtime glue.
18pub mod engine;
19
20/// wgpu runtime: devices, queues, buffers, shaders, and cache management.
21pub mod runtime;