Explorar o código

WebGPURenderer: fix cache textureViews (#29261)

sunag hai 1 ano
pai
achega
54e591c3fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/renderers/webgpu/utils/WebGPUBindingUtils.js

+ 1 - 1
src/renderers/webgpu/utils/WebGPUBindingUtils.js

@@ -243,7 +243,7 @@ class WebGPUBindingUtils {
 				} else {
 
 					const mipLevelCount = binding.store ? 1 : textureData.texture.mipLevelCount;
-					const propertyName = `view-${ mipLevelCount }`;
+					const propertyName = `view-${ textureData.texture.width }-${ textureData.texture.height }-${ mipLevelCount }`;
 
 					resourceGPU = textureData[ propertyName ];
 

粤ICP备19079148号