gpu: add BindGroupLayout.setLabel

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 08:41:28 -07:00 committed by Stephen Gutekanst
parent 57bee4f0c4
commit 705289b79d
2 changed files with 11 additions and 2 deletions

View file

@ -756,6 +756,11 @@ const bind_group_layout_vtable = BindGroupLayout.VTable{
c.wgpuBindGroupLayoutRelease(@ptrCast(c.WGPUBindGroupLayout, ptr));
}
}).release,
.setLabel = (struct {
pub fn setLabel(ptr: *anyopaque, label: [:0]const u8) void {
c.wgpuBindGroupLayoutSetLabel(@ptrCast(c.WGPUBindGroupLayout, ptr), label);
}
}).setLabel,
};
fn wrapBuffer(buffer: c.WGPUBuffer) Buffer {