gpu: implement ComputePassEncoder.insertDebugMarker

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-16 22:07:51 -07:00 committed by Stephen Gutekanst
parent 080edfe49a
commit 3a646b6713
2 changed files with 12 additions and 2 deletions

View file

@ -1620,6 +1620,11 @@ const compute_pass_encoder_vtable = ComputePassEncoder.VTable{
c.wgpuComputePassEncoderSetLabel(@ptrCast(c.WGPUComputePassEncoder, ptr), label);
}
}).setLabel,
.insertDebugMarker = (struct {
pub fn insertDebugMarker(ptr: *anyopaque, marker_label: [*:0]const u8) void {
c.wgpuComputePassEncoderInsertDebugMarker(@ptrCast(c.WGPUComputePassEncoder, ptr), marker_label);
}
}).insertDebugMarker,
};
fn wrapComputePipeline(pipeline: c.WGPUComputePipeline) ComputePipeline {