HLSL: Test change: Geometry shaders can't return values from main.

This commit is contained in:
John Kessenich
2017-08-04 13:41:32 -06:00
parent b6be80f44e
commit d319fb4e63
2 changed files with 217 additions and 212 deletions

View File

@@ -1,4 +1,5 @@
struct S {
float clip0 : SV_Position;
float clip0 : SV_ClipDistance0;
float cull0 : SV_CullDistance0;
uint vpai : SV_ViewportArrayIndex;
@@ -7,9 +8,9 @@ struct S {
};
[maxvertexcount(4)]
S main(triangle in uint VertexID[3] : VertexID,
void main(triangle in uint VertexID[3] : VertexID,
inout LineStream<S> OutputStream)
{
S s;
return s;
OutputStream.Append(s);
}