HLSL: Test change: Geometry shaders can't return values from main.
This commit is contained in:
parent
b6be80f44e
commit
d319fb4e63
2 changed files with 217 additions and 212 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue