From 2e0a7019b238cfe787a6815a28136d7f9694f2ae Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 6 Mar 2022 18:38:38 -0700 Subject: [PATCH] gpu: name the interface gpu.Interface `gpu.Device` should be reserved for WGPUDevice Signed-off-by: Stephen Gutekanst --- gpu/src/{Device.zig => Interface.zig} | 0 gpu/src/main.zig | 8 ++++---- gpu/src/native.zig | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) rename gpu/src/{Device.zig => Interface.zig} (100%) diff --git a/gpu/src/Device.zig b/gpu/src/Interface.zig similarity index 100% rename from gpu/src/Device.zig rename to gpu/src/Interface.zig diff --git a/gpu/src/main.zig b/gpu/src/main.zig index 20601d54..690a0121 100644 --- a/gpu/src/main.zig +++ b/gpu/src/main.zig @@ -16,17 +16,17 @@ //! //! const std = @import("std"); -const Adapter = @import("Adapter.zig"); -const Device = @import("Device.zig"); - +const Interface = @import("Interface.zig"); const native = @import("native.zig").native; +const Adapter = @import("Adapter.zig"); + const FeatureName = @import("feature_name.zig").FeatureName; const SupportedLimits = @import("supported_limits.zig").SupportedLimits; test "syntax" { _ = Adapter; - _ = Device; + _ = Interface; _ = native; _ = FeatureName; _ = SupportedLimits; diff --git a/gpu/src/native.zig b/gpu/src/native.zig index 3cac7de5..4c6e471a 100644 --- a/gpu/src/native.zig +++ b/gpu/src/native.zig @@ -1,9 +1,9 @@ -//! A native webgpu.h based implementation of the Device interface. -const Device = @import("Device.zig"); +//! A native webgpu.h implementation of the gpu.Interface +const Interface = @import("Interface.zig"); -/// Returns a native WebGPU implementation of the Device interface. -pub fn native() Device { - // TODO: implement Device interface +/// Returns a native webgpu.h implementation of the gpu.Interface +pub fn native() Interface { + // TODO: implement Interface @panic("not implemented"); // TODO: implement Adapter interface: