gpu: add ExternalTexture.setLabel

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 09:05:13 -07:00 committed by Stephen Gutekanst
parent 17cb400075
commit bf81debf42
2 changed files with 10 additions and 1 deletions

View file

@ -711,6 +711,11 @@ const external_texture_vtable = ExternalTexture.VTable{
c.wgpuExternalTextureRelease(@ptrCast(c.WGPUExternalTexture, ptr));
}
}).release,
.setLabel = (struct {
pub fn setLabel(ptr: *anyopaque, label: [:0]const u8) void {
c.wgpuExternalTextureSetLabel(@ptrCast(c.WGPUExternalTexture, ptr), label);
}
}).setLabel,
};
fn wrapBindGroup(group: c.WGPUBindGroup) BindGroup {