summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/test.hlsl
blob: 2417762f839bbcae19b845c084518e87509ac855 (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
struct Input
{
    float4 position : TEXCOORD0;
    float3 color : TEXCOORD1;
};

struct Output
{
    float4 position : SV_Position;
    float3 color : TEXCOORD0;
};

cbuffer buf : register(b0)
{
    row_major float4x4 ubuf_mvp;
};

Output main(Input input)
{
    Output output;
    output.position = mul(input.position, ubuf_mvp);
    output.color = input.color;
    return output;
}