gpu: implement Dawn textureGetWidth

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 15:50:07 -07:00 committed by Stephen Gutekanst
parent 52da24300f
commit 06dfca4fd3

View file

@ -1119,8 +1119,7 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn textureGetWidth(texture: *gpu.Texture) u32 {
_ = texture;
unreachable;
return procs.textureGetWidth.?(@ptrCast(c.WGPUTexture, texture));
}
pub inline fn textureSetLabel(texture: *gpu.Texture, label: [*:0]const u8) void {