From 1d5b06664fdd31a9447a1d10ec0615245aa46563 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 10 Nov 2013 19:13:54 +1300 Subject: glsl: add new expression types for interpolateAt* Will be used to implement interpolateAt*() from ARB_gpu_shader5 Signed-off-by: Chris Forbes Reviewed-by: Ilia Mirkin --- src/glsl/ir_builder.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/glsl/ir_builder.h') diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h index 108b53a..573596c 100644 --- a/src/glsl/ir_builder.h +++ b/src/glsl/ir_builder.h @@ -186,6 +186,10 @@ ir_expression *b2f(operand a); ir_expression *min2(operand a, operand b); ir_expression *max2(operand a, operand b); +ir_expression *interpolate_at_centroid(operand a); +ir_expression *interpolate_at_offset(operand a, operand b); +ir_expression *interpolate_at_sample(operand a, operand b); + ir_expression *fma(operand a, operand b, operand c); ir_expression *lrp(operand x, operand y, operand a); ir_expression *csel(operand a, operand b, operand c); -- cgit v1.1