News for hackers. Stuff that matters.
Re:An In-Depth Look at WebGPU by flohofwoe on Wednesday February 08, 2023 @10:42AM (#34709574)
Yep, but at least for the D3D12 and Metal backend the input SPIRV needs to be translated to HLSL (or maybe directly to DXIL?) and MSL. Not sure if the Vulkan backends accept the input SPIRV directly or whether there's also some translation happening.
Re:An In-Depth Look at WebGPU by Jasper_ on Wednesday February 08, 2023 @11:21AM (#34710303)
wgpu supports both a SPIR-V passthrough mode [0] and a regular SPIR-V mode where it will get some transformations added to it (e.g. bounds checks are added on backends without VK_KHR_robustness). I don't believe Dawn has a similar passthrough mode, only a SPIR-V -> transform -> SPIR-V path.

[0] https://docs.rs/wgpu/latest/wgpu/struct.Features.html#associ...