gpu: update interface to latest webgpu headers

This commit is contained in:
Ali Chraghi 2023-01-13 22:30:26 +03:30 committed by Stephen Gutekanst
parent e4f2f08431
commit a52c6e5f5c
11 changed files with 135 additions and 31 deletions

View file

@ -8,12 +8,10 @@ pub fn build(b: *std.build.Builder) !void {
const mode = b.standardReleaseOptions();
const target = b.standardTargetOptions(.{});
const gpu_dawn = gpu_dawn_sdk.Sdk(.{
.glfw = glfw,
.glfw_include_dir = "libs/mach-glfw/upstream/glfw/include",
.system_sdk = system_sdk,
});
const gpu = gpu_sdk.Sdk(.{
.glfw = glfw,
.gpu_dawn = gpu_dawn,
});