Skip to content

Commit be5aee8

Browse files
authored
WGSLNodeBuilder: Fix textureDimensions() cache scope (#33312)
1 parent 8ad5f7c commit be5aee8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/renderers/webgpu/nodes/WGSLNodeBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class WGSLNodeBuilder extends NodeBuilder {
436436
*/
437437
generateTextureDimension( texture, textureProperty, levelSnippet ) {
438438

439-
const textureData = this.getDataFromNode( texture, this.shaderStage, this.globalCache );
439+
const textureData = this.getDataFromNode( texture, this.shaderStage, this.cache );
440440

441441
if ( textureData.dimensionsSnippet === undefined ) textureData.dimensionsSnippet = {};
442442

0 commit comments

Comments
 (0)