Sfoglia il codice sorgente

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

sunag 2 settimane fa
parent
commit
be5aee80df
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 ) {
 	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 = {};
 		if ( textureData.dimensionsSnippet === undefined ) textureData.dimensionsSnippet = {};
 
 

粤ICP备19079148号