mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 20:10:06 +00:00
17 lines
408 B
GLSL
17 lines
408 B
GLSL
struct VertexShaderOutput
|
|
{
|
|
float4 m_position : SV_POSITION;
|
|
float4 m_color : COLOR0;
|
|
};
|
|
|
|
[maxvertexcount(3)]
|
|
[instance(5)]
|
|
void GeometryShader(triangle VertexShaderOutput input[3], inout TriangleStream<VertexShaderOutput> output, uint id : SV_GSInstanceID)
|
|
{
|
|
[loop]
|
|
for (int i = 0; i < 3; ++i)
|
|
{
|
|
output.Append(input[i]);
|
|
}
|
|
output.RestartStrip();
|
|
} |