Skip to content
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

Test that Renderer + Scene are Send. #556

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

waywardmonkeys
Copy link
Collaborator

Usages within Bevy and other frameworks are simpler when these types are Send.

@waywardmonkeys
Copy link
Collaborator Author

I wanted this in my own integration, but was reminded when I saw the change from Rc to Arc during the development of #555. This will help to catch that issue earlier in the development cycle.

@waywardmonkeys waywardmonkeys force-pushed the test-send branch 2 times, most recently from fe2f1f3 to 0cfe8fd Compare April 22, 2024 04:53
Copy link
Member

@DJMcNab DJMcNab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

I would change this to use const _: () instead, but that's an easy change

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@waywardmonkeys waywardmonkeys force-pushed the test-send branch 2 times, most recently from 77a7f32 to 31f361e Compare April 25, 2024 08:13
The `Renderer` will no be `Send` on wasm32 targets due to
differences in the underlying `wgpu` library (unless a
feature is enabled for `wgpu`).

Usages within Bevy and other frameworks are simpler when these
types are `Send`.
Copy link
Member

@DJMcNab DJMcNab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@waywardmonkeys waywardmonkeys added this pull request to the merge queue Apr 25, 2024
Merged via the queue into linebender:main with commit d36f2e6 Apr 25, 2024
15 checks passed
@waywardmonkeys waywardmonkeys deleted the test-send branch April 25, 2024 09:35
@waywardmonkeys waywardmonkeys added this to the Vello 0.2 release milestone May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants