浏览代码

WebGPUTextures: Clean up.

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 {
 		} 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 ) ||
 			if ( ( typeof HTMLImageElement !== 'undefined' && image instanceof HTMLImageElement ) ||
 				( typeof HTMLCanvasElement !== 'undefined' && image instanceof HTMLCanvasElement ) ) {
 				( typeof HTMLCanvasElement !== 'undefined' && image instanceof HTMLCanvasElement ) ) {
@@ -357,7 +357,7 @@ class WebGPUTextures {
 
 
 				if ( image !== undefined ) {
 				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 );
 					this._copyImageBitmapToTexture( image, textureGPU, needsMipmaps, textureGPUDescriptor );