emscripten-core / emscripten-core/emsdk

how to compile webgl and webgpu into the same package

Open
#1,216 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.7k
Forks
821
Avg merge
1h 25m
Merged PRs (30d)
3

Description

i wrote an rendering engine with webgl as the backend , now add webgpu as an optional backend. How do I compile both graphic api to the same js pakage with compiler directive, I tried, but only one graphic interface worked, when i build webgpu package, the webgl will not work , the prompt is that "GL is not defined"...
Anybody give me some help? Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.