Skip to content

Commit

Permalink
TSL: Add missing types in wgslFn (mrdoob#28928)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag authored Jul 21, 2024
1 parent 216398f commit f48f771
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/renderers/webgpu/nodes/WGSLNodeFunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,24 @@ const wgslTypeLib = {
'mat4x4f': 'mat4',

'sampler': 'sampler',

'texture_1d': 'texture',

'texture_2d': 'texture',
'texture_cube': 'cubeTexture',
'texture_2d_array': 'texture',
'texture_multisampled_2d': 'cubeTexture',

'texture_depth_2d': 'depthTexture',

'texture_3d': 'texture3D',

'texture_cube': 'cubeTexture',
'texture_cube_array': 'cubeTexture',

'texture_storage_1d': 'storageTexture',
'texture_storage_2d': 'storageTexture',
'texture_3d': 'texture3D'
'texture_storage_2d_array': 'storageTexture',
'texture_storage_3d': 'storageTexture'

};

Expand Down

0 comments on commit f48f771

Please sign in to comment.