Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🚪 POC Detect WebGL rendering backend

NotificationsYou must be signed in to change notification settings

luruke/gl-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

This is a proof of concept that explores the possibility of detecting the graphic rendering API behind the browser's WebGL implementation.

WebGL's implementations will, at certain point, translates the users supplied shaders from GLSL ES version 100 (version 300 for WebGL2) to the host platform's native shading language. As far as I know, out in production there are only WebGL implementation targeting Direct3D (via ANGLE), Metal (via ANGLE) – 🆕 iOS15 beta, OpenGL and OpenGL ES.

This proof of concept can be extremely interesting once new backend rendering will be implemented (most likely in ANGLE) in production (notably Vulkan and Metal).

This little script relies on the WebGL extensionWEBGL_debug_shaders which seems enabled by default on many configuration.

Example of OS -> script output:

Mac OS 11 -> OpenGL 4.1Windows 10 -> Direct3DAndroid 10 -> OpenGL ES 3.0Android 7 -> OpenGL ES 2.0iOS 14 -> OpenGL ES 2.0iOS 15 -> Metal

DEMO

About

🚪 POC Detect WebGL rendering backend

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp