mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-24 11:50:06 +00:00
c6510a33ff
Using GS methods such as Append() in non-GS stages should be ignored, but was creating errors due to the lack of a stream output symbol for the non-GS stage.
18 lines
349 B
GLSL
18 lines
349 B
GLSL
// test geometry shader in fragment shader. GS attributes should be successfully ignored.
|
|
|
|
struct myVertex {
|
|
float4 pos : SV_Position;
|
|
};
|
|
|
|
[maxvertexcount(1)]
|
|
void GS_Draw(point myVertex IN, inout PointStream<myVertex> OutputStream)
|
|
{
|
|
OutputStream.Append(IN);
|
|
OutputStream.RestartStrip();
|
|
}
|
|
|
|
float4 main() : SV_TARGET
|
|
{
|
|
return 0;
|
|
}
|