151 questions
2
votes
0
answers
179
views
panicked at condvar wait not supported when running MobileNetV2 with Burn/Wgpu in WASM
Lately, I've been learning how to use WebGPU and WebAssembly to run image classification models in web browsers.
I used Rust, WASM, and Burn. I noticed that the burn-onnx repository contains an ...
Advice
1
vote
6
replies
186
views
Whats a good choice as graphics API for small programs for different systems?
For a long time I wanted to create little programs like drawing a fractal utilizing a GPU instead of CPU. I would like to share those programs with friends and family. So while I am using Linux, some ...
Best practices
0
votes
2
replies
54
views
WebGPU 3D renderer directional shading is not displaying evenly
Hi this is my first post on stack overflow. I don't want to use AI at all in my code, I want to learn about 3D graphics with real people. If I'm missing something please let me know since I'm new to ...
-3
votes
1
answer
218
views
How to set up WebGPU work groups with fully independent tasks?
I am new to using WebGPU. I'm using the rust wgpu crate with compute shaders to run a cryptographic task at high speed.
My shader is quite simple: Take a common input state, append a unique per-thread ...
0
votes
0
answers
63
views
Definition for webgpu shadow map array and cast shadows feature
I implemented all shadow workflow but never get real cast shadows ...
I found :
⚠️ Problem: WebGPU currently does not support binding arrays of textures/samplers directly like this. You need to use ...
1
vote
0
answers
96
views
Webgpu Importexternaltexture fails for 8k frame
I am trying to process an 8k video on a mobile phone with webGPU (say it is a 360 video and I only need to display part of it). Normally, webGPU is supposed to handle 8k textures https://www.w3.org/TR/...
0
votes
1
answer
93
views
Vertices normalized to WGSL clip space do not appear
I've been following the webgpufundamentals tutorial on translation using the rust implementation of wgpu and leptos. For some reason, when I am normalizing the vertices to produce the letter "F&...
0
votes
1
answer
203
views
PIXIJS v8: "Uniform type undefined is not supported" when passing float array uniform to a custom shader
I’m on PixiJS v8.1 (WebGL2) + TypeScript, trying to pass five RGB colors as a flat float[] into my fragment shader—but I keep getting:
Error: Uniform type undefined is not supported. Supported uniform ...
-1
votes
1
answer
120
views
Why reading from a storage texture 2d array always returns the same value in webGPU?
What i'm trying to do is write to a storage texture in one render pass, and then read from this texture in a second pass, but value i get in the second pass is always the same, regardless of what i ...
1
vote
0
answers
108
views
What is the proper way to implement support for N shadowmaps in webGPU renderer?
I`m making a basic forward renderer in webGPU, that supports multiple types of light sources and shadowmapping. When I was figuring out the shadowmapping part, I bound shadowmaps to shadowpass, wrote ...
-1
votes
1
answer
145
views
Implement effect of 3d card tilting
I want to achieve the effect of card tilting. When the mouse pointer approaches one corner of the card, this corner of the card will tilt downward. The current problem is that the card is not ...
0
votes
0
answers
113
views
Using texture sample values in a critical section of WGSL fragment shader
I am getting errors when using a variable that is dependent on the value of a texture sample in the critical section of my fragment shader.
From what I understand, one should not sample textures in ...
1
vote
1
answer
249
views
WebGPU GPUPipelineError - Sampling depth texture always giving error regardless if the sampler is filtering
I have a project that I was working on for some time. I came back to it yesterday to find that the project didn't load anymore. I'm now getting the following error:
Uncaught (in promise) ...
0
votes
1
answer
882
views
"Property 'gpu' does not exist on type Navigator"
Fresh project.
I create the project with ng new,
then immediately upgrade to angular 19 with ng upgrade @angular/core@19 @angular/cli@19.
I then install WebGPU type bindings npm install --save-dev @...
0
votes
0
answers
101
views
emscripten & Webgpu - certain calls made from C++ ends up with a mangled name in Javascript
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 ...