pygfx / pyshader

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

More formal opcode definition #18

Closed almarklein closed 4 years ago

almarklein commented 4 years ago

The opcodes of our own bytecode representation is now defined as methods on a class, so that the args of each opcode are documented and can be checked, and a docstring can be attached. Can also generate docs from this later.

Also refactored some of the opcodes a bit. Worth noting that the hashes for the spirv code of all tests are not changed :)