Просмотр исходного кода

WGSLNodeBuilder: Fix `textureDimensions()` cache scope (#33312)

sunag 2 недель назад
Родитель
Сommit
be5aee80df
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/renderers/webgpu/nodes/WGSLNodeBuilder.js

+ 1 - 1
src/renderers/webgpu/nodes/WGSLNodeBuilder.js

@@ -436,7 +436,7 @@ class WGSLNodeBuilder extends NodeBuilder {
 	 */
 	generateTextureDimension( texture, textureProperty, levelSnippet ) {
 
-		const textureData = this.getDataFromNode( texture, this.shaderStage, this.globalCache );
+		const textureData = this.getDataFromNode( texture, this.shaderStage, this.cache );
 
 		if ( textureData.dimensionsSnippet === undefined ) textureData.dimensionsSnippet = {};
 

粤ICP备19079148号