2021-07-23 16:43:01 +00:00
|
|
|
intrinsics/gen/frexp/a3f940.wgsl:29:24 warning: use of deprecated intrinsic
|
|
|
|
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
|
|
|
^^^^^
|
2021-06-18 18:56:13 +00:00
|
|
|
|
2021-07-08 21:21:27 +00:00
|
|
|
#include <metal_stdlib>
|
2021-06-18 18:56:13 +00:00
|
|
|
|
2021-07-08 21:21:27 +00:00
|
|
|
using namespace metal;
|
2021-07-23 16:43:01 +00:00
|
|
|
|
|
|
|
float2 tint_frexp(float2 param_0, threadgroup int2* param_1) {
|
|
|
|
int2 exp;
|
|
|
|
float2 sig = frexp(param_0, exp);
|
|
|
|
*param_1 = exp;
|
|
|
|
return sig;
|
|
|
|
}
|
|
|
|
|
2021-07-08 21:21:27 +00:00
|
|
|
void frexp_a3f940(threadgroup int2* const tint_symbol_1) {
|
2021-07-23 16:43:01 +00:00
|
|
|
float2 res = tint_frexp(float2(), &(*(tint_symbol_1)));
|
2021-06-18 18:56:13 +00:00
|
|
|
}
|
|
|
|
|
2021-07-08 21:21:27 +00:00
|
|
|
kernel void compute_main(uint local_invocation_index [[thread_index_in_threadgroup]]) {
|
|
|
|
threadgroup int2 tint_symbol_2;
|
|
|
|
if ((local_invocation_index == 0u)) {
|
|
|
|
tint_symbol_2 = int2();
|
|
|
|
}
|
|
|
|
threadgroup_barrier(mem_flags::mem_threadgroup);
|
|
|
|
frexp_a3f940(&(tint_symbol_2));
|
|
|
|
return;
|
2021-06-18 18:56:13 +00:00
|
|
|
}
|
|
|
|
|