-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Bevy building for WebAssembly with multithreading #12205
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
9bfeb2e
Get Bevy building when on Wasm when 'atomics' flag is enabled
kettle11 9e5fc79
Merge branch 'bevyengine:main' into multithreaded_wasm
kettle11 eb846f7
Add CI checks to ensure building Wasm with atomics doesn't regress
kettle11 93a6042
Fix CI errors.
kettle11 59eddb5
Use NIGHTLY_TOOLCHAIN env variable
kettle11 106f892
Update crates/bevy_render/src/renderer/mod.rs
kettle11 431aa37
Use derive instead of manual Deref / DerefMut impl
kettle11 1c3d4da
Merge remote-tracking branch 'upstream/main' into multithreaded_wasm
kettle11 9783726
Remove unnecessary +mutable-globals target-feature
kettle11 e183932
Add x86_64-unknown-linux-gnu target to fix failing CI
kettle11 7e34b01
Merge branch 'main' into multithreaded_wasm
kettle11 a14f55e
Attempting to fix build-wasm-atomics CI
kettle11 65cca19
Another attempt at CI fix: add back x86_64-unknown-linux-gnu target
kettle11 0636540
CI fix to download rust-src
kettle11 dd7240c
Try removing x86_64-unknown-linux-gnu from ci.yml
kettle11 e8fab22
Amend comments to add clarifications
kettle11 b99c936
Merge remote-tracking branch 'upstream/main' into multithreaded_wasm
kettle11 29fcef3
Formatting tweak: remove trailing space in comment
kettle11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be ideal if this doesn't need to be public, as it's sort of an implementation detail. Perhaps we should make a wrapper for
Surface
since it's the only type used outside of bevy_render that needs this explicitly.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@james7132 I'd also prefer it to be non-public, but the
RenderQueue
,RenderAdapter
,RenderInstance
, andRenderAdapterInfo
structs all publicly expose their innerwgpu
struct which needs to be wrapped inWgpuWrapper
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK sounds good to me. I believe @robtfm recently found that we may not need these wrappers anymore, but we can tackle that in a separate PR.