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