gpu: add RenderPassEncoder.setLabel

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

View file

@ -611,6 +611,11 @@ const render_pass_encoder_vtable = RenderPassEncoder.VTable{
c.wgpuRenderPassEncoderRelease(@ptrCast(c.WGPURenderPassEncoder, ptr));
}
}).release,
.setLabel = (struct {
pub fn setLabel(ptr: *anyopaque, label: [:0]const u8) void {
c.wgpuRenderPassEncoderSetLabel(@ptrCast(c.WGPURenderPassEncoder, ptr), label);
}
}).setLabel,
};
fn wrapRenderBundleEncoder(enc: c.WGPURenderBundleEncoder) RenderBundleEncoder {