]> git.tdb.fi Git - libs/gl.git/commit
Refactor resolution of declarations for MemberAccess
authorMikko Rasa <tdb@tdb.fi>
Sat, 6 Mar 2021 12:04:24 +0000 (14:04 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 6 Mar 2021 12:04:24 +0000 (14:04 +0200)
commit6d11ee7d6137117f441951615cd4cde4d59bf968
tree96cd7794af7e39761de49cd9b84080840bb4e67e
parentcaa84a9d8adce6dc702f6e0ae32961b77a0a73ea
Refactor resolution of declarations for MemberAccess

Now that expressions have types, there's no need to "return" the members
from deeper in the hierarchy anymore.

Since member type resolution now depends on the type of the left-hand
expression of MemberAccess, variables and expressions need to be resolved
in a loop until there's nothing more to resolve.
source/glsl/compiler.cpp
source/glsl/compiler.h
source/glsl/generate.cpp
source/glsl/generate.h