HLSL: Fix #1154: Support PointSize, as an attribute.

This commit is contained in:
John Kessenich
2017-12-06 07:33:36 -07:00
parent b0159f8565
commit cc951f8183
9 changed files with 255 additions and 5 deletions

11
Test/hlsl.PointSize.geom Normal file
View File

@@ -0,0 +1,11 @@
struct S {
[[vk::builtin("PointSize")]] float ps;
};
[maxvertexcount(4)]
void main([[vk::builtin("PointSize")]] triangle in uint ps[3],
inout LineStream<S> OutputStream)
{
S s;
OutputStream.Append(s);
}