Browse Source

TSL: Fix texture_depth_2d in wgslFn (#27323)

sunag 1 year ago
parent
commit
f4b09ecdc6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/renderers/webgpu/nodes/WGSLNodeBuilder.js

+ 1 - 1
examples/jsm/renderers/webgpu/nodes/WGSLNodeBuilder.js

@@ -422,7 +422,7 @@ class WGSLNodeBuilder extends NodeBuilder {
 
 
 	isReference( type ) {
 	isReference( type ) {
 
 
-		return super.isReference( type ) || type === 'texture_2d' || type === 'texture_cube' || type === 'texture_storage_2d';
+		return super.isReference( type ) || type === 'texture_2d' || type === 'texture_cube' || type === 'texture_depth_2d' || type === 'texture_storage_2d';
 
 
 	}
 	}