summaryrefslogtreecommitdiff
path: root/render_simple_sswiz_mask.hlps
diff options
context:
space:
mode:
Diffstat (limited to 'render_simple_sswiz_mask.hlps')
-rw-r--r--render_simple_sswiz_mask.hlps25
1 files changed, 25 insertions, 0 deletions
diff --git a/render_simple_sswiz_mask.hlps b/render_simple_sswiz_mask.hlps
new file mode 100644
index 0000000..3d42904
--- /dev/null
+++ b/render_simple_sswiz_mask.hlps
@@ -0,0 +1,25 @@
+/* Automatically generated file; do not edit */
+
+/* simple render shader for source swizzled with mask */
+
+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);
+ s *= m.a;
+ return s;
+}