blob: 487aee0e1cb94607abf9b4c87bacaa2d61896a39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
struct PSInput
{
float4 position : SV_POSITION;
float4 color : COLOR;
};
// Vertex shader
PSInput VSMain(float4 position : POSITION, float4 color : COLOR)
{
PSInput result;
result.position = position;
result.color = color;
return result;
}
// Pixel shader
float4 PSMain(PSInput input) : SV_TARGET
{
return input.color;
}
|