4 ms·
I believe both Dawn and wgpu are planning on supporting SPIR-V ingestion for native use cases,
by Jasper_ 4y ago
I believe both Dawn and wgpu are planning on supporting SPIR-V ingestion for native use cases,
- flohofwoe 4y agoYep, 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.
- Jasper_ 4y agowgpu 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#associatedconstant.SPIRV_SHADER_PASSTHROUGH https://docs.rs/wgpu/latest/wgpu/struct.Features.html#associ...