blob: 392aa15ba42c1ae24f6976f07012762bfdc8151e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// 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);
}
|