Logo
Explore Help
Sign In
1berry/qtbase
1
0
Fork 0
You've already forked qtbase
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
qtbase/tests/auto/wasm/selenium/shaders.qrc

7 lines
125 B
Plaintext
Raw Permalink Normal View History

wasm: Document and test OpenGLContext limitations There is a limit in WebGL that OpenGL context sharing is not supported. There is a proposal from 2013 (https://www.khronos.org/webgl/wiki/SharedResouces), but it seems that it never was implemented. There is an additional limit in that there is exactly one WebGL context for each canvas (i.e. window). A part of the problem here is that the identifier for an OpenGL context is essentially a surface-thread-context triplet. And the thread part might be more difficult to handle in a javascript setting. Regardless of why, we need to have an opinion about what the consequences are, and what we support to what extent. As such this commit: 1) Adds a comment on the QOpenGLContext describing the limitations 2) Adds a qWarning() on the first activation of a shared context. The second item is not complete. We will have problems with multiple individual contexts also, It is just not possible to warn for these cases. The second item covers, maybe, the most common case. Change-Id: I51550a6acb0a7f6f6fa5e9e2c3da080a1d2b498f Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2024-03-13 15:46:05 +01:00
<RCC>
<qresource prefix="/">
<file>vshader.glsl</file>
<file>fshader.glsl</file>
</qresource>
</RCC>
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 1100ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API