bevy/crates/bevy_render
Joseph d7a0cc6bce
Support operations for render layers and fix equality comparisons (#13310)
# Objective

Allow combining render layers with a more-ergonomic syntax than
`RenderLayers::from_iter(a.iter().chain(b.iter()))`.

## Solution

Add the `or` operation (and corresponding `const` method) to allow
computing the union of a set of render layers. While we're here, also
added `and` and `xor` operations. Someone might find them useful

## Testing

Added a simple unit test.
2024-07-02 07:18:21 +02:00
..
macros Release Candidate 0.14.0-rc.4 2024-06-27 23:29:08 +02:00
src Support operations for render layers and fix equality comparisons (#13310) 2024-07-02 07:18:21 +02:00
Cargo.toml Release Candidate 0.14.0-rc.4 2024-06-27 23:29:08 +02:00
README.md Add README.md to all crates (#13184) 2024-05-02 18:56:00 +00:00

Bevy Render

License Crates.io Downloads Docs Discord