Closed GoogleCodeExporter closed 9 years ago
Section 10.22 'Visibility of Declarations' of the GLSL ES spec details the
expected behavior for this. HLSL has a different semantic and this is not
currently taken into account by ANGLE. (GLSL is the odd one here; HLSL uses the
same semantic as C/C++)
There was a similar issue with declaring structures with the same name, within
different scopes of a function. But that's handled correctly by appending a
scope suffix to the names. We can probably borrow much of these mechanics to
fix this issue as well.
Another approach would be to first assign the result to a temporary variable
with a unique name, and then assign this to the newly declared variable. By
doing this only when encountering a name that has already been used we can
avoid making the code unnecessarily harder to read.
I think I prefer the second solution. Please keep me updated on the urgency of
fixing this issue, and whether you can see any reason to prefer the first
solution.
Original comment by nicolas....@gmail.com
on 23 Sep 2010 at 1:35
Fixed in r478 and even better in r479.
Original comment by dan...@transgaming.com
on 15 Nov 2010 at 4:43
Original issue reported on code.google.com by
alokp@chromium.org
on 20 Sep 2010 at 6:56