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:
parent
414887db2a
commit
2e0a7019b2
3 changed files with 9 additions and 9 deletions
|
|
@ -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,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue