alecmce / webgpu-demo

An experimental playground for WebGPU
MIT License
1 stars 0 forks source link

Does not work in Safari #1

Open og2t opened 1 week ago

og2t commented 1 week ago

Hi Alec!

Tried in Safari with all GPU flags enabled but it didn't seem to work, just thought I'd let you know.

Also a question: Which code formatter do you use? I really liked indented object types!

Cheers.

alecmce commented 1 week ago

Hi Tomek!

Thanks!

Yeah, after turning the WebGPU flag on, I see that the WebGPU context is created, that the compute shader is being run and that the render phase is being run each frame ... we just don't see anything on screen. I tried turning strict mode off, to check there isn't a React double-configuration issue, but no.

Without any warnings from Safari, I don't see much value in sinking time into this, it's really just an initial experiment to get used to how WebGPU is configured for now.

On formatting ... I am just using eslint, but there is a formatting extension that does that for you. I need to dig it out and add it to my toolchain. I probably did a lot of that by hand though, I tend to fiddle with code when I'm thinking, like a fidget toy... probably not good practice, it would be better to have a deterministic linter, but at least for this project, I didn't set that up! Sorry not to have been more help.