gpu: add PipelineLayout.setLabel

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

View file

@ -691,6 +691,11 @@ const pipeline_layout_vtable = PipelineLayout.VTable{
c.wgpuPipelineLayoutRelease(@ptrCast(c.WGPUPipelineLayout, ptr));
}
}).release,
.setLabel = (struct {
pub fn setLabel(ptr: *anyopaque, label: [:0]const u8) void {
c.wgpuPipelineLayoutSetLabel(@ptrCast(c.WGPUPipelineLayout, ptr), label);
}
}).setLabel,
};
fn wrapExternalTexture(texture: c.WGPUExternalTexture) ExternalTexture {