6 ms·
Could this work in WebGL and/or WebGPU (and/or WebNN) with or without WASM in a browser? https://stackoverflow.com/questions/48228192/webgl-compute-shader-and-
by westurner 3y ago
Could this work in WebGL and/or WebGPU (and/or WebNN) with or without WASM in a browser?
https://stackoverflow.com/questions/48228192/webgl-compute-shader-and-vbo-ubos https://stackoverflow.com/questions/48228192/webgl-compute-s...
https://github.com/conda-forge/glfw-feedstock/blob/main/recipe/meta.yaml https://github.com/conda-forge/glfw-feedstock/blob/main/reci...
pyglfw:
https://github.com/conda-forge/pyglfw-feedstock/blob/main/recipe/meta.yaml https://github.com/conda-forge/pyglfw-feedstock/blob/main/re...
- [ ] glfw recipe for emscripten-forge:
https://github.com/emscripten-forge/recipes/tree/main/recipes/recipes_emscripten https://github.com/emscripten-forge/recipes/tree/main/recipe...
Emscripten porting docs > OpenGL ES 2.0/3.0 *, glfw:
https://emscripten.org/docs/porting/multimedia_and_graphics/OpenGL-support.html https://emscripten.org/docs/porting/multimedia_and_graphics/...
WebGPI API > GPUBuffer:
https://developer.mozilla.org/en-US/docs/Web/API/WebGPU_API https://developer.mozilla.org/en-US/docs/Web/API/WebGPU_API
gpuweb/gpuweb:
https://github.com/gpuweb/gpuweb https://github.com/gpuweb/gpuweb
https://news.ycombinator.com/item?id=38355444 https://news.ycombinator.com/item?id=38355444 :
> It actually looks like pygame-web (pygbag) supports panda3d and harfang in WASM
Harfang and panda3d do 3D with WebGL, but FWIU not yet agents in SSBO/VBO/GPUBuffer.
SSBO: Shader Storage Buffer Object: https://www.khronos.org/opengl/wiki/Shader_Storage_Buffer_Object https://www.khronos.org/opengl/wiki/Shader_Storage_Buffer_Ob...
/? WebGPU compute: https://www.google.com/search?q=webgpu+compute https://www.google.com/search?q=webgpu+compute
"WebGPU Compute Shader Basics" https://webgpufundamentals.org/webgpu/lessons/webgpu-compute-shaders.html https://webgpufundamentals.org/webgpu/lessons/webgpu-compute...
- ktt8788 3y agoBasically possible. You have to remove all Cuda code and port C++ code to use glfw with specific library for web. The shader can be reused.