• Home
  • Raw
  • Download

Lines Matching refs:half4

159 half2x4 outerProduct(half4 c, half2 r);
160 half4x2 outerProduct(half2 c, half4 r);
161 half3x4 outerProduct(half4 c, half3 r);
162 half4x3 outerProduct(half3 c, half4 r);
233 half4 sample(sampler1D s, float P);
234 half4 sample(sampler1D s, float P, float bias);
235 half4 sample(sampler2D s, float2 P);
237 half4 sample(samplerExternalOES s, float2 P, float bias);
238 half4 sample(samplerExternalOES s, float2 P);
240 half4 sample(sampler2DRect s, float2 P);
241 half4 sample(sampler2DRect s, float3 P);
245 half4 subpassLoad(subpassInput subpass);
246 half4 subpassLoad(subpassInputMS subpass, int sample);
248 half4 sample(sampler1D s, float2 P);
249 half4 sample(sampler1D s, float2 P, float bias);
250 half4 sample(sampler2D s, float3 P);
251 half4 sample(sampler2D s, float3 P, float bias);
270 half4 blend_clear(half4 src, half4 dst) { return half4(0); }
272 half4 blend_src(half4 src, half4 dst) { return src; }
274 half4 blend_dst(half4 src, half4 dst) { return dst; }
276 half4 blend_src_over(half4 src, half4 dst) { return src + (1 - src.a)*dst; }
278 half4 blend_dst_over(half4 src, half4 dst) { return (1 - dst.a)*src + dst; }
280 half4 blend_src_in(half4 src, half4 dst) { return src*dst.a; }
282 half4 blend_dst_in(half4 src, half4 dst) { return dst*src.a; }
284 half4 blend_src_out(half4 src, half4 dst) { return (1 - dst.a)*src; }
286 half4 blend_dst_out(half4 src, half4 dst) { return (1 - src.a)*dst; }
288 half4 blend_src_atop(half4 src, half4 dst) { return dst.a*src + (1 - src.a)*dst; }
290 half4 blend_dst_atop(half4 src, half4 dst) { return (1 - dst.a) * src + src.a*dst; }
292 half4 blend_xor(half4 src, half4 dst) { return (1 - dst.a)*src + (1 - src.a)*dst; }
294 half4 blend_plus(half4 src, half4 dst) { return min(src + dst, 1); }
296 half4 blend_modulate(half4 src, half4 dst) { return src*dst; }
298 half4 blend_screen(half4 src, half4 dst) { return src + (1 - src)*dst; }
306 half4 blend_overlay(half4 src, half4 dst) {
307 half4 result = half4(_blend_overlay_component(src.ra, dst.ra),
315 half4 blend_darken(half4 src, half4 dst) {
316 half4 result = blend_src_over(src, dst);
321 half4 blend_lighten(half4 src, half4 dst) {
322 half4 result = blend_src_over(src, dst);
353 half4 blend_color_dodge(half4 src, half4 dst) {
354 return half4(_color_dodge_component(src.ra, dst.ra),
371 half4 blend_color_burn(half4 src, half4 dst) {
372 return half4(_color_burn_component(src.ra, dst.ra),
378 half4 blend_hard_light(half4 src, half4 dst) { return blend_overlay(dst, src); }
395 half4 blend_soft_light(half4 src, half4 dst) {
396 return (dst.a == 0) ? src : half4(_soft_light_component(src.ra, dst.ra),
402 half4 blend_difference(half4 src, half4 dst) {
403 return half4(src.rgb + dst.rgb - 2*min(src.rgb*dst.a, dst.rgb*src.a),
407 half4 blend_exclusion(half4 src, half4 dst) {
408 return half4(dst.rgb + src.rgb - 2*dst.rgb*src.rgb, src.a + (1 - src.a)*dst.a);
411 half4 blend_multiply(half4 src, half4 dst) {
412 return half4((1 - src.a)*dst.rgb + (1 - dst.a)*src.rgb + src.rgb*dst.rgb,
466 half4 blend_hue(half4 src, half4 dst) {
470 return half4(_blend_set_color_luminance(_blend_set_color_saturation(sda, dsa), alpha, dsa) +
475 half4 blend_saturation(half4 src, half4 dst) {
479 return half4(_blend_set_color_luminance(_blend_set_color_saturation(dsa, sda), alpha, dsa) +
484 half4 blend_color(half4 src, half4 dst) {
488 return half4(_blend_set_color_luminance(sda, alpha, dsa) + dst.rgb - dsa + src.rgb - sda,
492 half4 blend_luminosity(half4 src, half4 dst) {
496 return half4(_blend_set_color_luminance(dsa, alpha, sda) + dst.rgb - dsa + src.rgb - sda,
501 half4 unpremul(half4 color) { return half4(color.rgb / max(color.a, 0.0001), color.a); }