Ver Fonte

WebGPUTextureUtils: Improve `_copyImageToTexture()` (#30260)

ycw há 1 ano atrás
pai
commit
c0b00597ce
1 ficheiros alterados com 2 adições e 7 exclusões
  1. 2 7
      src/renderers/webgpu/utils/WebGPUTextureUtils.js

+ 2 - 7
src/renderers/webgpu/utils/WebGPUTextureUtils.js

@@ -698,7 +698,8 @@ class WebGPUTextureUtils {
 
 		device.queue.copyExternalImageToTexture(
 			{
-				source: image
+				source: image,
+				flipY: flipY
 			}, {
 				texture: textureGPU,
 				mipLevel: 0,
@@ -710,12 +711,6 @@ class WebGPUTextureUtils {
 			}
 		);
 
-		if ( flipY === true ) {
-
-			this._flipY( textureGPU, textureDescriptorGPU, originDepth );
-
-		}
-
 	}
 
 	/**

粤ICP备19079148号