bevy/docs
François 949487d92c
make glsl and spirv support optional (#8491)
# Objective

- Reduce compilation time

## Solution

- Make `spirv` and `glsl` shader format support optional. They are not
needed for Bevy shaders.
- on my mac (where shaders are compiled to `msl`), this reduces the
total build time by 2 to 5 seconds, improvement should be even better
with less cores

There is a big reduction in compile time for `naga`, and small
improvements on `wgpu` and `bevy_render`

This PR with optional shader formats enabled timings:
<img width="1478" alt="current main"
src="https://user-images.githubusercontent.com/8672791/234347032-cbd5c276-a9b0-49c3-b793-481677391c18.png">

This PR:
<img width="1479" alt="this pr"
src="https://user-images.githubusercontent.com/8672791/234347059-a67412a9-da8d-4356-91d8-7b0ae84ca100.png">


---

## Migration Guide

- If you want to use shaders in `spirv`, enable the
`shader_format_spirv` feature
- If you want to use shaders in `glsl`, enable the `shader_format_glsl`
feature
2023-04-25 19:30:48 +00:00
..
cargo_features.md make glsl and spirv support optional (#8491) 2023-04-25 19:30:48 +00:00
debugging.md Useful changes with relicensing benefits (#2497) 2021-07-17 21:59:31 +00:00
linters.md GitHub Action: Check local Markdown links on push (#2067) 2021-05-02 20:22:32 +00:00
linux_dependencies.md Add setup documentation for Alpine Linux (#7752) 2023-02-20 04:31:49 +00:00
plugins_guidelines.md Remove last mentions of Stages (#7553) 2023-02-07 18:07:57 +00:00
profiling.md Process 1 in Chrome tracing starts expanded (#8024) 2023-03-11 03:04:41 +00:00
release_checklist.md Fix release workflow (#4903) 2022-06-06 15:47:51 +00:00
the_bevy_organization.md remove bors and small CI improvements (#7947) 2023-03-07 21:42:53 +00:00