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
While transpiling this code i discover the 8U isnt correctly understand by the transpiler.
Reproduction steps
In tsl transpiler :
8U ->int( 8U )
expected 8U -> uint( 8 )
also in the following example it seems the mul of x as uvec3 by uint not working correctly
// hash33 by iq https://www.shadertoy.com/view/XlXcW4
const uint k = 1103515245U; // GLIB C
vec3 hash33( uvec3 x )
{
x = ((x>>8U)^x.yzx)*k;
x = ((x>>8U)^x.yzx)*k;
x = ((x>>8U)^x.yzx)*k;
return vec3(x)*(1.0/float(0xffffffffU));
}
Description
While transpiling this code i discover the 8U isnt correctly understand by the transpiler.
Reproduction steps
In tsl transpiler :
8U
->int( 8U )
expected
8U
->uint( 8 )
also in the following example it seems the mul of x as uvec3 by uint not working correctly
result :
Code
X
Live example
https://threejs.org/examples/webgpu_tsl_transpiler.html
Screenshots
No response
Version
r172
Device
No response
Browser
No response
OS
No response
The text was updated successfully, but these errors were encountered: