Home
last modified time | relevance | path

Searched refs:swiz_idx (Results 1 – 2 of 2) sorted by relevance

/external/mesa3d/src/glsl/
Dir.cpp1440 int swiz_idx[4] = { 0, 0, 0, 0 }; in create() local
1460 swiz_idx[i] = idx_map[str[i] - 'a'] - base; in create()
1461 if ((swiz_idx[i] < 0) || (swiz_idx[i] >= (int) vector_length)) in create()
1468 return new(ctx) ir_swizzle(val, swiz_idx[0], swiz_idx[1], swiz_idx[2], in create()
1469 swiz_idx[3], i); in create()
Dir_constant_expression.cpp958 const unsigned swiz_idx[4] = { in constant_expression_value() local
965 case GLSL_TYPE_INT: data.u[i] = v->value.u[swiz_idx[i]]; break; in constant_expression_value()
966 case GLSL_TYPE_FLOAT: data.f[i] = v->value.f[swiz_idx[i]]; break; in constant_expression_value()
967 case GLSL_TYPE_BOOL: data.b[i] = v->value.b[swiz_idx[i]]; break; in constant_expression_value()