gpu: add BindGroup.setLabel
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
bd1d91faa3
commit
57bee4f0c4
2 changed files with 11 additions and 2 deletions
|
|
@ -731,6 +731,11 @@ const bind_group_vtable = BindGroup.VTable{
|
|||
c.wgpuBindGroupRelease(@ptrCast(c.WGPUBindGroup, ptr));
|
||||
}
|
||||
}).release,
|
||||
.setLabel = (struct {
|
||||
pub fn setLabel(ptr: *anyopaque, label: [:0]const u8) void {
|
||||
c.wgpuBindGroupSetLabel(@ptrCast(c.WGPUBindGroup, ptr), label);
|
||||
}
|
||||
}).setLabel,
|
||||
};
|
||||
|
||||
fn wrapBindGroupLayout(layout: c.WGPUBindGroupLayout) BindGroupLayout {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue