Lines Matching refs:tex
1026 ir_texture *tex = new(ctx) ir_texture(op); in read_texture() local
1035 tex->set_sampler(sampler); in read_texture()
1039 tex->coordinate = read_rvalue(st, coordinate_expr); in read_texture()
1040 if (tex->coordinate == NULL) { in read_texture()
1059 tex->offsets[0] = offset_x->value(); in read_texture()
1060 tex->offsets[1] = offset_y->value(); in read_texture()
1061 tex->offsets[2] = offset_z->value(); in read_texture()
1065 tex->lod_info.lod = read_rvalue(st, lod_expr); in read_texture()
1066 if (tex->lod_info.lod == NULL) { in read_texture()
1074 tex->projector = NULL; in read_texture()
1076 tex->projector = read_rvalue(st, proj_expr); in read_texture()
1077 if (tex->projector == NULL) { in read_texture()
1090 tex->shadow_comparitor= NULL; in read_texture()
1092 tex->shadow_comparitor = read_rvalue(st, shadow_list); in read_texture()
1093 if (tex->shadow_comparitor == NULL) { in read_texture()
1103 tex->lod_info.bias = read_rvalue(st, lod_expr); in read_texture()
1104 if (tex->lod_info.bias == NULL) { in read_texture()
1110 tex->lod_info.lod = read_rvalue(st, lod_expr); in read_texture()
1111 if (tex->lod_info.lod == NULL) { in read_texture()
1125 tex->lod_info.grad.dPdx = read_rvalue(st, dx_expr); in read_texture()
1126 if (tex->lod_info.grad.dPdx == NULL) { in read_texture()
1130 tex->lod_info.grad.dPdy = read_rvalue(st, dy_expr); in read_texture()
1131 if (tex->lod_info.grad.dPdy == NULL) { in read_texture()
1142 return tex; in read_texture()