gpu: add RenderPipeline.setLabel

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 09:13:13 -07:00 committed by Stephen Gutekanst
parent 8b340e1386
commit acbb008492
2 changed files with 10 additions and 1 deletions

View file

@ -591,6 +591,11 @@ const render_pipeline_vtable = RenderPipeline.VTable{
c.wgpuRenderPipelineRelease(@ptrCast(c.WGPURenderPipeline, ptr));
}
}).release,
.setLabel = (struct {
pub fn setLabel(ptr: *anyopaque, label: [:0]const u8) void {
c.wgpuRenderPipelineSetLabel(@ptrCast(c.WGPURenderPipeline, ptr), label);
}
}).setLabel,
};
fn wrapRenderPassEncoder(pass: c.WGPURenderPassEncoder) RenderPassEncoder {