gpu: implement Dawn textureGetWidth
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
52da24300f
commit
06dfca4fd3
1 changed files with 1 additions and 2 deletions
|
|
@ -1119,8 +1119,7 @@ pub const Interface = gpu.Interface(struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn textureGetWidth(texture: *gpu.Texture) u32 {
|
pub inline fn textureGetWidth(texture: *gpu.Texture) u32 {
|
||||||
_ = texture;
|
return procs.textureGetWidth.?(@ptrCast(c.WGPUTexture, texture));
|
||||||
unreachable;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn textureSetLabel(texture: *gpu.Texture, label: [*:0]const u8) void {
|
pub inline fn textureSetLabel(texture: *gpu.Texture, label: [*:0]const u8) void {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue