forked from nannou-org/nannou
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose
wgpu
features. Use Queue::write_texture
in constructors.
Adds a collection of features to `nannou_wgpu` that match those exposed by `wgpu` itself. The `spirv` feature in particular will be useful for users still using `.spv` shaders (as opposed to the new default `.wgsl` format). Rewrites the `Texture` short-hand constructors to use `Queue::write_texture` rather than using copy commands and submitting command buffers directly. This is to avoid an Intel driver bug where submitting more than one command buffer per frame appears to be causing issues: gfx-rs/wgpu#1672 (comment) While this likely means consuming more RAM, it also likely results in slightly better performance due to reducing the number of command buffers submitted.
- Loading branch information
1 parent
a1dc2fe
commit 81342b6
Showing
4 changed files
with
158 additions
and
28 deletions.
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