blob: b7e7beaadf78db7639b3d331b6fee5db044949f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// sincos.slang
//TEST:SIMPLE:
// Just confirming that calls to the `sincos()` built
// in work in the front-end.
float test( float4x4 m, float4 v, float a )
{
float4x4 mc, ms;
sincos(m, mc, ms);
float4 vc, vs;
sincos(v, vc, vs);
float c, s;
sincos(a, c, s);
return c + s + vc[0] + vs[0] + mc[0][0] + ms[0][0];
}
|