HLSL: Accept SV_Cull/ClipDistanceN, by refactoring the way semantics are mapped.

This commit is contained in:
John Kessenich
2017-03-09 14:37:32 -07:00
parent 229a6f7f7b
commit 6e1d50a7a2
13 changed files with 754 additions and 114 deletions

View File

@@ -52,6 +52,7 @@ namespace glslang {
bool acceptTokenClass(EHlslTokenClass);
EHlslTokenClass peek() const;
bool peekTokenClass(EHlslTokenClass) const;
glslang::TBuiltInVariable mapSemantic(const TString& semantic) { return scanner.mapSemantic(semantic); }
protected:
HlslToken token; // the token we are currently looking at, but have not yet accepted