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,12 +0,0 @@
//! A standard interface to a WebGPU implementation.
//!
//! Like std.mem.Allocator, but representing a WebGPU implementation.
// The type erased pointer to the Device implementation
ptr: *anyopaque,
vtable: *const VTable,
pub const VTable = struct {
// TODO(gpu): make these *const fn once stage2 is released.
free: fn (ptr: *anyopaque, buf: []u8, buf_align: u29, ret_addr: usize) void,
};