mirror of
https://github.com/bevyengine/bevy
synced 2024-12-21 10:33:08 +00:00
02b8a782e5
# 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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |