Skip to main content

webgpu_runtime_hardware_class

Function webgpu_runtime_hardware_class 

Source
pub fn webgpu_runtime_hardware_class() -> Result<HardwareClassId, RuntimeConfigError>
Expand description

Return the canonical WebGPU runtime hardware class.

§Examples

let hardware = tenferro_gpu::webgpu::webgpu_runtime_hardware_class()?;
assert_eq!(hardware.as_str(), "tenferro-webgpu.device.v1");

§Errors

Returns RuntimeConfigError if the built-in WebGPU hardware class violates runtime identifier validation.