Cargo Features

[dependencies]
li-wgpu-core = { version = "0.18.1", default-features = false, features = ["metal", "vulkan", "gles", "dx11", "dx12", "link", "renderdoc", "strict_asserts", "trace", "replay", "serial-pass", "id32", "wgsl", "fragile-send-sync-non-atomic-wasm", "raw-window-handle"] }
default = link

The link feature is set by default whenever li-wgpu-core is added without default-features = false somewhere in the dependency tree.

metal

Backends, passed through to wgpu-hal

Enables metal of li-wgpu-hal

Affects global::GlobalReport.metal, instance::Instance.metal, instance::Surface.metal

vulkan

Enables vulkan of li-wgpu-hal

Affects global::GlobalReport.vulkan, instance::Instance.vulkan, instance::Surface.vulkan

gles

Enables gles of li-wgpu-hal

Affects global::GlobalReport.gl, instance::Instance.gl, instance::Surface.gl

dx11

Enables dx11 of li-wgpu-hal

Affects global::GlobalReport.dx11, instance::Instance.dx11, instance::Surface.dx11

dx12

Enables dx12 of li-wgpu-hal

Affects global::GlobalReport.dx12, instance::Instance.dx12, instance::Surface.dx12

Use static linking for libraries. Disale to manually link. Enabled by default.

Enables link of li-wgpu-hal

renderdoc

Support the Renderdoc graphics debugger: https://renderdoc.org/

Enables renderdoc of li-wgpu-hal

strict_asserts

Apply run-time checks, even in release builds. These are in addition to the validation carried out at public APIs in all builds.

Enables strict_asserts of wgpu-types ^0.18.0

trace = ron, serde

Enable API tracing

Enables serde of arrayvec, serialize of naga ^0.14.0, trace of wgpu-types ^0.18.0

Affects trace::Trace, device::trace

replay = serde

Enable API replaying

Enables serde of arrayvec, deserialize of naga ^0.14.0, replay of wgpu-types ^0.18.0

Affects device::trace

serial-pass = serde

Enable serializable compute/render passes, and bundle encoders.

Enables serde of arrayvec and wgpu-types ^0.18.0

id32
wgsl

Enable ShaderModuleSource::Wgsl

Enables wgsl-in of naga ^0.14.0

fragile-send-sync-non-atomic-wasm

Implement Send and Sync on Wasm.

Enables fragile-send-sync-non-atomic-wasm of li-wgpu-hal and wgpu-types ^0.18.0

Affects error::ContextError.cause

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

raw-window-handle implicit feature

Enables raw-window-handle ^0.5

raw-window-handle:

Interoperability library for Rust Windowing applications

ron trace?
serde replay? serial-pass? trace?