We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3714bd1 commit cf60b96Copy full SHA for cf60b96
src/renderers/webgpu/utils/WebGPUTextureUtils.js
@@ -540,7 +540,7 @@ class WebGPUTextureUtils {
540
541
const readBuffer = device.createBuffer(
542
{
543
- size: width * height * bytesPerTexel,
+ size: ( height - 1 ) * bytesPerRow + width * bytesPerTexel, // see https://github.com/mrdoob/three.js/issues/31658#issuecomment-3229442010
544
usage: GPUBufferUsage.COPY_DST | GPUBufferUsage.MAP_READ
545
}
546
);
0 commit comments