Lines Matching defs:tex
690 nir_ssa_dest_init(&txs->instr, &txs->dest, 2, 32, "tex");
705 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 3);
706 tex->sampler_dim = GLSL_SAMPLER_DIM_MS;
707 tex->op = nir_texop_txf_ms;
708 tex->src[0].src_type = nir_tex_src_coord;
709 tex->src[0].src = nir_src_for_ssa(nir_channels(&b, nir_f2i32(&b, pos_src), 0x3));
710 tex->src[1].src_type = nir_tex_src_ms_index;
711 tex->src[1].src = nir_src_for_ssa(nir_imm_int(&b, 0)); /* just use first sample */
712 tex->src[2].src_type = nir_tex_src_texture_deref;
713 tex->src[2].src = nir_src_for_ssa(tex_deref);
714 tex->dest_type = nir_type_uint32;
715 tex->is_array = false;
716 tex->coord_components = 2;
718 nir_ssa_dest_init(&tex->instr, &tex->dest, 4, 32, "tex");
719 nir_builder_instr_insert(&b, &tex->instr);
721 nir_store_var(&b, stencil_out, nir_channel(&b, &tex->dest.ssa, 1), 0x1);