Lines Matching defs:glsl_type
235 get_implicit_conversion_operation(const glsl_type *to, const glsl_type *from,
284 apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from,
312 to = glsl_type::get_instance(to->base_type, from->type->vector_elements,
325 static const struct glsl_type *
330 const glsl_type *type_a = value_a->type;
331 const glsl_type *type_b = value_b->type;
342 return glsl_type::error_type;
355 return glsl_type::error_type;
372 return glsl_type::error_type;
415 return glsl_type::error_type;
450 const glsl_type *type = glsl_type::get_mul_type(type_a, type_b);
452 if (type == glsl_type::error_type) {
464 return glsl_type::error_type;
468 static const struct glsl_type *
469 unary_arithmetic_result_type(const struct glsl_type *type,
483 return glsl_type::error_type;
493 * glsl_type::error_type.
498 static const struct glsl_type *
503 const glsl_type *type_a = value_a->type;
504 const glsl_type *type_b = value_b->type;
507 return glsl_type::error_type;
519 return glsl_type::error_type;
524 return glsl_type::error_type;
545 return glsl_type::error_type;
563 return glsl_type::error_type;
572 return glsl_type::error_type;
586 static const struct glsl_type *
590 const glsl_type *type_a = value_a->type;
591 const glsl_type *type_b = value_b->type;
594 return glsl_type::error_type;
604 return glsl_type::error_type;
608 return glsl_type::error_type;
628 return glsl_type::error_type;
649 return glsl_type::error_type;
653 static const struct glsl_type *
657 const glsl_type *type_a = value_a->type;
658 const glsl_type *type_b = value_b->type;
672 return glsl_type::error_type;
684 return glsl_type::error_type;
691 return glsl_type::error_type;
696 return glsl_type::bool_type;
703 * glsl_type::error_type.
708 static const struct glsl_type *
709 shift_result_type(const struct glsl_type *type_a,
710 const struct glsl_type *type_b,
715 return glsl_type::error_type;
727 return glsl_type::error_type;
733 return glsl_type::error_type;
743 return glsl_type::error_type;
755 return glsl_type::error_type;
850 const glsl_type *lhs_t = lhs->type;
851 const glsl_type *rhs_t = rhs->type;
987 var->type = glsl_type::get_array_instance(lhs->type->fields.array,
1252 constant_one_for_inc_dec(void *ctx, const glsl_type *type)
1361 const struct glsl_type *type, *orig_type;
1486 if (op[0]->type == glsl_type::void_type || op[1]->type == glsl_type::void_type) {
1516 assert(result->type == glsl_type::bool_type);
1543 type = error_emitted ? glsl_type::error_type : op[0]->type;
1558 ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type,
1594 ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type,
1631 result = new(ctx) ir_expression(operations[this->oper], glsl_type::bool_type,
1639 result = new(ctx) ir_expression(operations[this->oper], glsl_type::bool_type,
1660 type = glsl_type::error_type;
1693 type = glsl_type::error_type;
1743 type = glsl_type::error_type;
1795 type = glsl_type::error_type;
2257 static const glsl_type *
2258 process_array_type(YYLTYPE *loc, const glsl_type *base,
2262 const glsl_type *array_type = base;
2272 glsl_type::error_type;
2279 array_type = glsl_type::get_array_instance(array_type, array_size);
2287 precision_qualifier_allowed(const glsl_type *type)
2316 const glsl_type *const t = type->without_array();
2322 const glsl_type *
2323 ast_type_specifier::glsl_type(const char **name,
2326 const struct glsl_type *type;
2354 * precision associated with a given glsl_type we need to know the type string
2358 get_type_name_for_precision_qualifier(const glsl_type *type)
2564 const glsl_type *type,
2608 const glsl_type *
2609 ast_fully_specified_type::glsl_type(const char **name,
2612 return this->specifier->glsl_type(name, state);
2666 const glsl_type *type,
2720 int xfb_offset, const glsl_type *type,
2722 const glsl_type *t_without_array = type->without_array();
2735 const glsl_type *member_t = t_without_array->fields.structure[i].type;
2787 const glsl_type *type,
2806 const glsl_type *base_type = type->without_array();
2902 const struct glsl_type *var_type,
3049 const struct glsl_type *var_type,
3258 const glsl_type *base_type = var->type->without_array();
3360 validate_array_dimensions(const glsl_type *t,
3451 const glsl_type *type = var->type->without_array();
3727 var->type = glsl_type::error_type;
4236 const glsl_type *initializer_type;
4299 var->type = glsl_type::get_array_instance(var->type->fields.array,
4404 var->type = glsl_type::get_array_instance(var->type->fields.array,
4485 const struct glsl_type *decl_type;
4584 decl_type = this->type->glsl_type(& type_name, state);
4713 const struct glsl_type *var_type;
4734 const glsl_type *t;
4884 const glsl_type *check_type = var->type->without_array();
4941 const glsl_type *check_type = var->type->without_array();
4977 const glsl_type *check_type = var->type->without_array();
5070 const glsl_type *type = var->type;
5201 const glsl_type *const t = (earlier == NULL)
5312 const struct glsl_type *type;
5316 type = this->type->glsl_type(& name, state);
5329 type = glsl_type::error_type;
5358 /* This only handles "vec4 foo[..]". The earlier specifier->glsl_type(...)
5366 type = glsl_type::error_type;
5389 type = glsl_type::error_type;
5410 type = glsl_type::error_type;
5512 const glsl_type *return_type =
5513 this->return_type->glsl_type(& return_type_name, state);
5520 return_type = glsl_type::error_type;
5700 f->subroutine_types = ralloc_array(state, const struct glsl_type *,
5704 const struct glsl_type *type;
5739 if (!state->symbols->add_type(this->identifier, glsl_type::get_subroutine_instance(this->identifier))) {
5836 const glsl_type *const ret_type =
5837 (ret == NULL) ? glsl_type::void_type : ret->type;
6085 new(ctx) ir_variable(glsl_type::bool_type,
6098 new(ctx) ir_variable(glsl_type::bool_type,
6110 new(ctx) ir_variable(glsl_type::bool_type,
6371 const glsl_type *type_a = label_const->type;
6372 const glsl_type *type_b = state->switch_state.test_var->type;
6376 glsl_type::int_type->can_implicitly_convert_to(glsl_type::uint_type,
6387 if (!apply_implicit_conversion(glsl_type::uint_type,
6392 if (!apply_implicit_conversion(glsl_type::uint_type,
6542 is_valid_default_precision_type(const struct glsl_type *const type)
6598 const struct glsl_type *const type =
6737 const glsl_type *decl_type =
6738 decl_list->type->glsl_type(& type_name, state);
6903 const struct glsl_type *field_type =
7139 const glsl_type *t =
7140 glsl_type::get_record_instance(fields, decl_count, this->name);
7143 const glsl_type *match = state->symbols->get_type(name);
7150 const glsl_type **s = reralloc(state, state->user_structures,
7151 const glsl_type *,
7172 interface_block_usage_visitor(ir_variable_mode mode, const glsl_type *block)
7193 const glsl_type *block;
7200 const glsl_type *interface_type = v->get_interface_type();
7457 const glsl_type *earlier_per_vertex = NULL;
7581 const glsl_type *block_type =
7582 glsl_type::get_interface_instance(fields,
7662 const glsl_type *block_array_type =
7986 var->type = glsl_type::get_array_instance(var->type->fields.array,
8040 var->type = glsl_type::get_array_instance(var->type->fields.array,
8139 ir_variable(glsl_type::uvec3_type, "gl_WorkGroupSize", ir_var_auto);
8148 var->constant_value = new(var) ir_constant(glsl_type::uvec3_type, &data);
8150 new(var) ir_constant(glsl_type::uvec3_type, &data);
8250 const glsl_type *per_vertex = NULL;