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