bevy/crates/bevy_render/src
Matthias Deiml 1fcb7d0c2e Set naga capabilities corresponding to wgpu features (#4824)
# Objective

At the moment all extra capabilities are disabled when validating shaders with naga:
c7c08f95cb/crates/bevy_render/src/render_resource/shader.rs (L146-L149)
This means these features can't be used even if the corresponding wgpu features are active.

## Solution

With these changes capabilities are now set corresponding to `RenderDevice::features`.

---

I have validated these changes for push constants with a project I am currently working on. Though bevy does not support creating pipelines with push constants yet, so I was only able to see that shaders are validated and compiled as expected.
2022-06-03 20:50:50 +00:00
..
camera Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
color Clippy improvements (#4665) 2022-05-31 01:38:07 +00:00
mesh Generate vertex tangents using mikktspace (#3872) 2022-05-31 22:53:54 +00:00
primitives Faster assign lights to clusters (#4345) 2022-04-15 02:53:20 +00:00
render_graph Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
render_phase Clippy improvements (#4665) 2022-05-31 01:38:07 +00:00
render_resource Set naga capabilities corresponding to wgpu features (#4824) 2022-06-03 20:50:50 +00:00
renderer Clippy improvements (#4665) 2022-05-31 01:38:07 +00:00
texture Clippy improvements (#4665) 2022-05-31 01:38:07 +00:00
view Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
extract_component.rs ExtractResourcePlugin (#3745) 2022-05-30 18:36:03 +00:00
extract_resource.rs ExtractResourcePlugin (#3745) 2022-05-30 18:36:03 +00:00
lib.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
render_asset.rs Clippy improvements (#4665) 2022-05-31 01:38:07 +00:00
settings.rs bevy_render: Use RenderDevice to get limits/features and expose AdapterInfo (#3931) 2022-02-16 21:17:37 +00:00