Lines Matching refs:name

226 #define MATRIX(name, statevar)				\
227 static const struct gl_builtin_uniform_element name ## _elements[] = { \
265 #define STATEVAR(name) {#name, name ## _elements, ARRAY_SIZE(name ## _elements)}
364 const char *name, enum glsl_interp_mode interp);
382 int precision, const char *name,
387 this->fields[this->num_fields].name = name;
441 const glsl_type *type(const char *name)
443 return symtab->get_type(name);
447 const char *name,
450 return add_variable(name, type, precision, ir_var_shader_in, slot, interp);
453 ir_variable *add_input(int slot, const glsl_type *type, const char *name,
456 return add_input(slot, type, GLSL_PRECISION_NONE, name, interp);
460 const char *name)
462 return add_variable(name, type, precision, ir_var_shader_out, slot);
465 ir_variable *add_output(int slot, const glsl_type *type, const char *name)
467 return add_output(slot, type, GLSL_PRECISION_NONE, name);
471 int precision, const char *name)
473 return add_index_variable(name, type, precision, ir_var_shader_out, slot,
478 const char *name)
480 return add_variable(name, type, precision, ir_var_system_value, slot);
483 const char *name)
485 return add_system_value(slot, type, GLSL_PRECISION_NONE, name);
488 ir_variable *add_variable(const char *name, const glsl_type *type,
491 ir_variable *add_index_variable(const char *name, const glsl_type *type,
495 const char *name);
496 ir_variable *add_uniform(const glsl_type *type, const char *name)
498 return add_uniform(type, GLSL_PRECISION_NONE, name);
500 ir_variable *add_const(const char *name, int precision, int value);
501 ir_variable *add_const(const char *name, int value)
503 return add_const(name, GLSL_PRECISION_MEDIUM, value);
505 ir_variable *add_const_ivec3(const char *name, int x, int y, int z);
507 const char *name,
509 void add_varying(int slot, const glsl_type *type, const char *name,
512 add_varying(slot, type, GLSL_PRECISION_NONE, name, interp);
558 builtin_variable_generator::add_index_variable(const char *name,
564 ir_variable *var = new(symtab) ir_variable(type, name, mode);
604 builtin_variable_generator::add_variable(const char *name,
610 ir_variable *var = new(symtab) ir_variable(type, name, mode);
650 _mesa_glsl_get_builtin_uniform_desc(const char *name)
652 for (unsigned i = 0; _mesa_builtin_uniform_desc[i].name != NULL; i++) {
653 if (strcmp(_mesa_builtin_uniform_desc[i].name, name) == 0) {
663 const char *name)
666 add_variable(name, type, precision, ir_var_uniform, -1);
669 _mesa_glsl_get_builtin_uniform_desc(name);
696 builtin_variable_generator::add_const(const char *name, int precision,
699 ir_variable *const var = add_variable(name, glsl_type::int_type,
709 builtin_variable_generator::add_const_ivec3(const char *name, int x, int y,
712 ir_variable *const var = add_variable(name, glsl_type::ivec3_type,
1034 char name[128];
1036 snprintf(name, sizeof(name), "gl_CurrentAttribFrag%uMESA", i);
1037 add_uniform(vec4_t, name);
1494 int precision, const char *name,
1501 this->per_vertex_in.add_field(slot, type, precision, name, interp);
1504 this->per_vertex_out.add_field(slot, type, precision, name, interp);
1507 add_input(slot, type, precision, name, interp);
1640 add_variable(fields[i].name, fields[i].type, fields[i].precision,