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

Reexport wgpu::Maintain #10461

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Conversation

SludgePhD
Copy link
Contributor

Objective

Calling RenderDevice::poll requires an instance of wgpu::Maintain, but the type was not reexported by bevy. Working around it requires adding a dependency on wgpu, since bevy does not reexport the wgpu crate as a whole anywhere.

Solution

Reexport wgpu::Maintain in render_resource, where the other wgpu types are reexported.

Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

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

Limited version of #10272

@alice-i-cecile alice-i-cecile added this pull request to the merge queue Nov 9, 2023
@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen C-Usability A simple quality-of-life change that makes Bevy easier to use S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it labels Nov 9, 2023
Merged via the queue into bevyengine:main with commit f91f69e Nov 9, 2023
25 checks passed
@SludgePhD SludgePhD deleted the reexport-maintain branch November 9, 2023 17:16
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
# Objective

Calling `RenderDevice::poll` requires an instance of `wgpu::Maintain`,
but the type was not reexported by bevy. Working around it requires
adding a dependency on `wgpu`, since bevy does not reexport the `wgpu`
crate as a whole anywhere.

## Solution

Reexport `wgpu::Maintain` in `render_resource`, where the other wgpu
types are reexported.
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-Usability A simple quality-of-life change that makes Bevy easier to use S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants