gpu: implement Dawn commandBufferRelease

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 15:18:05 -07:00 committed by Stephen Gutekanst
parent 7e46216994
commit 330e001179

View file

@ -178,8 +178,7 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn commandBufferRelease(command_buffer: *gpu.CommandBuffer) void {
_ = command_buffer;
unreachable;
procs.commandBufferRelease.?(@ptrCast(c.WGPUCommandBuffer, command_buffer));
}
pub inline fn commandEncoderBeginComputePass(command_encoder: *gpu.CommandEncoder, descriptor: ?*const gpu.ComputePassDescriptor) *gpu.ComputePassEncoder {