News for hackers. Stuff that matters.
Re:GPU Compute in the Browser at the Speed of Native: WebGPU... by jsheard on Tuesday April 23, 2024 @04:43PM (#40137036)
The answer to that for any given feature is "can untrusted code be trusted with that?". Wave intrinsics are probably doable. Bindless maybe, but expect a bunch of bounds checking overhead. Pointers/BDA, absolutely not.

Native libraries like wgpu can do whatever they want in extensions, safety be damned, but you're stepping outside of the WebGPU spec in that case.

Re:GPU Compute in the Browser at the Speed of Native: WebGPU... by littlestymaar on Tuesday April 23, 2024 @05:53PM (#40137792)
What's BDA in that context, please? I can only confidently assume it's not “battle damage assessment”.
Re:GPU Compute in the Browser at the Speed of Native: WebGPU... by jsheard on Tuesday April 23, 2024 @05:56PM (#40137821)
Buffer Device Address, the Vulkan name for raw pointers in shaders.
Re:GPU Compute in the Browser at the Speed of Native: WebGPU... by littlestymaar on Tuesday April 23, 2024 @06:00PM (#40137864)
Thx