diff options
Diffstat (limited to 'render_simple_sswiz_mask_swiz.hlps')
-rw-r--r-- | render_simple_sswiz_mask_swiz.hlps | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/render_simple_sswiz_mask_swiz.hlps b/render_simple_sswiz_mask_swiz.hlps new file mode 100644 index 0000000..84e1288 --- /dev/null +++ b/render_simple_sswiz_mask_swiz.hlps @@ -0,0 +1,26 @@ +/* Automatically generated file; do not edit */
+
+/* simple render shader for source swizzled with mask swizzled */
+
+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);
+ + s.a = s.r; + s.rgb = 0; + float4 m = mask.Sample(mask_sample, input.mask_pos); + m.a = m.r; + s *= m.a;
+ return s;
+}
|