gpu: add RenderBundle.setLabel

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 09:07:56 -07:00 committed by Stephen Gutekanst
parent 48907f4404
commit 45c5655083
2 changed files with 9 additions and 1 deletions

View file

@ -631,6 +631,11 @@ const render_bundle_encoder_vtable = RenderBundleEncoder.VTable{
c.wgpuRenderBundleEncoderRelease(@ptrCast(c.WGPURenderBundleEncoder, ptr));
}
}).release,
.setLabel = (struct {
pub fn setLabel(ptr: *anyopaque, label: [:0]const u8) void {
c.wgpuRenderBundleSetLabel(@ptrCast(c.WGPURenderBundle, ptr), label);
}
}).setLabel,
};
fn wrapRenderBundle(bundle: c.WGPURenderBundle) RenderBundle {