I believe that's not supported currently. I guess the use case is the emscripten program runs in a worker, and you have JS on the main thread that sends it the context, which it needs to render to as an OffscreeCanvas? That does sound potentially useful.
On Wed, Jan 29, 2020 at 4:13 AM raytrace <[email protected]> wrote: > from setting.js of emscripten: > https://github.com/emscripten-core/emscripten/blob/028f73723214eff982aac2c919ce7b5ed826452f/src/settings.js > > *// If set to 1, enables support for transferring canvases to pthreads and* > *// creating WebGL contexts in them, as well as explicit swap control for > GL* > *// contexts. This needs browser support for the OffscreenCanvas > specification.* > *var OFFSCREENCANVAS_SUPPORT = 0;* > > It sounds *OFFSCREENCANVAS_SUPPORT *only works with pthread *enabled*. is > it possible to enable it without pthread on web worker using webgl2 > rendering? > > > Thanks, > > > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/f5cb1e0e-aa27-48cd-a242-423f41251503%40googlegroups.com > <https://groups.google.com/d/msgid/emscripten-discuss/f5cb1e0e-aa27-48cd-a242-423f41251503%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpSgW6_7Y8b%2Bh7vx9YgQAiqR9FQBSGQdPhPhS7%3D63PbFCg%40mail.gmail.com.
