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
Currently there is no way to rewrite GLSL shader that uses packing functions such as UnpackHalf2x16 to TSL. However, both GLSL and WGSL provide equivalent functions for packing/unpacking vectors to/from integers
Description
Currently there is no way to rewrite GLSL shader that uses packing functions such as
UnpackHalf2x16
to TSL. However, both GLSL and WGSL provide equivalent functions for packing/unpacking vectors to/from integersGLSL:
WGSL:
https://www.w3.org/TR/WGSL/#pack-builtin-functions
https://www.w3.org/TR/WGSL/#unpack-builtin-functions
Solution
Please add packing and unpacking functions to TSL like it is done for
bitcast
function in MathNodeAlternatives
Otherwise is there any simple way of adding new math functions to TSL by providing GLSL and WGSL code equivalents?
Additional context
GLSL example code:
After rewritten to TSL should look like this:
The text was updated successfully, but these errors were encountered: