Lines Matching defs:gl_shader
560 static void shader_arb_ps_local_constants(const struct arb_ps_compiled_shader *gl_shader,
566 for(i = 0; i < gl_shader->numbumpenvmatconsts; i++)
568 int texunit = gl_shader->bumpenvmatconst[i].texunit;
573 gl_shader->bumpenvmatconst[i].const_num, data));
575 if (gl_shader->luminanceconst[i].const_num != WINED3D_CONST_NUM_UNUSED)
584 gl_shader->luminanceconst[i].const_num, scale));
589 if(gl_shader->ycorrection != WINED3D_CONST_NUM_UNUSED)
601 GL_EXTCALL(glProgramLocalParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, gl_shader->ycorrection, val));
605 if (!gl_shader->num_int_consts) return;
609 if(gl_shader->int_consts[i] != WINED3D_CONST_NUM_UNUSED)
617 GL_EXTCALL(glProgramLocalParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, gl_shader->int_consts[i], val));
624 static void shader_arb_vs_local_constants(const struct arb_vs_compiled_shader *gl_shader,
633 GL_EXTCALL(glProgramLocalParameter4fvARB(GL_VERTEX_PROGRAM_ARB, gl_shader->pos_fixup, position_fixup));
635 if (!gl_shader->num_int_consts) return;
639 if(gl_shader->int_consts[i] != WINED3D_CONST_NUM_UNUSED)
647 GL_EXTCALL(glProgramLocalParameter4fvARB(GL_VERTEX_PROGRAM_ARB, gl_shader->int_consts[i], val));
707 const struct arb_vs_compiled_shader *gl_shader = priv->compiled_vprog;
712 shader_arb_vs_local_constants(gl_shader, context, state);
718 const struct arb_ps_compiled_shader *gl_shader = priv->compiled_fprog;
724 shader_arb_ps_local_constants(gl_shader, context, state, rt_height);