HLSL: Correctly identify which variables are global storage class.
This commit is contained in:
parent
532543c1c4
commit
b0a63f578a
35 changed files with 995 additions and 979 deletions
|
|
@ -134,6 +134,8 @@ bool HlslGrammar::acceptDeclaration(TIntermNode*& node)
|
|||
TType type;
|
||||
if (! acceptFullySpecifiedType(type))
|
||||
return false;
|
||||
if (type.getQualifier().storage == EvqTemporary && parseContext.symbolTable.atGlobalLevel())
|
||||
type.getQualifier().storage = EvqGlobal;
|
||||
|
||||
// identifier
|
||||
HlslToken idToken;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue