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

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