{gpu,gpu-dawn}: add X11 linkage back; update to latest WebGPU API

This commit is contained in:
Ali Chraghi 2023-01-14 19:20:41 +03:30 committed by Stephen Gutekanst
parent 8a15fcd694
commit 9f6020e545
5 changed files with 20 additions and 5 deletions

View file

@ -277,6 +277,9 @@ pub fn Sdk(comptime deps: anytype) type {
step.addIncludePath(include_dir);
step.addIncludePath(sdkPath("/src/dawn"));
if (isLinuxDesktopLike(step.target_info.target.os.tag)) {
step.linkSystemLibraryName("X11");
}
if (options.metal.?) {
step.linkFramework("Metal");
step.linkFramework("CoreGraphics");