You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make various parameters and return types require specialization when targeting WGSL (shader-slang#5483)
Structured buffer types translate to array types in the WGSL emitter.
WGSL doesn't allow passing runtime-sized arrays to functions.
Similarly for pointers to texture handles.
Also, structured buffers (runtime-sized arrays) cannot be returned in WGSL.
This closes issue shader-slang#5228, issue shader-slang#5278 and issue shader-slang#5288 by enabling specialized functions
to be generated in these cases, in order to work around these constraints.
0 commit comments