Lines Matching defs:sampler_idx

1385 static void shader_hw_sample(const struct wined3d_shader_instruction *ins, DWORD sampler_idx,
1389 DWORD sampler_type = ins->ctx->reg_maps->sampler_type[sampler_idx];
1400 if(!pshader) sampler_idx += MAX_FRAGMENT_SAMPLERS;
1412 if (pshader && priv->cur_ps_args->super.np2_fixup & (1 << sampler_idx)
1419 if (priv->cur_np2fixup_info->super.active & (1 << sampler_idx))
1447 if(sampler_idx >= MAX_FRAGMENT_SAMPLERS)
1449 sampler_idx = priv->cur_vs_args->vertex.samplers[sampler_idx - MAX_FRAGMENT_SAMPLERS];
1457 dsx, dsy,sampler_idx, tex_type);
1464 sampler_idx, tex_type);
1471 shader_addline(buffer, "TXB%s %s, %s, texture[%u], %s;\n", mod, dst_str, coord_reg, sampler_idx, tex_type);
1475 shader_addline(buffer, "TXP%s %s, %s, texture[%u], %s;\n", mod, dst_str, coord_reg, sampler_idx, tex_type);
1481 const unsigned char idx = priv->cur_np2fixup_info->super.idx[sampler_idx];
1485 shader_addline(buffer, "TEX%s %s, TA, texture[%u], %s;\n", mod, dst_str, sampler_idx, tex_type);
1488 shader_addline(buffer, "TEX%s %s, %s, texture[%u], %s;\n", mod, dst_str, coord_reg, sampler_idx, tex_type);
1496 priv->cur_ps_args->super.color_fixup[sampler_idx]);
2342 DWORD sampler_idx = ins->dst[0].reg.idx[0].offset;
2348 shader_addline(buffer, "DP3 TB.x, fragment.texcoord[%u], %s;\n", sampler_idx, src0);
2351 shader_hw_sample(ins, sampler_idx, dst_str, "TB", 0 /* Only one coord, can't be projected */, NULL, NULL);
3124 DWORD sampler_idx = ins->src[1].reg.idx[0].offset;
3137 shader_hw_sample(ins, sampler_idx, reg_dest, reg_src[0], flags, reg_src[1], reg_src[2]);
3142 DWORD sampler_idx = ins->src[1].reg.idx[0].offset;
3153 shader_hw_sample(ins, sampler_idx, reg_dest, reg_coord, flags, NULL, NULL);