pub fn webgpu_runtime_engine_registration(
backend: &WebGpuBackend,
) -> Result<EngineRegistration, RuntimeConfigError>Expand description
Build a runtime engine registration for a WebGpuBackend.
The registration exposes WebGPU direct preparation for dot_general and the
runtime-owned tensor backend execution bridge. Other core operation families
remain unregistered until their WebGPU runtime preparation contracts are
implemented.
§Examples
use tenferro_gpu::webgpu::WebGpuBackend;
let _register: fn(
&WebGpuBackend,
) -> Result<tenferro_runtime::EngineRegistration, tenferro_runtime::RuntimeConfigError> =
tenferro_gpu::webgpu::webgpu_runtime_engine_registration;§Errors
Returns RuntimeConfigError if one of the built-in WebGPU runtime
identifiers violates runtime validation or if the registration is internally
invalid.