Skip to content

Commit c3ef933

Browse files
feat(const_eval): impl. atanh
1 parent 1cb017c commit c3ef933

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Wgpu now exposes backend feature for the Direct3D 12 (`dx12`) and Metal (`metal`
9393
- `asin`
9494
- `asinh`
9595
- `atan`
96+
- `atanh`
9697
- `cos`
9798
- `cosh`
9899
- `round`

naga/src/proc/constant_evaluator.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,9 @@ impl<'a> ConstantEvaluator<'a> {
833833
crate::MathFunction::Atan => {
834834
component_wise_float!(self, span, [arg], |e| { Ok([e.atan()]) })
835835
}
836+
crate::MathFunction::Atanh => {
837+
component_wise_float!(self, span, [arg], |e| { Ok([e.atanh()]) })
838+
}
836839
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
837840
crate::MathFunction::Clamp => {
838841
component_wise_scalar!(

0 commit comments

Comments
 (0)