gpu: add ComputePipeline.setLabel
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0ec0d7a947
commit
17cb400075
2 changed files with 10 additions and 1 deletions
|
|
@ -881,6 +881,11 @@ const compute_pipeline_vtable = ComputePipeline.VTable{
|
|||
c.wgpuComputePipelineRelease(@ptrCast(c.WGPUComputePipeline, ptr));
|
||||
}
|
||||
}).release,
|
||||
.setLabel = (struct {
|
||||
pub fn setLabel(ptr: *anyopaque, label: [:0]const u8) void {
|
||||
c.wgpuComputePipelineSetLabel(@ptrCast(c.WGPUComputePipeline, ptr), label);
|
||||
}
|
||||
}).setLabel,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue