WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
48673
Implementation Color Read Format RGB565/UNSIGNED_SHORT
https://bugs.webkit.org/show_bug.cgi?id=48673
Summary
Implementation Color Read Format RGB565/UNSIGNED_SHORT
Zhenyao Mo
Reported
2010-10-29 14:12:45 PDT
WebGL spec: 6.12 Implementation Color Read Format In the OpenGL ES 2.0 API, the IMPLEMENTATION_COLOR_READ_FORMAT and IMPLEMENTATION_COLOR_READ_TYPE parameters are used to inform applications of an additional format and type combination that may be passed to ReadPixels, in addition to the required RGBA/UNSIGNED_BYTE pair. In the WebGL API, the required implementation read format and type is RGB565/UNSIGNED_SHORT to ensure interoperability. Extensions may be used to add additional allowed read formats.
Attachments
Add attachment
proposed patch, testcase, etc.
Zhenyao Mo
Comment 1
2010-10-29 15:00:05 PDT
On desktop GL backend, we should map RGB565 to RGB, UNSIGNED_SHORT to UNSIGNED_SHORT_5_6_5. On GLES backend, we should query if the implementation supports RGB565/UNSIGNED_SHORT. If not, we need to use RGBA/UNSIGNED_BYTE and then pack the data to RGB565/UNSIGNED_SHORT.
Zhenyao Mo
Comment 2
2010-11-03 13:25:26 PDT
Due to spec change, this is no longer valid.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug