You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nicopap opened this issue
Aug 7, 2023
· 1 comment
· Fixed by #10163
Labels
C-DocsAn addition or correction to our documentationD-TrivialNice and easy! A great choice to get started with BevyO-WebGPUSpecific to the WebGPU render API
To be able to use WebGPU on web, you need to set the RUSTFLAGS environment variable to --cfg=web_sys_unstable_apis. Nowhere is it mentioned in the bevy docs, and it's not trivial to find out from searching the bevy repo.
No mention is made of that environment variable. Also, it's implied that everything should work, there is no obvious disclaimer that it's "experimental" or "unsupported" and instructions are provided specifically wrt to WebGPU.
Apparently I'm not the only one who encountered this: #9177
I had this exact same issue when trying to ship a WASM build to itch.io. I just pushed #10163 to try to add some more details on this matter. Please let me know if the added documentation is enough and is understandable. Thanks for filing it!
# Objective
- Fixes#9382
## Solution
- Added a few extra notes in regards to WebGPU experimental state and
the need of enabling unstable APIs through certain attribute flags in
`cargo_features.md` and the examples `README.md` files.
ameknite
pushed a commit
to ameknite/bevy
that referenced
this issue
Nov 6, 2023
# Objective
- Fixesbevyengine#9382
## Solution
- Added a few extra notes in regards to WebGPU experimental state and
the need of enabling unstable APIs through certain attribute flags in
`cargo_features.md` and the examples `README.md` files.
# Objective
- Fixesbevyengine#9382
## Solution
- Added a few extra notes in regards to WebGPU experimental state and
the need of enabling unstable APIs through certain attribute flags in
`cargo_features.md` and the examples `README.md` files.
C-DocsAn addition or correction to our documentationD-TrivialNice and easy! A great choice to get started with BevyO-WebGPUSpecific to the WebGPU render API
How can Bevy's documentation be improved?
To be able to use WebGPU on web, you need to set the
RUSTFLAGS
environment variable to--cfg=web_sys_unstable_apis
. Nowhere is it mentioned in the bevy docs, and it's not trivial to find out from searching the bevy repo.Reading the docs at:
No mention is made of that environment variable. Also, it's implied that everything should work, there is no obvious disclaimer that it's "experimental" or "unsupported" and instructions are provided specifically wrt to WebGPU.
Apparently I'm not the only one who encountered this: #9177
The text was updated successfully, but these errors were encountered: