Преглед изворни кода

WebGPURenderer: fix cache textureViews (#29261)

sunag пре 1 година
родитељ
комит
54e591c3fd
1 измењених фајлова са 1 додато и 1 уклоњено
  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号