gpu: implement Dawn textureDestroy

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:24:15 -07:00 committed by Stephen Gutekanst
parent 7b62d5f81b
commit d382980ba2

View file

@ -1094,8 +1094,7 @@ pub const Interface = gpu.Interface(struct {
} }
pub inline fn textureDestroy(texture: *gpu.Texture) void { pub inline fn textureDestroy(texture: *gpu.Texture) void {
_ = texture; procs.textureDestroy.?(@ptrCast(c.WGPUTexture, texture));
unreachable;
} }
pub inline fn textureGetDepthOrArrayLayers(texture: *gpu.Texture) u32 { pub inline fn textureGetDepthOrArrayLayers(texture: *gpu.Texture) u32 {