[Webkit-unassigned] [Bug 98966] New: [WebGL] [Mac] only the mapped symbol for the first element of a uniform/attribute array is stored

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 10 16:23:25 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=98966

           Summary: [WebGL] [Mac] only the mapped symbol for the first
                    element of a uniform/attribute array is stored
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGL
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: roger_fong at apple.com
                CC: dino at apple.com, webkit-bug-importer at group.apple.com


We currently only created a mapped symbol name for the first element of a uniform/attribute variable array.
So for example:
float color_imagine_really_long_name_here[4]

We only create a mapped name for color_imagine_really_long_name_here[0].

This is because the TCompiler only creates one uniform for "color_imagine_really_long_name_here" not 4 and when we look for this uniform using ShGetActiveUniform (as we compile in AngleWebKitBridge::compileShaderSource) it only gives us the name we get back is just color_imagine_really_long_name_here[0] and color_short_name[0].

While we only get this one uniform for the symbol, we also get the size of the symbol, which corresponds to the size of the array (if it isn't an array the size is just 1).

Using this information we know what the corresponding name and mapped names are.

color_imagine_really_long_name_here[1] and color_short_name[1]
color_imagine_really_long_name_here[2] and color_short_name[2]
etc...

Note that the compiler did correctly map the other entries of the array to their shorter names, but just that it doesn't think of each entry as a separate uniform.
The only thing that seems to differ between the shorter names of entries of an array is the [index] at the end.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list