From 8329ab00056689d42c77f6381997a03f66290a44 Mon Sep 17 00:00:00 2001 From: Niklas Niehus Date: Tue, 26 Nov 2024 02:55:44 +0100 Subject: [PATCH] WebGPUAttributeUtils: fix updateAttribute() when using range (#29966) --- src/renderers/webgpu/utils/WebGPUAttributeUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderers/webgpu/utils/WebGPUAttributeUtils.js b/src/renderers/webgpu/utils/WebGPUAttributeUtils.js index a05f061d376de6..586cf5ab91f97d 100644 --- a/src/renderers/webgpu/utils/WebGPUAttributeUtils.js +++ b/src/renderers/webgpu/utils/WebGPUAttributeUtils.js @@ -130,8 +130,8 @@ class WebGPUAttributeUtils { buffer, 0, array, - range.start * array.BYTES_PER_ELEMENT, - range.count * array.BYTES_PER_ELEMENT + range.start, + range.count ); }