gpu: begin plotting how to wrap a WGPUInstance

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-06 19:34:39 -07:00 committed by Stephen Gutekanst
parent 5f7fe4d7e2
commit 5656d3252a
3 changed files with 9 additions and 14 deletions

View file

@ -1,9 +1,11 @@
//! A native webgpu.h implementation of the gpu.Interface
const c = @import("c.zig").c;
const Interface = @import("Interface.zig");
/// Returns a native webgpu.h implementation of the gpu.Interface
pub fn native() Interface {
/// Returns a native webgpu.h implementation of the gpu.Interface, wrapping the given WGPUInstance.
pub fn native(instance: c.WGPUInstance) Interface {
// TODO: implement Interface
_ = instance;
@panic("not implemented");
// TODO: implement Device interface