emscripten-core / emscripten-core/emscripten
How to initialize WebGL2 Context with OffscreenCanvas
- Lingua principale
- C++
- Stelle
- 27.6k
- Fork
- 3.6k
- Merge medio
- 1g 14h
- PR unite (30g)
- 125
Descrizione
I'm going to do some work in a web worker so that I can not have a `canvas` element on the DOM tree. However, `emscripten_webgl_create_context` api requires an id attached to a canvas in the DOM tree. I know I can create a canvas object by `document.createElement('canvas')` then transfer this canvas to offscreen. But still, how can I pass this offscreen canvas context to wasm?
In a nutshell, how can I create a WebGL2RenderingContext with emscripten ?
Thanks a lot for your patience.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con l’API emscripten_webgl_create_context e i requisiti di OffscreenCanvas/WebGL2 per i worker descritti nella issue. Determina se l’API esistente supporta un OffscreenCanvas o se sarebbe necessario aggiungere il supporto; il lavoro è completo quando esiste un modo testato e riproducibile per inizializzare un contesto WebGL2 da un worker senza un canvas DOM.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- wasm
- Ambito
- computer-graphics, web-dev
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100