gpu: implement Dawn deviceReference

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 15:20:37 -07:00 committed by Stephen Gutekanst
parent babe2ed373
commit 981ebae5c0

View file

@ -601,13 +601,11 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn deviceReference(device: *gpu.Device) void {
_ = device;
unreachable;
procs.deviceReference.?(@ptrCast(c.WGPUDevice, device));
}
pub inline fn deviceRelease(device: *gpu.Device) void {
_ = device;
unreachable;
procs.deviceRelease.?(@ptrCast(c.WGPUDevice, device));
}
pub inline fn externalTextureDestroy(external_texture: *gpu.ExternalTexture) void {