]> git.tdb.fi Git - libs/gl.git/commit
Properly resolve arithmetic assignment operators
authorMikko Rasa <tdb@tdb.fi>
Sun, 7 Mar 2021 09:13:23 +0000 (11:13 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 7 Mar 2021 09:35:52 +0000 (11:35 +0200)
commitf639d088c478fe5d266f9f5779928735b5176976
treeafb8a84a85e58201cd0a89d119df9d86bd1d3471
parentcb8ee1f5ea24a5f7b561fc88d4ff5af3ae364038
Properly resolve arithmetic assignment operators

After 50ab5ca operations like vec3 *= float were failing because the
validator required both operands to be of the same type.  Conversions
also need to be resolved for the right-hand operand.
source/glsl/debug.cpp
source/glsl/generate.cpp
source/glsl/generate.h
source/glsl/validate.cpp
tests/glsl/arithmetic_assignment.glsl [new file with mode: 0644]
tests/glsl/binary_operators.glsl
tests/glsl/invalid_expressions.glsl