copyFramebufferToTexture doesn't work fine in webgpu version

In my app, I want to copy some rendered scene to a texture. This works fine in old WebGLRenderer version. But doesn’t work in WebGPURenderer.

const outputTexture = new FrameBufferTexture(32, 32);
let oldRenderTarget = renderer.getRenderTarget();
renderer.setRenderTarget(renderTarget);
renderer.clear();
renderer.render(this._mesh, _camera);
renderer.copyFramebufferToTexture(outputTexture);
renderer.setRenderTarget(oldRenderTarget);

The error info is


Which means the renderContext is null in the source code of threejs.

It looks like a bug. Or the usage of copyFramebufferToTexture has changed?