Lines Matching defs:texture_idx
97 static GLenum d3dta_to_combiner_input(DWORD d3dta, DWORD stage, INT texture_idx) {
107 if (texture_idx > -1) return GL_TEXTURE0_ARB + texture_idx;
138 static void get_src_and_opr_nvrc(DWORD stage, DWORD arg, BOOL is_alpha, GLenum* input, GLenum* mapping, GLenum *component_usage, INT texture_idx) {
149 *input = d3dta_to_combiner_input(arg & WINED3DTA_SELECTMASK, stage, texture_idx);
153 int stage, enum wined3d_texture_op op, DWORD arg1, DWORD arg2, DWORD arg3, INT texture_idx, DWORD dst)
160 TRACE("stage %d, is_alpha %d, op %s, arg1 %#x, arg2 %#x, arg3 %#x, texture_idx %d\n",
161 stage, is_alpha, debug_d3dtop(op), arg1, arg2, arg3, texture_idx);
172 &tex_op_args.mapping[0], &tex_op_args.component_usage[0], texture_idx);
174 &tex_op_args.mapping[1], &tex_op_args.component_usage[1], texture_idx);
176 &tex_op_args.mapping[2], &tex_op_args.component_usage[2], texture_idx);
306 alpha_src = d3dta_to_combiner_input(WINED3DTA_DIFFUSE, stage, texture_idx);
308 alpha_src = d3dta_to_combiner_input(WINED3DTA_TEXTURE, stage, texture_idx);
310 alpha_src = d3dta_to_combiner_input(WINED3DTA_TFACTOR, stage, texture_idx);
312 alpha_src = d3dta_to_combiner_input(WINED3DTA_TEXTURE, stage, texture_idx);
314 alpha_src = d3dta_to_combiner_input(WINED3DTA_CURRENT, stage, texture_idx);
480 FIXME("Unhandled texture op: stage %d, is_alpha %d, op %s (%#x), arg1 %#x, arg2 %#x, arg3 %#x, texture_idx %d.\n",
481 stage, is_alpha, debug_d3dtop(op), op, arg1, arg2, arg3, texture_idx);