浏览代码

WebGLTestureUtils: Clean up.

Mugen87 4 年之前
父节点
当前提交
fde434c52d
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      examples/jsm/renderers/webgpu/WebGPUTextureUtils.js

+ 1 - 4
examples/jsm/renderers/webgpu/WebGPUTextureUtils.js

@@ -92,13 +92,10 @@ class WebGPUTextureUtils {
 
 	generateMipmappedTexture( imageBitmap, textureGPU, textureGPUDescriptor ) {
 
-		// mipmaps have to computed manually right now, see https://github.com/gpuweb/gpuweb/issues/386
-
 		const pipeline = this.getMipmapPipeline( textureGPUDescriptor.format );
 
 		const commandEncoder = this.device.createCommandEncoder( {} );
-		// @TODO: Consider making this static.
-		const bindGroupLayout = pipeline.getBindGroupLayout( 0 );
+		const bindGroupLayout = pipeline.getBindGroupLayout( 0 ); // @TODO: Consider making this static.
 
 		let srcView = textureGPU.createView( {
 			baseMipLevel: 0,