Add shader compiler for WebGPU

Use existing Vulkan compiler to generate SPIR-V and convert it into WGSL with tint compiler
https://github.com/google/dawn/releases/tag/v20260219.200501
This commit is contained in:
Wojtek Figat
2026-02-24 17:55:26 +01:00
parent 9158e1c270
commit 9be8589437
17 changed files with 337 additions and 50 deletions

View File

@@ -59,6 +59,8 @@ public class ShadersCompilation : EngineModule
default: throw new InvalidPlatformException(options.Platform.Target);
}
if (ShaderCompilerWebGPU.Use(options))
options.PrivateDependencies.Add("ShaderCompilerWebGPU");
if (Sdk.HasValid("PS4Sdk"))
options.PrivateDependencies.Add("ShaderCompilerPS4");
if (Sdk.HasValid("PS5Sdk"))