yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
691ebae76
master
1// sincos.slang 2//TEST:SIMPLE: 3 4// Just confirming that calls to the `sincos()` built 5// in work in the front-end. 6 7float test( float4x4 m, float4 v, float a ) 8{ 9 float4x4 mc, ms; 10 sincos(m, mc, ms); 11 12 float4 vc, vs; 13 sincos(v, vc, vs); 14 15 float c, s; 16 sincos(a, c, s); 17 18 return c + s + vc[0] + vs[0] + mc[0][0] + ms[0][0]; 19}