forked from gfx-rs/wgpu
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
980: Group binding writes by wgt::BindingType r=cwfitzgerald a=kvark **Connections** Follows up gfx-rs#970 Fixes gfx-rs#979 **Description** The problem was that Vulkan restriction applies to its own descriptor types, as specified in the layout. I originally interpret this as types specified in the descriptor set. So we erroneously considered `StorageTexture` and `SampledTexture` to be in the same descriptor write. This PR makes it use the `wgt::BindingType` instead. It's a bit richer than Vulkan side, but still correct. We are just more conservative than we have to be. I think gfx-hal API could be better here. Filed gfx-rs/gfx#3408 to look more. **Testing** Tested on gfx-rs#979 test case (thanks!) Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
- Loading branch information
Showing
2 changed files
with
9 additions
and
22 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