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]];
|
[[fallthrough]];
|
||||||
case TK_INSTANCE: {
|
case TK_INSTANCE: {
|
||||||
|
if (tk.type == TK_INSTANCE) {
|
||||||
#ifdef DEBUG_ENABLED
|
#ifdef DEBUG_ENABLED
|
||||||
keyword_completion_context = CF_UNIFORM_KEYWORD;
|
keyword_completion_context = CF_UNIFORM_KEYWORD;
|
||||||
if (_lookup_next(next)) {
|
if (_lookup_next(next)) {
|
||||||
|
@ -8210,6 +8211,7 @@ Error ShaderLanguage::_parse_shader(const HashMap<StringName, FunctionInfo> &p_f
|
||||||
}
|
}
|
||||||
uniform_scope = ShaderNode::Uniform::SCOPE_INSTANCE;
|
uniform_scope = ShaderNode::Uniform::SCOPE_INSTANCE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
case TK_UNIFORM:
|
case TK_UNIFORM:
|
||||||
|
|
Loading…
Reference in a new issue