ir_function_signature::ir_function_signature(const glsl_type *return_type,
builtin_available_predicate b)
- : return_type(return_type), is_defined(false), builtin_info(b),
+ : return_type(return_type), is_defined(false), builtin_avail(b),
_function(NULL)
{
this->ir_type = ir_type_function_signature;
bool
ir_function_signature::is_builtin() const
{
- return builtin_info != NULL;
+ return builtin_avail != NULL;
}
if (state == NULL)
return true;
- assert(builtin_info != NULL);
- return builtin_info(state);
+ assert(builtin_avail != NULL);
+ return builtin_avail(state);
}
*/
public:
ir_function_signature(const glsl_type *return_type,
- builtin_available_predicate builtin_info = NULL);
+ builtin_available_predicate builtin_avail = NULL);
virtual ir_function_signature *clone(void *mem_ctx,
struct hash_table *ht) const;
* A function pointer to a predicate that answers whether a built-in
* function is available in the current shader. NULL if not a built-in.
*/
- builtin_available_predicate builtin_info;
+ builtin_available_predicate builtin_avail;
/** Function of which this signature is one overload. */
class ir_function *_function;
new(mem_ctx) ir_function_signature(this->return_type);
copy->is_defined = false;
- copy->builtin_info = this->builtin_info;
+ copy->builtin_avail = this->builtin_avail;
copy->origin = this;
/* Clone the parameter list, but NOT the body.