@@ -83,49 +83,49 @@ long int64_function(
83
83
metal::ulong4 _e71 = input_uniform.val_u64_4_;
84
84
long _e74 = val;
85
85
val = as_type<long>(as_type<ulong>(_e74) + as_type<ulong>(as_type<metal::long4>(_e71).w));
86
- long _e79 = val;
87
- val = as_type<long>(as_type<ulong>(_e79) + as_type<ulong>(as_type<long>(as_type<ulong>(-9223372036854775807L) - as_type<ulong>(1L))));
88
- long _e85 = input_uniform.val_i64_;
89
- long _e88 = input_storage.val_i64_;
90
- output.val_i64_ = as_type<long>(as_type<ulong>(_e85) + as_type<ulong>(_e88));
91
- metal::long2 _e94 = input_uniform.val_i64_2_;
92
- metal::long2 _e97 = input_storage.val_i64_2_;
93
- output.val_i64_2_ = as_type<metal::long2>(as_type<metal::ulong2>(_e94) + as_type<metal::ulong2>(_e97));
94
- metal::long3 _e103 = input_uniform.val_i64_3_;
95
- metal::long3 _e106 = input_storage.val_i64_3_;
96
- output.val_i64_3_ = as_type<metal::long3>(as_type<metal::ulong3>(_e103) + as_type<metal::ulong3>(_e106));
97
- metal::long4 _e112 = input_uniform.val_i64_4_;
98
- metal::long4 _e115 = input_storage.val_i64_4_;
99
- output.val_i64_4_ = as_type<metal::long4>(as_type<metal::ulong4>(_e112) + as_type<metal::ulong4>(_e115));
100
- type_12 _e121 = input_arrays.val_i64_array_2_;
101
- output_arrays.val_i64_array_2_ = _e121;
86
+ long _e77 = val;
87
+ val = as_type<long>(as_type<ulong>(_e77) + as_type<ulong>(-9223372036854775808L));
88
+ long _e83 = input_uniform.val_i64_;
89
+ long _e86 = input_storage.val_i64_;
90
+ output.val_i64_ = as_type<long>(as_type<ulong>(_e83) + as_type<ulong>(_e86));
91
+ metal::long2 _e92 = input_uniform.val_i64_2_;
92
+ metal::long2 _e95 = input_storage.val_i64_2_;
93
+ output.val_i64_2_ = as_type<metal::long2>(as_type<metal::ulong2>(_e92) + as_type<metal::ulong2>(_e95));
94
+ metal::long3 _e101 = input_uniform.val_i64_3_;
95
+ metal::long3 _e104 = input_storage.val_i64_3_;
96
+ output.val_i64_3_ = as_type<metal::long3>(as_type<metal::ulong3>(_e101) + as_type<metal::ulong3>(_e104));
97
+ metal::long4 _e110 = input_uniform.val_i64_4_;
98
+ metal::long4 _e113 = input_storage.val_i64_4_;
99
+ output.val_i64_4_ = as_type<metal::long4>(as_type<metal::ulong4>(_e110) + as_type<metal::ulong4>(_e113));
100
+ type_12 _e119 = input_arrays.val_i64_array_2_;
101
+ output_arrays.val_i64_array_2_ = _e119;
102
+ long _e120 = val;
102
103
long _e122 = val;
104
+ val = as_type<long>(as_type<ulong>(_e122) + as_type<ulong>(naga_abs(_e120)));
103
105
long _e124 = val;
104
- val = as_type< long>(as_type<ulong>(_e124) + as_type<ulong>(naga_abs(_e122))) ;
106
+ long _e125 = val ;
105
107
long _e126 = val;
106
- long _e127 = val;
107
108
long _e128 = val;
109
+ val = as_type<long>(as_type<ulong>(_e128) + as_type<ulong>(metal::clamp(_e124, _e125, _e126)));
108
110
long _e130 = val;
109
- val = as_type<long>(as_type<ulong>(_e130) + as_type<ulong>( metal::clamp(_e126, _e127, _e128)) );
111
+ metal::long2 _e131 = metal::long2(_e130 );
110
112
long _e132 = val;
111
113
metal::long2 _e133 = metal::long2(_e132);
112
- long _e134 = val;
113
- metal::long2 _e135 = metal::long2(_e134 );
114
+ long _e135 = val;
115
+ val = as_type<long>(as_type<ulong>( _e135) + as_type<ulong>(( + _e131.x * _e133.x + _e131.y * _e133.y)) );
114
116
long _e137 = val;
115
- val = as_type<long>(as_type<ulong>(_e137) + as_type<ulong>(( + _e133.x * _e135.x + _e133.y * _e135.y)));
116
- long _e139 = val;
117
+ long _e138 = val;
117
118
long _e140 = val;
119
+ val = as_type<long>(as_type<ulong>(_e140) + as_type<ulong>(metal::max(_e137, _e138)));
118
120
long _e142 = val;
119
- val = as_type<long>(as_type<ulong>(_e142) + as_type<ulong>(metal::max(_e139, _e140)));
120
- long _e144 = val;
121
+ long _e143 = val;
121
122
long _e145 = val;
123
+ val = as_type<long>(as_type<ulong>(_e145) + as_type<ulong>(metal::min(_e142, _e143)));
122
124
long _e147 = val;
123
- val = as_type<long>(as_type<ulong>(_e147) + as_type<ulong>(metal::min(_e144, _e145)));
124
125
long _e149 = val;
126
+ val = as_type<long>(as_type<ulong>(_e149) + as_type<ulong>(metal::select(metal::select(long(-1), long(1), (_e147 > 0)), long(0), (_e147 == 0))));
125
127
long _e151 = val;
126
- val = as_type<long>(as_type<ulong>(_e151) + as_type<ulong>(metal::select(metal::select(long(-1), long(1), (_e149 > 0)), long(0), (_e149 == 0))));
127
- long _e153 = val;
128
- return _e153;
128
+ return _e151;
129
129
}
130
130
131
131
ulong naga_f2u64(float value) {
0 commit comments