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 { pub inline fn deviceReference(device: *gpu.Device) void {
_ = device; procs.deviceReference.?(@ptrCast(c.WGPUDevice, device));
unreachable;
} }
pub inline fn deviceRelease(device: *gpu.Device) void { pub inline fn deviceRelease(device: *gpu.Device) void {
_ = device; procs.deviceRelease.?(@ptrCast(c.WGPUDevice, device));
unreachable;
} }
pub inline fn externalTextureDestroy(external_texture: *gpu.ExternalTexture) void { pub inline fn externalTextureDestroy(external_texture: *gpu.ExternalTexture) void {