Ian Romanick <[email protected]> writes: > From: Paul Berry <[email protected]> > > This patch also adds assertions so that when we add new GLSL versions, > we'll notice that we need to update the builtin variables. > > Reviewed-by: Ian Romanick <[email protected]>
> +static void
> +generate_300ES_uniforms(exec_list *instructions,
> + struct _mesa_glsl_parse_state *state)
> +{
> + generate_common_ES_uniforms(instructions, state);
> +
> + glsl_symbol_table *const symtab = state->symbols;
> +
> + add_builtin_constant(instructions, symtab, "gl_MaxVertexOutputVectors",
> + state->Const.MaxVaryingFloats / 4);
> + add_builtin_constant(instructions, symtab, "gl_MaxFrabmentInputVectors",
^ Fragment
pgpsu5rtpbazY.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
