浏览代码

TSL: Fix texture_depth_2d in wgslFn (#27323)

sunag 1 年之前
父节点
当前提交
f4b09ecdc6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 ) {
 
-		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';
 
 	}