leod / posh

Type-Safe Graphics Programming with Functional Shaders
136 stars 2 forks source link

Simplify shader function constraints #153

Closed leod closed 1 year ago

leod commented 1 year ago

This is meant to simplify the traits on program creation functions.

We previously only allowed function pointer types as shader functions. Now, we except all types that implement Fn(...) -> ....

As a result, we're also able to allow omitting the uniform type if it is (), which is nice.