Merge pull request #68808 from CherrySodaPop/global-instance-uniform

This commit is contained in:
Yuri Rubinsky 2022-11-18 09:49:49 +03:00 committed by GitHub
commit e8f9cd8ac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8190,6 +8190,7 @@ Error ShaderLanguage::_parse_shader(const HashMap<StringName, FunctionInfo> &p_f
};
[[fallthrough]];
case TK_INSTANCE: {
if (tk.type == TK_INSTANCE) {
#ifdef DEBUG_ENABLED
keyword_completion_context = CF_UNIFORM_KEYWORD;
if (_lookup_next(next)) {
@ -8210,6 +8211,7 @@ Error ShaderLanguage::_parse_shader(const HashMap<StringName, FunctionInfo> &p_f
}
uniform_scope = ShaderNode::Uniform::SCOPE_INSTANCE;
}
}
};
[[fallthrough]];
case TK_UNIFORM: