Browse Source

WebGPUAttributes: Improve comment of byte alignment computation.

Mugen87 4 years ago
parent
commit
7bc80c5a84
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPUAttributes.js

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

@@ -64,7 +64,7 @@ class WebGPUAttributes {
 	_createBuffer( attribute, usage ) {
 
 		const array = attribute.array;
-		const size = array.byteLength + ( ( 4 - ( array.byteLength % 4 ) ) % 4 ); // ensure 4 byte alignment
+		const size = array.byteLength + ( ( 4 - ( array.byteLength % 4 ) ) % 4 ); // ensure 4 byte alignment, see #20441
 
 		const buffer = this.device.createBuffer( {
 			size: size,