gpu: implement CommandEncoder.insertDebugMarker

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-16 21:47:07 -07:00 committed by Stephen Gutekanst
parent 4e3ffd4557
commit d2a0bc3b68
2 changed files with 10 additions and 2 deletions

View file

@ -1493,6 +1493,11 @@ const command_encoder_vtable = CommandEncoder.VTable{
return wrapCommandBuffer(c.wgpuCommandEncoderFinish(@ptrCast(c.WGPUCommandEncoder, ptr), desc));
}
}).finish,
.insertDebugMarker = (struct {
pub fn insertDebugMarker(ptr: *anyopaque, marker_label: [*:0]const u8) void {
c.wgpuCommandEncoderInsertDebugMarker(@ptrCast(c.WGPUCommandEncoder, ptr), marker_label);
}
}).insertDebugMarker,
.setLabel = (struct {
pub fn setLabel(ptr: *anyopaque, label: [:0]const u8) void {
c.wgpuCommandEncoderSetLabel(@ptrCast(c.WGPUCommandEncoder, ptr), label);