Lines Matching defs:sampler_idx

1929         DWORD sampler_idx, DWORD flags, struct glsl_sample_function *sample_function)
1931 enum wined3d_sampler_texture_type sampler_type = ctx->reg_maps->sampler_type[sampler_idx];
1934 && (((const struct shader_glsl_ctx_priv *)ctx->backend_data)->cur_ps_args->shadow & (1 << sampler_idx));
3525 DWORD sampler_idx;
3532 sampler_idx = ins->dst[0].reg.idx[0].offset;
3534 sampler_idx = ins->src[1].reg.idx[0].offset;
3538 DWORD flags = (priv->cur_ps_args->tex_transform >> sampler_idx * WINED3D_PSARGS_TEXTRANSFORM_SHIFT)
3540 enum wined3d_sampler_texture_type sampler_type = ins->ctx->reg_maps->sampler_type[sampler_idx];
3579 && ins->ctx->reg_maps->sampler_type[sampler_idx] != WINED3DSTT_CUBE)
3587 if (priv->cur_ps_args->np2_fixup & (1 << sampler_idx))
3590 shader_glsl_get_sample_function(ins->ctx, sampler_idx, sample_flags, &sample_function);
3602 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, swizzle, NULL, NULL, NULL,
3603 "T%u%s", sampler_idx, coord_mask);
3613 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, swizzle, NULL, NULL, bias.param_str,
3616 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, swizzle, NULL, NULL, NULL,
3628 DWORD sampler_idx;
3639 sampler_idx = ins->src[1].reg.idx[0].offset;
3640 if (priv->cur_ps_args->np2_fixup & (1 << sampler_idx))
3643 shader_glsl_get_sample_function(ins->ctx, sampler_idx, sample_flags, &sample_function);
3648 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, swizzle, dx_param.param_str, dy_param.param_str, NULL,
3658 DWORD sampler_idx;
3662 sampler_idx = ins->src[1].reg.idx[0].offset;
3664 && priv->cur_ps_args->np2_fixup & (1 << sampler_idx))
3667 shader_glsl_get_sample_function(ins->ctx, sampler_idx, sample_flags, &sample_function);
3680 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, swizzle, NULL, NULL, lod_param.param_str,
3743 DWORD sampler_idx = ins->dst[0].reg.idx[0].offset;
3755 shader_glsl_get_sample_function(ins->ctx, sampler_idx, 0, &sample_function);
3761 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,
3762 "dot(gl_TexCoord[%u].xyz, %s)", sampler_idx, src0_param.param_str);
3766 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,
3767 "vec2(dot(gl_TexCoord[%u].xyz, %s), 0.0)", sampler_idx, src0_param.param_str);
3771 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,
3772 "vec3(dot(gl_TexCoord[%u].xyz, %s), 0.0, 0.0)", sampler_idx, src0_param.param_str);
3997 DWORD sampler_idx;
4002 sampler_idx = ins->dst[0].reg.idx[0].offset;
4003 flags = (priv->cur_ps_args->tex_transform >> sampler_idx * WINED3D_PSARGS_TEXTRANSFORM_SHIFT)
4007 shader_glsl_get_sample_function(ins->ctx, sampler_idx, 0, &sample_function);
4035 shader_addline(ins->ctx->buffer, "T%u%s /= T%u%s;\n", sampler_idx, coord_mask, sampler_idx, coord_div_mask);
4040 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,
4041 "T%u%s + vec4(bumpenv_mat%u * %s, 0.0, 0.0)%s", sampler_idx, coord_mask, sampler_idx,
4054 luminance_param.param_str, sampler_idx, sampler_idx);
4060 DWORD sampler_idx = ins->dst[0].reg.idx[0].offset;
4068 src0_param.param_str, sampler_idx, src1_param.param_str);
4075 DWORD sampler_idx = ins->dst[0].reg.idx[0].offset;
4081 shader_glsl_get_sample_function(ins->ctx, sampler_idx, 0, &sample_function);
4082 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,
4090 DWORD sampler_idx = ins->dst[0].reg.idx[0].offset;
4096 shader_glsl_get_sample_function(ins->ctx, sampler_idx, 0, &sample_function);
4097 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,
4105 DWORD sampler_idx = ins->dst[0].reg.idx[0].offset;
4110 shader_glsl_get_sample_function(ins->ctx, sampler_idx, 0, &sample_function);
4113 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,