4 ms·
It would be possible to load a WASM module with a text-to-SPIRV compiler, but that would most likely be a few megabytes. My understanding is that this was disc
by atq2119 6y ago
It would be possible to load a WASM module with a text-to-SPIRV compiler, but that would most likely be a few megabytes.
My understanding is that this was discussed, and the answer is: glslang is much smaller than this. (Glslang now has a bunch of #ifndef WEB to facilitate precisely this.)
- om2 6y agoI don’t think anyone exhibited a version that got to acceptable binary size and startup/execution time. Might be that it would have been possible with way more effort.