Lines Matching defs:tex
105 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 3);
106 tex->sampler_dim = tex_dim;
107 tex->op = nir_texop_tex;
108 tex->src[0].src_type = nir_tex_src_coord;
109 tex->src[0].src = nir_src_for_ssa(tex_pos);
110 tex->src[1].src_type = nir_tex_src_texture_deref;
111 tex->src[1].src = nir_src_for_ssa(tex_deref);
112 tex->src[2].src_type = nir_tex_src_sampler_deref;
113 tex->src[2].src = nir_src_for_ssa(tex_deref);
114 tex->dest_type = nir_type_float32; /* TODO */
115 tex->is_array = glsl_sampler_type_is_array(sampler_type);
116 tex->coord_components = tex_pos->num_components;
118 nir_ssa_dest_init(&tex->instr, &tex->dest, 4, 32, "tex");
119 nir_builder_instr_insert(&b, &tex->instr);
123 nir_store_var(&b, color_out, &tex->dest.ssa, 0xf);
153 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 3);
154 tex->sampler_dim = tex_dim;
155 tex->op = nir_texop_tex;
156 tex->src[0].src_type = nir_tex_src_coord;
157 tex->src[0].src = nir_src_for_ssa(tex_pos);
158 tex->src[1].src_type = nir_tex_src_texture_deref;
159 tex->src[1].src = nir_src_for_ssa(tex_deref);
160 tex->src[2].src_type = nir_tex_src_sampler_deref;
161 tex->src[2].src = nir_src_for_ssa(tex_deref);
162 tex->dest_type = nir_type_float32; /* TODO */
163 tex->is_array = glsl_sampler_type_is_array(sampler_type);
164 tex->coord_components = tex_pos->num_components;
166 nir_ssa_dest_init(&tex->instr, &tex->dest, 4, 32, "tex");
167 nir_builder_instr_insert(&b, &tex->instr);
171 nir_store_var(&b, color_out, &tex->dest.ssa, 0x1);
201 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 3);
202 tex->sampler_dim = tex_dim;
203 tex->op = nir_texop_tex;
204 tex->src[0].src_type = nir_tex_src_coord;
205 tex->src[0].src = nir_src_for_ssa(tex_pos);
206 tex->src[1].src_type = nir_tex_src_texture_deref;
207 tex->src[1].src = nir_src_for_ssa(tex_deref);
208 tex->src[2].src_type = nir_tex_src_sampler_deref;
209 tex->src[2].src = nir_src_for_ssa(tex_deref);
210 tex->dest_type = nir_type_float32; /* TODO */
211 tex->is_array = glsl_sampler_type_is_array(sampler_type);
212 tex->coord_components = tex_pos->num_components;
214 nir_ssa_dest_init(&tex->instr, &tex->dest, 4, 32, "tex");
215 nir_builder_instr_insert(&b, &tex->instr);
219 nir_store_var(&b, color_out, &tex->dest.ssa, 0x1);