Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add initial support for WebGL compressed textures #23226
This patch is an initial implementation of WebGL compressed texture support, it contains
What's still missing:
Heads up! This PR modifies the following files:
jdm left a comment
We will also need to deal with:
Apr 30, 2019
Thanks, after initializing the texture and fixing some smaller things, now all the tests pass!
I've also moved the compressed texture enums into TexFormat, which simplifies some of the logic. There is an issue however, that the GLenum values are not present in Gleam. Gleam autogenerates the list of GLenums on build, based on the extensions listed here. However, because it works by querying the system, Gleam cannot generate the enums for extensions that are not available on your system. So for now I've hardcoded the enum values for compressed formats.