Add handling for more `naga` capabilities
Objective
Following on from https://github.com/bevyengine/bevy/pull/4824, this MR adds the capabilities for:
-
MULTISAMPLED_SHADING -
TEXTURE_FORMAT_16BIT_NORM -
MULTIVIEW -
EARLY_DEPTH_TEST
Solution
RenderAdapter is passed down, and then downlevel flags are translated into capabilities that are passed into wgpu.
shader_prepass example has been changed to show that multisampled shading now works, by adding a controller for MSAA. The text color changes have also been removed, as otherwise the text couldn't be seen on the motion vectors screen.
Changelog
Added support for more naga capabilities.
Migration Guide
PipelineCache::new now takes a RenderAdapter.
Resolved changes with #5703
@IceSentry Thanks for the response - I've just fixed the merge conflict.
This will be superseded by https://github.com/gfx-rs/wgpu/pull/5606 once we upgrade to wgpu 0.20 #13186.
@JMS55 should we pursue this or simply close it out in favor of the linked PR?
Close it in favor of the wgpu update PR, but we have to remember to make the change in that PR.