summaryrefslogtreecommitdiff
path: root/render_simple_mask_ca.hlps
blob: b87e93abdefdbe487f52fb8f587c8894a2891e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Automatically generated file; do not edit */

/* simple render shader with mask, component alpha */

SamplerState src_sample : register(s0);
SamplerState mask_sample : register(s1);

Texture2D src : register(t0);
Texture2D mask : register(t1);

struct PS_INPUT {
    float2 src_pos : TEXCOORD0;
    float2 mask_pos : TEXCOORD1;
};

float4 main(PS_INPUT input) : SV_TARGET
{
    float4 s = src.Sample(src_sample, input.src_pos);

    float4 m = mask.Sample(mask_sample, input.mask_pos);
    s *= m;
    return s;
}