Cargo Features

librashader-runtime-wgpu has no features set by default.

[dependencies]
librashader-runtime-wgpu = { version = "0.2.7", features = ["wgpu_dx12", "wgpu_metal", "wgpu_webgpu"] }
wgpu_dx12

workaround for docsrs to not build metal-rs.

Enables dx12 of wgpu ^0.19.3

wgpu_metal

Enables metal of wgpu ^0.19.3

wgpu:

Enables the Metal backend on macOS & iOS.

wgpu_webgpu

Enables webgpu of wgpu ^0.19.3

wgpu:

Enables the WebGPU backend on Wasm. Disabled when targeting emscripten.