[Mesa-dev] [PATCH] RFC: glsl/glcpp: Allow for '#' characters to appear in shader body

Carl Worth cworth at cworth.org
Fri Aug 8 15:32:15 PDT 2014


Erik Faye-Lund <kusmabite at gmail.com> writes:
> It seems to me like this is there to support non-ASCII identifiers and
> strings, but GLSL doesn't support either. I'm not able to come up with
> a conclusion here.

That's almost always the case with GLSL. The GLSL specification does
have its own section for character set, etc. but weasels out of
carefully specifying how #define works and just vaguely points to
"standard" C++ behavior, (without saying what version of what C++
standard it might be referring to).

So for nit-picky details like this, there's no possibility to come up
with anything very definitive about how GLSL should work from the
specification alone.

-Carl

-- 
carl.d.worth at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140808/08267e42/attachment.sig>


More information about the mesa-dev mailing list