Cargo Features

[dependencies]
li-wgpu = { version = "0.18.0", default-features = false, features = ["strict_asserts", "spirv", "glsl", "wgsl", "trace", "replay", "angle", "webgl", "vulkan-portability", "expose-ids", "fragile-send-sync-non-atomic-wasm"] }
default = wgsl

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

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 optional li-wgpu-core and wgpu-types ^0.18.0

spirv

Enables spv-in of naga ^0.14.0

Affects util::make_spirv

glsl

Enables glsl-in of naga ^0.14.0

wgsl default

Enables wgsl of optional li-wgpu-core

li-wgpu-core:

Enable ShaderModuleSource::Wgsl

trace = serde

Enables trace of li-wgpu-core

li-wgpu-core:

Enable API tracing

replay = serde

Enables replay of li-wgpu-core

li-wgpu-core:

Enable API replaying

angle

Enables the GLES backend on Windows & macOS

Enables gles of li-wgpu-core

webgl = hal

Enables gles of li-wgpu-core

vulkan-portability

Enables the Vulkan backend on macOS & iOS

Enables vulkan of li-wgpu-core

expose-ids

Affects li-wgpu::Id

fragile-send-sync-non-atomic-wasm

Implement Send and Sync on Wasm.

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

Affects context::BufferMapCallback, context::InstanceRequestAdapterFuture, context::DevicePopErrorFuture, context::SubmittedWorkDoneCallback

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.

serde replay? trace?
hal not wasm32 emscripten not wasm32 unix not ios not mac wasm32 win fragile-send-sync-non-atomic-wasm? webgl?

Enables li-wgpu-hal

naga glsl? spirv?

Enables naga ^0.14.0

wgc angle? fragile-send-sync-non-atomic-wasm? replay? trace? vulkan-portability? webgl?

Enables li-wgpu-core