gpu: add Sampler.setLabel
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
acbb008492
commit
c90f22811d
2 changed files with 10 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue