// shader-cache-graphics-fragment.slang // Output of the vertex shader, and input to the fragment shader. struct CoarseVertex { float3 color; }; // Output of the fragment shader struct Fragment { float4 color; }; // Fragment Shader [shader("fragment")] float4 main( CoarseVertex coarseVertex : CoarseVertex) : SV_Target { float3 color = coarseVertex.color; return float4(color, 1.0); }