HLSL: Fix #1154: Support PointSize, as an attribute.
This commit is contained in:
parent
b0159f8565
commit
cc951f8183
9 changed files with 255 additions and 5 deletions
11
Test/hlsl.PointSize.geom
Normal file
11
Test/hlsl.PointSize.geom
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue