0

I'm using emscripten 3.1.59.

When I make webgpu calls, some of the calls made from C++ layer, results in a garbage string value in JS layer. As an example, a call to wgpuInstanceCreateSurface. When I add a log to this method in the JS file, I get results like this:

1st Call: incoming #myTarget

2nd Call: incoming 𦞦ˆ§•¶ˆĭrget

What could be going on? How do I find the core issue here?

2
  • But if it's a string encoding problem, then it should happen all the time, and maybe in all the methods, right? Commented Mar 17 at 2:45
  • How do you log your string? printf? std::cout? Commented Mar 28 at 20:41

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.