Prechádzať zdrojové kódy

WebGPURenderer: fix cache textureViews (#29261)

sunag 1 rok pred
rodič
commit
54e591c3fd

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

@@ -243,7 +243,7 @@ class WebGPUBindingUtils {
 				} else {
 				} else {
 
 
 					const mipLevelCount = binding.store ? 1 : textureData.texture.mipLevelCount;
 					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 ];
 					resourceGPU = textureData[ propertyName ];
 
 

粤ICP备19079148号