Merge pull request #49456 from Chaosus/fix_shader_length
Fix `length()` array function usage in shader
This commit is contained in:
commit
9539e4e39e
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ public:
|
|||
|
||||
virtual DataType get_datatype() const override { return datatype_cache; }
|
||||
virtual String get_datatype_name() const override { return String(struct_name); }
|
||||
virtual int get_array_size() const override { return array_size; }
|
||||
virtual int get_array_size() const override { return (index_expression || call_expression) ? 0 : array_size; }
|
||||
virtual bool is_indexed() const override { return index_expression != nullptr; }
|
||||
|
||||
ArrayNode() :
|
||||
|
|
Loading…
Reference in a new issue