]> git.tdb.fi Git - libs/gl.git/commit
Don't make the result variable of an inlined builtin function a builtin
authorMikko Rasa <tdb@tdb.fi>
Sat, 23 Dec 2023 16:16:25 +0000 (18:16 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 23 Dec 2023 16:22:05 +0000 (18:22 +0200)
commit8ae3a11fd1feb6f490b5e5b229c4891abc1e4a0d
treebe41e37da09b7cac4a2b5af95751df45e48a076a
parent75e17f2ce0923500de0cac6ecd25557ba945916b
Don't make the result variable of an inlined builtin function a builtin

A few builtin function overloads are actually defined in the builtins
module and can be inlined.  However the GLSL formatter skips any builtin
statements, which caused the variable to go missing.
source/glsl/optimize.cpp
tests/glsl/inline_builtin.glsl [new file with mode: 0644]