glcpp: Add test involving token pasting of INTEGER tokens.
[mesa.git] / src / glsl / ir_builder.h
index 410b08cd0528fff647e186c4921154794806650a..067858df45bf7c89e8cc3e80a421ada2f0f0d75b 100644 (file)
@@ -91,6 +91,11 @@ ir_expression *mul(operand a, operand b);
 ir_expression *dot(operand a, operand b);
 ir_expression *saturate(operand a);
 
+/**
+ * Swizzle away later components, but preserve the ordering.
+ */
+ir_swizzle *swizzle_for_size(operand a, unsigned components);
+
 ir_swizzle *swizzle_xxxx(operand a);
 ir_swizzle *swizzle_yyyy(operand a);
 ir_swizzle *swizzle_zzzz(operand a);