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

[Merged by Bors] - update for wgpu 0.8 #1959

Closed
wants to merge 11 commits into from

Conversation

mockersf
Copy link
Member

@mockersf mockersf commented Apr 18, 2021

Changes to get Bevy to compile with wgpu master.

With this, on a Mac:

  • 2d examples look fine
  • 3d examples crash with an error specific to metal about a compilation error
  • 3d examples work fine after enabling feature wgpu/cross

Feature wgpu/cross seems to be needed only on some platforms, not sure how to know which. It was introduced in gfx-rs/wgpu-rs#826

@mockersf mockersf changed the title update for wgpu main update for wgpu master Apr 18, 2021
@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen C-Dependencies A change to the crates that Bevy depends on labels Apr 18, 2021
@mockersf
Copy link
Member Author

feature wgpu/cross can be removed after gfx-rs/naga#693 has been released 🎉

@ColdIce1605
Copy link
Contributor

wgpu 0.8 has been released 🎉

@mockersf
Copy link
Member Author

mockersf commented Apr 29, 2021

updated to 0.8!

examples fails to run with

wgpu error: Validation Error

Caused by:
    In Device::create_bind_group
    sampler binding 3 expects filtering = false, but given a sampler with filtering = true

but didn't find yet any place where we put filtering to true

@mockersf mockersf changed the title update for wgpu master update for wgpu 0.8 Apr 29, 2021
@mockersf mockersf marked this pull request as ready for review April 29, 2021 20:40
@mockersf
Copy link
Member Author

mockersf commented Apr 29, 2021

fixed above issue by setting all sampler bindings to filtering
check in wgpu was introduced in gfx-rs/wgpu@92886b4 (and gfx-rs/wgpu@280ba30)

@cart
Copy link
Member

cart commented Apr 30, 2021

I think in general we should probably just rename our types to match wgpu. Mirroring makes it easier for concepts to transfer.

@mtsr
Copy link
Contributor

mtsr commented May 2, 2021

There's a whole bunch more validation in wgpu-0.8, it would be really nice to upgrade just for that alone.

@mockersf
Copy link
Member Author

mockersf commented May 2, 2021

I think I renamed everything following the changes in wgpu

@cart
Copy link
Member

cart commented May 2, 2021

bors r+

bors bot pushed a commit that referenced this pull request May 2, 2021
Changes to get Bevy to compile with wgpu master.

With this, on a Mac:
* 2d examples look fine
* ~~3d examples crash with an error specific to metal about a compilation error~~
* 3d examples work fine after enabling feature `wgpu/cross`


Feature `wgpu/cross` seems to be needed only on some platforms, not sure how to know which. It was introduced in gfx-rs/wgpu-rs#826
@bors bors bot changed the title update for wgpu 0.8 [Merged by Bors] - update for wgpu 0.8 May 2, 2021
@bors bors bot closed this May 2, 2021
ostwilkens pushed a commit to ostwilkens/bevy that referenced this pull request Jul 27, 2021
Changes to get Bevy to compile with wgpu master.

With this, on a Mac:
* 2d examples look fine
* ~~3d examples crash with an error specific to metal about a compilation error~~
* 3d examples work fine after enabling feature `wgpu/cross`


Feature `wgpu/cross` seems to be needed only on some platforms, not sure how to know which. It was introduced in gfx-rs/wgpu-rs#826
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Dependencies A change to the crates that Bevy depends on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants