aboutsummaryrefslogtreecommitdiff
path: root/dxg/shaders/imm.hlsl
blob: da6b1f681fc118b743ec1d6bd38c3c7ec65d0060 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
struct VertexIn {
    float3 position : POSITION;
};

struct VertexOut {
    float4 position : SV_POSITION;
};

struct PixelOut {
    float4 color : SV_TARGET;
};

VertexOut vs(VertexIn vin) {
    VertexOut vout;
    vout.position = float4(vin.position, 1.0f);
    return vout;
}

PixelOut ps(VertexOut vout) {
    PixelOut pixel;
    pixel.color = float4(0.9f, 0.2f, 0.9f, 1.0f);
    return pixel;
}