Mugen87 пре 4 година
родитељ
комит
b4d4566bf2
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      examples/jsm/renderers/webgpu/WebGPUTextures.js

+ 2 - 2
examples/jsm/renderers/webgpu/WebGPUTextures.js

@@ -337,7 +337,7 @@ class WebGPUTextures {
 
 		} else {
 
-			// convert HTML iamges and canvas elements to ImageBitmap before copy
+			// convert HTML images and canvas elements to ImageBitmap
 
 			if ( ( typeof HTMLImageElement !== 'undefined' && image instanceof HTMLImageElement ) ||
 				( typeof HTMLCanvasElement !== 'undefined' && image instanceof HTMLCanvasElement ) ) {
@@ -357,7 +357,7 @@ class WebGPUTextures {
 
 				if ( image !== undefined ) {
 
-					// assuming ImageBitmap. Directly start copy operation of the contents of ImageBitmap into the destination texture
+					// assume ImageBitmap
 
 					this._copyImageBitmapToTexture( image, textureGPU, needsMipmaps, textureGPUDescriptor );