Skip to content

Commit 0530389

Browse files
feat(const_eval): impl. atanh
1 parent 2c296f0 commit 0530389

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

naga/src/proc/constant_evaluator.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,9 @@ impl<'a> ConstantEvaluator<'a> {
795795
crate::MathFunction::Atan => {
796796
component_wise_float!(self, span, [arg], |e| { e.atan().into() })
797797
}
798+
crate::MathFunction::Atanh => {
799+
component_wise_float!(self, span, [arg], |e| { e.atanh().into() })
800+
}
798801
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
799802
crate::MathFunction::Clamp => {
800803
component_wise_scalar!(

0 commit comments

Comments
 (0)