Added const qualifier support for function arguments in shaders

This commit is contained in:
Yuri Roubinsky 2020-07-01 11:55:49 +03:00
parent 719609522a
commit c554d9e556
4 changed files with 30 additions and 1 deletions

View file

@ -399,6 +399,9 @@ void ShaderCompilerRD::_dump_function_deps(const SL::ShaderNode *p_node, const S
if (i > 0) {
header += ", ";
}
if (fnode->arguments[i].is_const) {
header += "const ";
}
if (fnode->arguments[i].type == SL::TYPE_STRUCT) {
header += _qualstr(fnode->arguments[i].qualifier) + _mkid(fnode->arguments[i].type_str) + " " + _mkid(fnode->arguments[i].name);
} else {