diff --git a/gpu/src/dawn_impl.zig b/gpu/src/dawn_impl.zig index b6f8ea7c..e91d9cce 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -207,19 +207,21 @@ pub const Interface = gpu.Interface(struct { } pub inline fn commandEncoderCopyBufferToTexture(command_encoder: *gpu.CommandEncoder, source: *const gpu.ImageCopyBuffer, destination: *const gpu.ImageCopyTexture, copy_size: *const gpu.Extent3D) void { - _ = command_encoder; - _ = source; - _ = destination; - _ = copy_size; - unreachable; + procs.commandEncoderCopyBufferToTexture.?( + @ptrCast(c.WGPUCommandEncoder, command_encoder), + @ptrCast(*const c.WGPUImageCopyBuffer, source), + @ptrCast(*const c.WGPUImageCopyTexture, destination), + @ptrCast(*const c.WGPUExtent3D, copy_size), + ); } pub inline fn commandEncoderCopyTextureToBuffer(command_encoder: *gpu.CommandEncoder, source: *const gpu.ImageCopyTexture, destination: *const gpu.ImageCopyBuffer, copy_size: *const gpu.Extent3D) void { - _ = command_encoder; - _ = source; - _ = destination; - _ = copy_size; - unreachable; + procs.commandEncoderCopyTextureToBuffer.?( + @ptrCast(c.WGPUCommandEncoder, command_encoder), + @ptrCast(*const c.WGPUImageCopyTexture, source), + @ptrCast(*const c.WGPUImageCopyBuffer, destination), + @ptrCast(*const c.WGPUExtent3D, copy_size), + ); } pub inline fn commandEncoderCopyTextureToTexture(command_encoder: *gpu.CommandEncoder, source: *const gpu.ImageCopyTexture, destination: *const gpu.ImageCopyTexture, copy_size: *const gpu.Extent3D) void {