[Mesa-dev] glsl: should uniform initializers be allowed in GLSL ES 3.00?
Aras Pranckevicius
aras at unity3d.com
Wed May 14 10:00:01 PDT 2014
Hi,
Mesa's ast_to_hir.cpp does a check like:
state->check_version(120, 0, &initializer_loc,
"cannot initialize uniforms");
i.e. it does not allow uniform initializers on GLSL ES 3.00.
Upon my reading of the spec, I can't find any place where that would be
disallowed. ES 3.00 seems to be based on GLSL 3.3, with a bunch of stuff
removed and added. Uniform initializers aren't listed in the "removed"
section (spec 3.00.4, section 1.1.4). So maybe the check should be changed
to allow 300 in the ES min version?
--
Aras Pranckevičius
work: http://unity3d.com
home: http://aras-p.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140514/487940ae/attachment.html>
More information about the mesa-dev
mailing list