gpu: add Texture.setLabel
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
7c94856ed6
commit
e674250ec5
2 changed files with 10 additions and 1 deletions
|
|
@ -556,6 +556,11 @@ const texture_vtable = Texture.VTable{
|
|||
c.wgpuTextureRelease(@ptrCast(c.WGPUTexture, ptr));
|
||||
}
|
||||
}).release,
|
||||
.setLabel = (struct {
|
||||
pub fn setLabel(ptr: *anyopaque, label: [:0]const u8) void {
|
||||
c.wgpuTextureSetLabel(@ptrCast(c.WGPUTexture, ptr), label);
|
||||
}
|
||||
}).setLabel,
|
||||
};
|
||||
|
||||
fn wrapSampler(sampler: c.WGPUSampler) Sampler {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue