bevy/pipelined/bevy_render2/src
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
..
camera Merge New Renderer 2021-11-22 23:57:42 -08:00
color fix calls to as_rgba_linear (#3200) 2021-11-28 10:40:42 +00:00
mesh Document the new pipelined renderer (#3094) 2021-11-16 03:37:48 +00:00
primitives Merge New Renderer 2021-11-22 23:57:42 -08:00
render_graph Document the new pipelined renderer (#3094) 2021-11-16 03:37:48 +00:00
render_phase Merge New Renderer 2021-11-22 23:57:42 -08:00
render_resource bevy_render2: Add support for #else for shader defs (#3206) 2021-12-02 03:27:13 +00:00
renderer Document the new pipelined renderer (#3094) 2021-11-16 03:37:48 +00:00
texture Document the new pipelined renderer (#3094) 2021-11-16 03:37:48 +00:00
view Merge New Renderer 2021-11-22 23:57:42 -08:00
lib.rs Shader Imports. Decouple Mesh logic from PBR (#3137) 2021-11-18 03:45:02 +00:00
render_asset.rs Sprite change image (#3207) 2021-12-01 23:09:31 +00:00
render_component.rs Implement iter() for mutable Queries (#2305) 2021-12-01 23:28:10 +00:00