Nonfunctional: minor: use std::array for per-set shifts, fix warning.
Two unrelated, minor tweaks: (1) Use std::array for shiftBindingForSet. Now matches shiftBinding. (2) Add parens in shouldFlatten() to make compiler warning happy.
This commit is contained in:
parent
573cc9e9aa
commit
2915da303f
2 changed files with 3 additions and 4 deletions
|
|
@ -1157,8 +1157,8 @@ bool HlslParseContext::shouldFlatten(const TType& type, TStorageQualifier qualif
|
|||
case EvqVaryingOut:
|
||||
return type.isStruct() || type.isArray();
|
||||
case EvqUniform:
|
||||
return type.isArray() && intermediate.getFlattenUniformArrays() && topLevel ||
|
||||
type.isStruct() && type.containsOpaque();
|
||||
return (type.isArray() && intermediate.getFlattenUniformArrays() && topLevel) ||
|
||||
(type.isStruct() && type.containsOpaque());
|
||||
default:
|
||||
return type.isStruct() && type.containsOpaque();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue