gpu: add Sampler.setLabel

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

View file

@ -571,6 +571,11 @@ const sampler_vtable = Sampler.VTable{
c.wgpuSamplerRelease(@ptrCast(c.WGPUSampler, ptr));
}
}).release,
.setLabel = (struct {
pub fn setLabel(ptr: *anyopaque, label: [:0]const u8) void {
c.wgpuSamplerSetLabel(@ptrCast(c.WGPUSampler, ptr), label);
}
}).setLabel,
};
fn wrapRenderPipeline(pipeline: c.WGPURenderPipeline) RenderPipeline {