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:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user