issues
search
pygfx
/
pyshader
Write modern GPU shaders in Python!
BSD 2-Clause "Simplified" License
72
stars
1
forks
source link
Implement more Python syntax
#7
Open
almarklein
opened
4 years ago
almarklein
commented
4 years ago
[x] Basic arithmetic #16
[x] Casting #16
[x] Tuple swapping (
a, b = b, a
)
[ ] Setting vector attributes (
color.a = 1.0
)
[x] In-place ops (
a += 1
)
[x] Unary expressions (
-a
)
[x] Ternary expressions
[x] if-statements
[x] loops
[x] Calling SpirV builtin functions
a, b = b, a
)color.a = 1.0
)a += 1
)-a
)