Explorar el Código

WebGPURenderer: Fix binding size (#25072)

sunag hace 2 años
padre
commit
ed97626497
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPUUniformsGroup.js

+ 1 - 1
examples/jsm/renderers/webgpu/WebGPUUniformsGroup.js

@@ -90,7 +90,7 @@ class WebGPUUniformsGroup extends WebGPUUniformBuffer {
 
 		}
 
-		return offset;
+		return Math.ceil( offset / GPUChunkSize ) * GPUChunkSize;
 
 	}