Bug 48673

Summary: Implementation Color Read Format RGB565/UNSIGNED_SHORT
Product: WebKit Reporter: Zhenyao Mo <zmo>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: cmarrin, enne, kbr
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   

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
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.