Lines Matching defs:sample_function

1780         DWORD sampler_type, DWORD flags, glsl_sample_function_t *sample_function)
1791 sample_function->name = projected ? "texture1DProjLod" : "texture1DLod";
1796 sample_function->name = projected ? "texture1DProjGrad" : "texture1DGrad";
1798 sample_function->name = projected ? "texture1DProjGradARB" : "texture1DGradARB";
1802 sample_function->name = "unsupported1DGrad";
1807 sample_function->name = projected ? "texture1DProj" : "texture1D";
1809 sample_function->coord_mask = WINED3DSP_WRITEMASK_0;
1814 sample_function->name = projected ? "texture2DRectProjLod" : "texture2DRectLod";
1819 sample_function->name = projected ? "texture2DRectProjGrad" : "texture2DRectGrad";
1821 sample_function->name = projected ? "texture2DRectProjGradARB" : "texture2DRectGradARB";
1825 sample_function->name = "unsupported2DRectGrad";
1830 sample_function->name = projected ? "texture2DRectProj" : "texture2DRect";
1834 sample_function->name = projected ? "texture2DProjLod" : "texture2DLod";
1839 sample_function->name = projected ? "texture2DProjGrad" : "texture2DGrad";
1841 sample_function->name = projected ? "texture2DProjGradARB" : "texture2DGradARB";
1845 sample_function->name = "unsupported2DGrad";
1850 sample_function->name = projected ? "texture2DProj" : "texture2D";
1853 sample_function->coord_mask = WINED3DSP_WRITEMASK_0 | WINED3DSP_WRITEMASK_1;
1857 sample_function->name = "textureCubeLod";
1862 sample_function->name = "textureCubeGrad";
1864 sample_function->name = "textureCubeGradARB";
1868 sample_function->name = "unsupportedCubeGrad";
1873 sample_function->name = "textureCube";
1875 sample_function->coord_mask = WINED3DSP_WRITEMASK_0 | WINED3DSP_WRITEMASK_1 | WINED3DSP_WRITEMASK_2;
1879 sample_function->name = projected ? "texture3DProjLod" : "texture3DLod";
1884 sample_function->name = projected ? "texture3DProjGrad" : "texture3DGrad";
1886 sample_function->name = projected ? "texture3DProjGradARB" : "texture3DGradARB";
1890 sample_function->name = "unsupported3DGrad";
1895 sample_function->name = projected ? "texture3DProj" : "texture3D";
1897 sample_function->coord_mask = WINED3DSP_WRITEMASK_0 | WINED3DSP_WRITEMASK_1 | WINED3DSP_WRITEMASK_2;
1900 sample_function->name = "";
1901 sample_function->coord_mask = 0;
2014 DWORD sampler, const glsl_sample_function_t *sample_function, DWORD swizzle,
2045 if (sample_function->coord_mask & WINED3DSP_WRITEMASK_1)
2048 shader_glsl_add_src_param(ins, &ins->src[0], sample_function->coord_mask, &coord_param);
2076 shader_addline(ins->ctx->buffer, "%s(%s%u, ", sample_function->name, sampler_base, sampler);
3053 glsl_sample_function_t sample_function;
3108 shader_glsl_get_sample_function(gl_info, sampler_type, sample_flags, &sample_function);
3109 mask |= sample_function.coord_mask;
3120 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, swizzle, NULL, NULL, NULL,
3129 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, swizzle, NULL, NULL, bias.param_str,
3132 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, swizzle, NULL, NULL, NULL,
3143 glsl_sample_function_t sample_function;
3164 shader_glsl_get_sample_function(gl_info, sampler_type, sample_flags, &sample_function);
3165 shader_glsl_add_src_param(ins, &ins->src[0], sample_function.coord_mask, &coord_param);
3166 shader_glsl_add_src_param(ins, &ins->src[2], sample_function.coord_mask, &dx_param);
3167 shader_glsl_add_src_param(ins, &ins->src[3], sample_function.coord_mask, &dy_param);
3169 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, swizzle, dx_param.param_str, dy_param.param_str, NULL,
3178 glsl_sample_function_t sample_function;
3191 shader_glsl_get_sample_function(gl_info, sampler_type, sample_flags, &sample_function);
3192 shader_glsl_add_src_param(ins, &ins->src[0], sample_function.coord_mask, &coord_param);
3201 WARN("Using %s in fragment shader.\n", sample_function.name);
3203 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, swizzle, NULL, NULL, lod_param.param_str,
3260 glsl_sample_function_t sample_function;
3273 shader_glsl_get_sample_function(gl_info, sampler_type, 0, &sample_function);
3274 mask_size = shader_glsl_get_write_mask_size(sample_function.coord_mask);
3279 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,
3284 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,
3289 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,
3392 glsl_sample_function_t sample_function;
3397 shader_glsl_get_sample_function(gl_info, sampler_type, 0, &sample_function);
3400 shader_glsl_gen_sample_code(ins, reg, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL, "tmp0.xy");
3414 glsl_sample_function_t sample_function;
3420 shader_glsl_get_sample_function(gl_info, sampler_type, 0, &sample_function);
3423 shader_glsl_gen_sample_code(ins, reg, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL, "tmp0.xyz");
3461 glsl_sample_function_t sample_function;
3472 shader_glsl_get_sample_function(gl_info, stype, 0, &sample_function);
3475 shader_glsl_gen_sample_code(ins, reg, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL, "tmp0.xyz");
3492 glsl_sample_function_t sample_function;
3505 shader_glsl_get_sample_function(gl_info, sampler_type, 0, &sample_function);
3508 shader_glsl_gen_sample_code(ins, reg, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL, "tmp0.xyz");
3523 glsl_sample_function_t sample_function;
3537 shader_glsl_get_sample_function(gl_info, sampler_type, 0, &sample_function);
3538 mask = sample_function.coord_mask;
3561 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,
3600 glsl_sample_function_t sample_function;
3604 shader_glsl_get_sample_function(gl_info, sampler_type, 0, &sample_function);
3605 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,
3617 glsl_sample_function_t sample_function;
3621 shader_glsl_get_sample_function(gl_info, sampler_type, 0, &sample_function);
3622 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,
3634 glsl_sample_function_t sample_function;
3637 shader_glsl_get_sample_function(gl_info, sampler_type, 0, &sample_function);
3638 shader_glsl_add_src_param(ins, &ins->src[0], sample_function.coord_mask, &src0_param);
3640 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, WINED3DSP_NOSWIZZLE, NULL, NULL, NULL,