summaryrefslogtreecommitdiff
path: root/tests/projects/other/hlsl2spv/src/test.vs.hlsl
blob: 97fab0408a3ca76c434653c399c2036d5d55800d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
struct VS_INPUT
{
    float2 pos : POSITION;
    float3 color : COLOR0;
};

struct VS_OUTPUT
{
    float4 pos : SV_POSITION;
    float3 color : COLOR0;
};

VS_OUTPUT main(VS_INPUT input)
{
    VS_OUTPUT output;
    output.pos = float4(input.pos, 0.0, 1.0);
    output.color = input.color;
    return output;
}