You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built glslang with Emscripten and included the JavaScript file into an HTML file. It runs and prints the help message to the console. My question is how can I pass arguments to it and how can I validate GLSL. I tried to set Module.arguments and call Module._main with arguments, but it still only prints the help message to the console. My code is something like this:
I use an additional setTimeout because initially, the browser says that _main is not a function. I'm not sure why because I'm inside onRuntimeInitialized.
The text was updated successfully, but these errors were encountered:
I built glslang with Emscripten and included the JavaScript file into an HTML file. It runs and prints the help message to the console. My question is how can I pass arguments to it and how can I validate GLSL. I tried to set
Module.arguments
and callModule._main
with arguments, but it still only prints the help message to the console. My code is something like this:I use an additional
setTimeout
because initially, the browser says that_main
is not a function. I'm not sure why because I'm insideonRuntimeInitialized
.The text was updated successfully, but these errors were encountered: