mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 12:00:05 +00:00
Add test for the instance param (geometry shader)
This commit is contained in:
parent
e314891598
commit
353ef3ac3e
17
Test/hlsl.instance.geom
Normal file
17
Test/hlsl.instance.geom
Normal file
@ -0,0 +1,17 @@
|
||||
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();
|
||||
}
|
@ -434,7 +434,8 @@ INSTANTIATE_TEST_SUITE_P(
|
||||
{"hlsl.typedef.frag", "PixelShaderFunction"},
|
||||
{"hlsl.whileLoop.frag", "PixelShaderFunction"},
|
||||
{"hlsl.void.frag", "PixelShaderFunction"},
|
||||
{"hlsl.type.type.conversion.all.frag", "main"}
|
||||
{"hlsl.type.type.conversion.all.frag", "main"},
|
||||
{"hlsl.instance.geom", "GeometryShader"}
|
||||
}),
|
||||
FileNameAsCustomTestSuffix
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user