Lines Matching defs:tex
1797 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 2);
1798 tex->sampler_dim = GLSL_SAMPLER_DIM_BUF;
1799 tex->op = nir_texop_txf;
1800 tex->src[0].src_type = nir_tex_src_coord;
1801 tex->src[0].src = nir_src_for_ssa(texel_offset);
1802 tex->src[1].src_type = nir_tex_src_texture_deref;
1803 tex->src[1].src = nir_src_for_ssa(tex_deref);
1804 tex->dest_type = nir_type_uint32;
1805 tex->is_array = false;
1806 tex->coord_components = 1;
1807 nir_ssa_dest_init(&tex->instr, &tex->dest, 4, 32, "texel buffer result");
1808 nir_builder_instr_insert(&b, &tex->instr);
1819 nir_ssa_def *s = nir_swizzle(&b, &tex->dest.ssa, swiz, 4);
3105 nir_tex_instr *tex = nir_tex_instr_create(b->shader, 3);
3106 tex->sampler_dim = dim;
3107 tex->op = nir_texop_tex;
3108 tex->src[0].src_type = nir_tex_src_coord;
3109 tex->src[0].src = nir_src_for_ssa(tex_pos);
3110 tex->src[1].src_type = nir_tex_src_texture_deref;
3111 tex->src[1].src = nir_src_for_ssa(tex_deref);
3112 tex->src[2].src_type = nir_tex_src_sampler_deref;
3113 tex->src[2].src = nir_src_for_ssa(tex_deref);
3114 tex->dest_type = nir_get_nir_type_for_glsl_base_type(tex_type);
3115 tex->is_array = glsl_sampler_type_is_array(sampler_type);
3116 tex->coord_components = tex_pos->num_components;
3118 nir_ssa_dest_init(&tex->instr, &tex->dest, 4, 32, "tex");
3119 nir_builder_instr_insert(b, &tex->instr);
3120 return &tex->dest.ssa;
3131 nir_tex_instr *tex = nir_tex_instr_create(b->shader, 4);
3132 tex->sampler_dim = GLSL_SAMPLER_DIM_MS;
3133 tex->op = nir_texop_txf_ms;
3134 tex->src[0].src_type = nir_tex_src_coord;
3135 tex->src[0].src = nir_src_for_ssa(tex_pos);
3136 tex->src[1].src_type = nir_tex_src_texture_deref;
3137 tex->src[1].src = nir_src_for_ssa(tex_deref);
3138 tex->src[2].src_type = nir_tex_src_sampler_deref;
3139 tex->src[2].src = nir_src_for_ssa(tex_deref);
3140 tex->src[3].src_type = nir_tex_src_ms_index;
3141 tex->src[3].src = nir_src_for_ssa(sample_idx);
3142 tex->dest_type = nir_get_nir_type_for_glsl_base_type(tex_type);
3143 tex->is_array = false;
3144 tex->coord_components = tex_pos->num_components;
3146 nir_ssa_dest_init(&tex->instr, &tex->dest, 4, 32, "tex");
3147 nir_builder_instr_insert(b, &tex->instr);
3148 return &tex->dest.ssa;