]> git.tdb.fi Git - libs/gl.git/commit - source/glsl/optimize.cpp
Adjust GLSL builtins
authorMikko Rasa <tdb@tdb.fi>
Tue, 6 Apr 2021 09:54:06 +0000 (12:54 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 6 Apr 2021 09:57:39 +0000 (12:57 +0300)
commit305b62cf4f7e2a4ca3cc56109003aed6bde61c25
treeb44139eb79e9ade24fff8d092a61a513734d5ba2
parentfe7996a5985e8e7064004d2f42758d89ebf54b57
Adjust GLSL builtins

Remove some functions which are complicated to implement in SPIR-V due
to the use of ad-hoc struct types or pointers.  I may add them back
later if there turns out to be some use for them.

Add inline definitions for some overloads taking mixed vector and scalar
arguments.  SPIR-V operations require all operands to have the same
number of elements.  Builtin functions are always inlined even if used
more than once.
builtin_data/_builtin.glsl
scripts/builtin_funcs.py
source/glsl/optimize.cpp
source/glsl/optimize.h