KhronosGroup / WebGL

The Official Khronos WebGL Repository
Other
2.66k stars 669 forks source link

Consider exposing EXT_pvrtc_sRGB to WebGL #2473

Open kainino0x opened 7 years ago

kainino0x commented 7 years ago

Consider exposing EXT_pvrtc_sRGB to WebGL.

Discussion here: https://www.khronos.org/webgl/public-mailing-list/public_webgl/1707/msg00027.php

iOS 7.0 devices, including PowerVR SGX 543 and 554 supports sRGB PVRTC throught EXT_pvrtc_sRGB extensions.

MarkCallow commented 7 years ago

iOS 7.0 devices, including PowerVR SGX 543 and 554 supports sRGB PVRTC throught EXT_pvrtc_sRGB extensions.

How many of those also support ASTC sRGB?

kdashg commented 5 years ago

@grorg @kainino0x @kenrussell Is there any will to support these?

kainino0x commented 5 years ago

If there is customer demand, sure. However this would really only benefit iOS and the tiny number of PowerVR Android devices out there: http://opengles.gpuinfo.org/listreports.php?extension=GL_EXT_pvrtc_sRGB

And given that iOS has deprecated OpenGL ES, it's hard to say how long that last (or how reliably it works).

MarkCallow commented 5 years ago

PVRTC is supported in Metal, see, e.g., MTLPixelFormatPVRTC_RGBA_2BPP, so there is no reason to expect it to disappear from iOS devices or become unreliable just because they've deprecated OpenGL.

My question about ASTC remains unanswered. Recent iOS devices all support it so there is really no need to use PVRTC.

kainino0x commented 5 years ago

According to this impossible-to-read PDF, the devices with PVRTC but not ASTC are iOS_GPUFamily1_v[1-5].

According to this page that means Apple A7 only (and according to this page, that's iPhone 5s, iPad Air, iPad mini 3, iPad mini 2). Everything newer has both.

kdashg commented 5 years ago

And the devices that don't have ASTC have either ETC or BP (S3TC?), though ETC doesn't have sRGB, does it?

kdashg commented 5 years ago

ETC2 totally has sRGB.

kdashg commented 5 years ago

I think we should close this then, unless @grorg wants to pick it up.

MarkCallow commented 5 years ago

Reopening given the info that WebKit only implements the PVRTC extension. We need feedback from Apple as to whether they will implement the WebGL ETC or ASTC extensions. or, if not, would they implement pvrtc_sRGB if we made such an extension.