Skip to content

Commit 65a761a

Browse files
authored
Fix unused struct in sample shader (shader-slang#5650)
1 parent 9913cfb commit 65a761a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/triangle/shaders.slang

+4-2
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ VertexStageOutput vertexMain(
5757
// Fragment Shader
5858

5959
[shader("fragment")]
60-
float4 fragmentMain(
60+
Fragment fragmentMain(
6161
CoarseVertex coarseVertex : CoarseVertex) : SV_Target
6262
{
6363
float3 color = coarseVertex.color;
6464

65-
return float4(color, 1.0);
65+
Fragment output;
66+
output.color = float4(color, 1.0);
67+
return output;
6668
}

0 commit comments

Comments
 (0)