Cargo Features

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

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

workaround for docsrs to not build metal-rs.

Enables dx12 of wgpu

wgpu_metal

Enables metal of wgpu

wgpu:

Enables the Metal backend on macOS & iOS.

wgpu_webgpu

Enables webgpu of wgpu

wgpu:

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

stable

Enables stable of librashader-reflect