Bevy-Rust-GPU / rust-gpu-sdf

Signed distance field library usable on both CPU and GPU.
Apache License 2.0
12 stars 1 forks source link

bevy-rust-gpu pipeline #11

Open Shfty opened 1 year ago

Shfty commented 1 year ago

Need to set up a shader crate and verify that rust-gpu-sdf can be compiled into SPIR-V.

Shfty commented 1 year ago

On deeper workflow:

Since SDFs are heavily-nested rust types, it shouldn't be too hard to pass them across the bevy / shader workspace boundary in textual form via a new types param for permutate-macro, thus eliminating the need to enumerate them via parameter or basic const type when hot-rebuilding.

And since rust-gpu-sdf can be used in both, all manner of interesting CPU-side functionality could be implemented by extending SignedDistanceField with custom attributes.

A few ideas: