gpu: add ShaderModule.setLabel

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

View file

@ -480,6 +480,11 @@ const shader_module_vtable = ShaderModule.VTable{
c.wgpuShaderModuleRelease(@ptrCast(c.WGPUShaderModule, ptr));
}
}).release,
.setLabel = (struct {
pub fn setLabel(ptr: *anyopaque, label: [:0]const u8) void {
c.wgpuShaderModuleSetLabel(@ptrCast(c.WGPUShaderModule, ptr), label);
}
}).setLabel,
};
fn wrapSwapChain(swap_chain: c.WGPUSwapChain) SwapChain {