HLSL: Fix 1201: Accept 'layout' as an identifier.

This commit is contained in:
John Kessenich
2017-12-29 20:59:13 -07:00
parent 046bae0bab
commit fd1e8a78a8
3 changed files with 114 additions and 85 deletions

View File

@@ -4077,6 +4077,7 @@ const char* HlslGrammar::getTypeString(EHlslTokenClass tokenClass) const
case EHTokMin16int: return "min16int";
case EHTokMin12int: return "min12int";
case EHTokConstantBuffer: return "ConstantBuffer";
case EHTokLayout: return "layout";
default:
return nullptr;
}