Skip to content

Commit

Permalink
feat(const_eval): impl. atanh
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Jan 5, 2024
1 parent 6e0ee18 commit af714c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Wgpu now exposes backend feature for the Direct3D 12 (`dx12`) and Metal (`metal`
- `asin`
- `asinh`
- `atan`
- `atanh`
- `cos`
- `cosh`
- `round`
Expand Down
3 changes: 3 additions & 0 deletions naga/src/proc/constant_evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,9 @@ impl<'a> ConstantEvaluator<'a> {
crate::MathFunction::Atan => {
component_wise_float!(self, span, [arg], |e| { Ok(e.atan().into()) })
}
crate::MathFunction::Atanh => {
component_wise_float!(self, span, [arg], |e| { Ok(e.atanh().into()) })
}
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
crate::MathFunction::Clamp => {
component_wise_scalar!(
Expand Down

0 comments on commit af714c5

Please sign in to comment.