gpu: implement Dawn textureGetUsage
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
5cc96a4b8e
commit
dbac3c325a
1 changed files with 3 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue