leod / posh

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

Consider adding `Glam` as a `BlockDom` #146

Closed leod closed 3 months ago

leod commented 1 year ago

And implement Into<Block<Gl>> for Block<Glam>.

leod commented 3 months ago

At this point, I don't think we should do this. It complicates the API with even more generics.

Instead, users will have to call .into() to map from their vector library's vector types to e.g posh::gl::Vec2. Seems okay to be explicit about this.