* component-wise on their operands. These result with the same type
* they operated on."
*/
- if (!is_numeric_base_type(type->base_type))
+ if (!type->is_numeric())
return glsl_type::error_type;
return type;
* than or equal (>=), and less than or equal (<=) operate only on
* scalar integer and scalar floating-point expressions."
*/
- if (! is_numeric_base_type(type_a->base_type)
- || ! is_numeric_base_type(type_b->base_type)
+ if (!type_a->is_numeric()
+ || !type_b->is_numeric()
|| !type_a->is_scalar()
|| !type_b->is_scalar())
return glsl_type::error_type;
#define GLSL_TYPE_VOID 8
#define GLSL_TYPE_ERROR 9
-#define is_numeric_base_type(b) \
- (((b) >= GLSL_TYPE_UINT) && ((b) <= GLSL_TYPE_FLOAT))
-
#define is_error_type(t) ((t)->base_type == GLSL_TYPE_ERROR)
enum glsl_sampler_dim {