Lines Matching defs:sampler_idx

1265 static void shader_hw_sample(const struct wined3d_shader_instruction *ins, DWORD sampler_idx,
1269 DWORD sampler_type = ins->ctx->reg_maps->sampler_type[sampler_idx];
1279 if(!pshader) sampler_idx += MAX_FRAGMENT_SAMPLERS;
1287 if(device->stateBlock->textures[sampler_idx] &&
1288 IWineD3DBaseTexture_GetTextureDimensions(device->stateBlock->textures[sampler_idx]) == GL_TEXTURE_RECTANGLE_ARB) {
1295 if (priv->cur_np2fixup_info->super.active & (1 << sampler_idx))
1323 if(sampler_idx >= MAX_FRAGMENT_SAMPLERS)
1325 sampler_idx = priv->cur_vs_args->vertex.samplers[sampler_idx - MAX_FRAGMENT_SAMPLERS];
1333 dsx, dsy,sampler_idx, tex_type);
1340 sampler_idx, tex_type);
1347 shader_addline(buffer, "TXB%s %s, %s, texture[%u], %s;\n", mod, dst_str, coord_reg, sampler_idx, tex_type);
1351 shader_addline(buffer, "TXP%s %s, %s, texture[%u], %s;\n", mod, dst_str, coord_reg, sampler_idx, tex_type);
1357 const unsigned char idx = priv->cur_np2fixup_info->super.idx[sampler_idx];
1361 shader_addline(buffer, "TEX%s %s, TA, texture[%u], %s;\n", mod, dst_str, sampler_idx, tex_type);
1364 shader_addline(buffer, "TEX%s %s, %s, texture[%u], %s;\n", mod, dst_str, coord_reg, sampler_idx, tex_type);
1370 "one", "coefmul.x", priv->cur_ps_args->super.color_fixup[sampler_idx]);
2225 DWORD sampler_idx = ins->dst[0].reg.idx;
2231 shader_addline(buffer, "DP3 TB.x, fragment.texcoord[%u], %s;\n", sampler_idx, src0);
2234 shader_hw_sample(ins, sampler_idx, dst_str, "TB", 0 /* Only one coord, can't be projected */, NULL, NULL);
2932 DWORD sampler_idx = ins->src[1].reg.idx;
2945 shader_hw_sample(ins, sampler_idx, reg_dest, reg_src[0], flags, reg_src[1], reg_src[2]);
2950 DWORD sampler_idx = ins->src[1].reg.idx;
2961 shader_hw_sample(ins, sampler_idx, reg_dest, reg_coord, flags, NULL, NULL);