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

native/wasm: optional WebGL2 support #444

Merged
merged 1 commit into from
Jun 4, 2024
Merged

native/wasm: optional WebGL2 support #444

merged 1 commit into from
Jun 4, 2024

Conversation

not-fl3
Copy link
Owner

@not-fl3 not-fl3 commented Jun 4, 2024

While miniquad itself only use webgl1 features, withing webgl2 context it
is possible to:

  • use gles3 shaders
  • do raw webgl2 opengl calls.

webgl2 context might be requested by
conf.platform.webgl_version = conf::WebGLVersion::WebGL2;

Note that right now there is no way to check if WebGL2 is supported, if WebGL2 context is requested on an unsupported platform (old-ish iphone safari) - everything will crash.

In the future there should be WebGL2WithWebGL1Fallback option.

@not-fl3 not-fl3 merged commit 65f1da6 into master Jun 4, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant