Initial implementation of per-state global uniforms.