Преглед изворни кода

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';
 
 	}