gpu: name the interface gpu.Interface

`gpu.Device` should be reserved for WGPUDevice

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-06 18:38:38 -07:00 committed by Stephen Gutekanst
parent 414887db2a
commit 2e0a7019b2
3 changed files with 9 additions and 9 deletions

View file

@ -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;

View file

@ -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: