bevy/pipelined/bevy_render2
Robert Swain 02b8a782e5 bevy_render2: Add support for #else for shader defs (#3206)
# Objective

- Add support for `#else` for shader defs

## Solution

- When entering a scope with `#ifdef` or `#ifndef`, if the parent scope is truthy, and the shader definition is also truthy, then the a new scope is pushed onto the scope stack that is also truthy, else falsy. When encountering a subsequent else clause within a scope, if the parent is truthy and the current scope is truthy, then it should become falsy. If the parent scope is truthy and the current scope is falsy then it should become truthy. If the parent scope is falsy, then the current scope should remain falsy as the parent scope takes precedent.
- I added a simple test for an else case.
2021-12-02 03:27:13 +00:00
..
src bevy_render2: Add support for #else for shader defs (#3206) 2021-12-02 03:27:13 +00:00
Cargo.toml Update vendored Crevice to 0.8.0 + PR for arrays (#3059) 2021-11-12 01:39:25 +00:00