gpu: implement Dawn bufferDestroy

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 16:55:19 -07:00 committed by Stephen Gutekanst
parent b3edda9627
commit 6223e4e1f1

View file

@ -104,8 +104,7 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn bufferDestroy(buffer: *gpu.Buffer) void {
_ = buffer;
unreachable;
procs.bufferDestroy.?(@ptrCast(c.WGPUBuffer, buffer));
}
// TODO: file a bug on Dawn docstrings, this returns null but is not documented as such.