emscripten-core / emscripten-core/emscripten

Render two WebglRenderingContexts in the same pthread

Open
#18,976 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I want to render two WebglRenderingContexts in the same pthread.
`pthread_attr_t attr;
pthread_attr_init(&attr);
emscripten_pthread_attr_settransferredcanvases(&attr, g_pHwd1);`

the api could transfer one canvas to the pthread, so how can i transfer two canvas to the same pthread ?

the demo is in :
https://github.com/yangfangfang1204/offscreen

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.