Releases: Bevy-Rust-GPU/permutate-macro
Release v0.5.0
Release Notes
Implemented type support
Rust types can now be passed into permutate in textual form, either directly in the attribute macro, or via JSON file.
This allows permutations to be generated based on shared types, provided that the generator and crate using permutate both depend on a compatible upstream crate providing said types.
For example, corresponding type-naming machinery has been added to rust-gpu-bridge, which allows a bevy application to compose a rust type, query its name, write that name into a permutate JSON file, and have that type compilied into a shader crate by rust-gpu-builder, which is then loaded for rendering by the bevy application.
Commits
permutate-macro v0.4.0
Changelog
#[permutate(...)] macro application is now recursive, allowing it to be used in more contexts.
Constants have been implemented; motivated by changes to bevy's shader preprocessor, this allows named values (bool, u32 and i32) to be included as part of a permutation, and injected into generic parameters via permutate!(CONSTANT_NAME).
Attribute macro syntax and JSON format have changed accordingly; see the README for details.
permutate-macro v0.3.0
Initial release.