Explorar o código

WebGPURenderer: Fix binding size (#25072)

sunag %!s(int64=2) %!d(string=hai) anos
pai
achega
ed97626497
Modificáronse 1 ficheiros con 1 adicións e 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;
 
 	}