Commit 788fbeb3 by John Kessenich

HLSL: Make attributes for built-in override semantics.

Fixes #1188.
parent a67d0706
struct S { struct S {
[[vk::builtin("PointSize")]] float ps; [[vk::builtin("PointSize")]] float ps : PSIZE;
}; };
[maxvertexcount(4)] [maxvertexcount(4)]
......
...@@ -5856,7 +5856,8 @@ void HlslParseContext::handleSemantic(TSourceLoc loc, TQualifier& qualifier, TBu ...@@ -5856,7 +5856,8 @@ void HlslParseContext::handleSemantic(TSourceLoc loc, TQualifier& qualifier, TBu
break; break;
} }
qualifier.builtIn = builtIn; if (qualifier.builtIn == EbvNone)
qualifier.builtIn = builtIn;
qualifier.semanticName = intermediate.addSemanticName(upperCase); qualifier.semanticName = intermediate.addSemanticName(upperCase);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment