Skip to content

Commit 68178d0

Browse files
committed
Add more explanation for wasm features
1 parent 4c23c50 commit 68178d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/states.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ const EXPECTED_PIPELINES: usize = 29;
1616
// render features.
1717
#[cfg(all(target_arch = "wasm32", feature = "webgpu", not(feature = "webgl2")))]
1818
const EXPECTED_PIPELINES: usize = 14;
19-
// Note: you must add these features to your app. See `Cargo.toml`.
19+
// Note: These features can be simplified if your app only builds for one of either
20+
// webgpu or webgl2. Simply use `#[cfg(target_arch = "wasm32")]`. If your app builds
21+
// for both, you must add these features (or similar) to your app. See `Cargo.toml`.
2022
#[cfg(all(target_arch = "wasm32", feature = "webgl2", not(feature = "webgpu")))]
2123
const EXPECTED_PIPELINES: usize = 6;
2224

0 commit comments

Comments
 (0)