blob: 0721a1fffb40dcab498f7a3b80bf939f1fd04b2a (
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
25
26
27
28
|
struct VertexStageInput
{
float4 position : POSITION0;
};
struct VertexStageOutput
{
float4 positionClipSpace : SV_POSITION;
};
struct FragmentStageOutput
{
float4 color : SV_TARGET;
};
VertexStageOutput vertexMain(VertexStageInput input) : SV_Position
{
VertexStageOutput output;
output.positionClipSpace = float4(input.position.xy, 1);
return output;
}
FragmentStageOutput fragmentMain() : SV_Target
{
FragmentStageOutput output;
output.color = float4(0, 1, 0, 1);
return output;
}
|