jalberse / shimmer

Physically based rendering in Rust
Apache License 2.0
33 stars 0 forks source link

Take Tuple params by value, not reference #51

Closed jalberse closed 5 months ago

jalberse commented 5 months ago

This doesn't impact performance as the structs are so small, but it does make callsites a bit cleaner.

For generic functions like lerp(), this is also better since you could just implement the trait bounds on &T if you want to pass by reference.