pygfx / pyshader

Write modern GPU shaders in Python!
BSD 2-Clause "Simplified" License
72 stars 1 forks source link

Implement casting and basic arithmetic #16

Closed almarklein closed 4 years ago

almarklein commented 4 years ago

To clarify:

Korijn commented 4 years ago

Why do you need wgpu here actually? It's cool that it can be used so easily here by the way :)

almarklein commented 4 years ago

Why do you need wgpu here actually?

So that we can actually run the shaders in the tests to validate that they produce the expected result. I'll update the first comment to better explain when/where what is actually tested.

It's cool that it can be used so easily here by the way :)

Yeah, I'm happy with that compute_with_buffers() :)

Korijn commented 4 years ago

I'll be honest, I don't have the time I would need to review this in detail available. I looked at the tests and they seem to indicate success. :) LGTM