Merge pull request #68808 from CherrySodaPop/global-instance-uniform
This commit is contained in:
commit
e8f9cd8ac5
1 changed files with 16 additions and 14 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue