dawn-cmake/test/tint/builtins/frexp/vector/runtime.wgsl.expected.dxc.hlsl

20 lines
444 B
HLSL

struct frexp_result_vec2 {
float2 fract;
int2 exp;
};
frexp_result_vec2 tint_frexp(float2 param_0) {
float2 exp;
float2 fract = frexp(param_0, exp);
frexp_result_vec2 result = {fract, int2(exp)};
return result;
}
[numthreads(1, 1, 1)]
void main() {
const float2 tint_symbol = float2(1.25f, 3.75f);
const frexp_result_vec2 res = tint_frexp(tint_symbol);
const float2 fract = res.fract;
const int2 exp = res.exp;
return;
}