[Webkit-unassigned] [Bug 102215] WebGL: Avoid unnecessary format conversion for texImage2D by using GL extension
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 22 21:04:11 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=102215
--- Comment #5 from Gregg Tavares <gman at chromium.org> 2013-01-22 21:06:04 PST ---
Has Ken pointed out this won't work.
First off it probably won't pass this test
https://www.khronos.org/registry/webgl/sdk/tests/conformance/textures/texture-formats-test.html
Secondly as Ken points out in ES 2.0 format and internal_format are required to match and being WebKit it's not just Chromium they are required to match on. They must also match on iOS, Android, etc...
Also, as Ken alluded to you can't do silent conversions as otherwise this won't work
// set level 0
gl.texImage2D(target, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, some4x4Image); // silently uses BGRA
// set level 1
gl.texImage2D(target, 0, gl.RGBA, 2, 2, 0, gl.RGBA, gl.UNSIGNED_BYTE, myData); // no conversion
At this point level 0 is BGRA and level 1 is RGBA and won't render.
--
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