Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tracking for ASTC hdr profile #6780

Open
mixtur opened this issue Jul 7, 2023 · 0 comments
Open

Add tracking for ASTC hdr profile #6780

mixtur opened this issue Jul 7, 2023 · 0 comments

Comments

@mixtur
Copy link

mixtur commented Jul 7, 2023

ASTC is a hardware compression format for textures in WebGPU and WebGL.

The problem is that it is implemented in hardware which is kinda orhtogonal to the browser version. Not sure if it can be added at all.

But anyway to track it you'll need to create webgl2 context, request an extension called WEBGL_compressed_texture_astc, and then call getSupportedProfiles() on the extension. It will return an array with one or two strings. One of which will probably be "ldr", and another "hdr". So if hdr is present - it means that hdr profile is supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants