diff --git a/webgpu/README.md b/webgpu/README.md deleted file mode 100644 index e2e18eaf..00000000 --- a/webgpu/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# WebGPU for Zig Hexops logo - -Idiomatic [Zig](https://ziglang.org) bindings to [WebGPU](https://gpuweb.github.io/gpuweb), the up-and-coming API which allows for unified access to low-level graphics APIs like Vulkan, Metal, and D3D12 across web, desktop, and mobile devices. - -This library is _truly cross platform_, allowing you to use the same graphics API **in the web** or **natively** (desktop & mobile): - -- **WebAssembly targets**: Uses the browser's provided WebGPU API. -- **Native targets:** supports multiple WebGPU backend implementations: - - [Dawn](https://dawn.googlesource.com/dawn), Chrome's C++ implementation of WebGPU. - - [gfx-rs/wgpu-native](https://github.com/gfx-rs/wgpu-native), the Rust implementation of WebGPU. - -## webgpu.h version - -Both [Dawn](https://dawn.googlesource.com/dawn) and [gfx-rs/wgpu-native](https://github.com/gfx-rs/wgpu-native) implement a shared common C header, [webgpu.h](https://github.com/webgpu-native/webgpu-headers) which maps 1:1 with the WebGPU IDL specification. - -You can find the version of `webgpu.h` currently targeted by this library [here](https://github.com/webgpu-native/webgpu-headers/tree/c8e0b39f6f6f1edded5c4adf7d46aa4d2a95befe). diff --git a/webgpu/build.zig b/webgpu/build.zig deleted file mode 100644 index 8d295ab9..00000000 --- a/webgpu/build.zig +++ /dev/null @@ -1,14 +0,0 @@ -const Builder = @import("std").build.Builder; - -pub fn build(b: *Builder) void { - const mode = b.standardReleaseOptions(); - const lib = b.addStaticLibrary("webgpu", "src/main.zig"); - lib.setBuildMode(mode); - lib.install(); - - var main_tests = b.addTest("src/main.zig"); - main_tests.setBuildMode(mode); - - const test_step = b.step("test", "Run library tests"); - test_step.dependOn(&main_tests.step); -} diff --git a/webgpu/src/main.zig b/webgpu/src/main.zig deleted file mode 100644 index ecfeade1..00000000 --- a/webgpu/src/main.zig +++ /dev/null @@ -1,10 +0,0 @@ -const std = @import("std"); -const testing = std.testing; - -export fn add(a: i32, b: i32) i32 { - return a + b; -} - -test "basic add functionality" { - try testing.expect(add(3, 7) == 10); -}