Skip to content

Commit 852b1f5

Browse files
authored
TSL: wgslFn added alias and revision - 2 (#28687)
1 parent 30a4123 commit 852b1f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/jsm/nodes/core/NodeBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ class NodeBuilder {
494494

495495
isReference( type ) {
496496

497-
return type === 'void' || type === 'property' || type === 'sampler' || type === 'texture' || type === 'cubeTexture' || type === 'storageTexture' || type === 'texture3D';
497+
return type === 'void' || type === 'property' || type === 'sampler' || type === 'texture' || type === 'cubeTexture' || type === 'storageTexture' || type === 'depthTexture' || type === 'texture3D';
498498

499499
}
500500

examples/jsm/renderers/webgpu/nodes/WGSLNodeFunction.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ const wgslTypeLib = {
5151

5252
'sampler': 'sampler',
5353
'texture_2d': 'texture',
54-
'texture_cube': 'textureCube',
55-
'texture_depth_2d': 'textureDepth',
54+
'texture_cube': 'cubeTexture',
55+
'texture_depth_2d': 'depthTexture',
5656
'texture_storage_2d': 'storageTexture',
5757
'texture_3d': 'texture3D'
5858

0 commit comments

Comments
 (0)