0

I'm following this C++ WebGPU tutorial (with associated Git repo here) in another language, and so must rewrite the build script accordingly.

The tutorial calls wgpu::glfw::CreateSurfaceForWindow which appears to be located in dawn/src/dawn/glfw/utils_emscripten.cpp. However, when I link this file, I get the error:

.../dawn/src/dawn/glfw/utils_emscripten.cpp:65:11: error: no type named 'EmscriptenSurfaceSourceCanvasHTMLSelector' in namespace 'wgpu'
    wgpu::EmscriptenSurfaceSourceCanvasHTMLSelector* desc =

Where is wgpu::EmscriptenSurfaceSourceCanvasHTMLSelector located?

3
  • What do you mean at "when I link this file dawn/src/dawn/glfw/utils_emscripten.cpp"? A minimal reproducible example should be posted. Commented Nov 7 at 0:09
  • @3CEZVQ I apologize, but I don't understand what isn't clear. Is it the idea of linking? Commented Nov 7 at 0:22
  • @3CEZVQ Also, if you're the person who voted to close this question, note that a minimal reproducible example could only serve to distract from my primary issue (as is often the case when using bespoke build systems targeting mutiple platforms). The pertinent aspects of my problem are articulated precisely with requisite dependecies provided. Commented Nov 7 at 0:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.