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 10 months ago

jalberse commented 10 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.