diff --git a/Test/hlsl.PointSize.geom b/Test/hlsl.PointSize.geom index d2a04a48d..ef66fc891 100644 --- a/Test/hlsl.PointSize.geom +++ b/Test/hlsl.PointSize.geom @@ -1,5 +1,5 @@ struct S { - [[vk::builtin("PointSize")]] float ps; + [[vk::builtin("PointSize")]] float ps : PSIZE; }; [maxvertexcount(4)] diff --git a/hlsl/hlslParseHelper.cpp b/hlsl/hlslParseHelper.cpp index 31ea82a16..a3e5e8a73 100755 --- a/hlsl/hlslParseHelper.cpp +++ b/hlsl/hlslParseHelper.cpp @@ -5856,7 +5856,8 @@ void HlslParseContext::handleSemantic(TSourceLoc loc, TQualifier& qualifier, TBu break; } - qualifier.builtIn = builtIn; + if (qualifier.builtIn == EbvNone) + qualifier.builtIn = builtIn; qualifier.semanticName = intermediate.addSemanticName(upperCase); }