Skip to main content

webgpu_runtime_engine_registration_with_id

Function webgpu_runtime_engine_registration_with_id 

Source
pub fn webgpu_runtime_engine_registration_with_id(
    backend: &WebGpuBackend,
    engine_id: EngineId,
) -> Result<EngineRegistration, RuntimeConfigError>
Expand description

Build a WebGPU runtime engine registration with a caller-selected engine ID.

The provider/device identity remains tied to the selected WebGPU device; only the runtime placement identity is supplied by the caller.

§Errors

Returns RuntimeConfigError if the caller-selected engine identifier, the selected backend’s provider/device identity, or the assembled hardware and storage metadata fails validation.