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 ab0e7cb commit 6c7d807Copy full SHA for 6c7d807
src/renderers/webgpu/utils/WebGPUTextureUtils.js
@@ -540,7 +540,7 @@ class WebGPUTextureUtils {
540
541
const readBuffer = device.createBuffer(
542
{
543
- size: ( height - 1 ) * bytesPerRow + width * bytesPerTexel, // see https://github.com/mrdoob/three.js/issues/31658#issuecomment-3229442010
+ 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