gpu: implement Dawn textureGetUsage

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:21:29 -07:00 committed by Stephen Gutekanst
parent 5cc96a4b8e
commit dbac3c325a

View file

@ -1129,8 +1129,9 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn textureGetUsage(texture: *gpu.Texture) gpu.Texture.UsageFlags {
_ = texture;
unreachable;
return @bitCast(gpu.Texture.UsageFlags, procs.textureGetUsage.?(
@ptrCast(c.WGPUTexture, texture),
));
}
pub inline fn textureGetWidth(texture: *gpu.Texture) u32 {