Skip to content

Commit 4fa8092

Browse files
feat(const_eval): impl. asinh
1 parent 7045b45 commit 4fa8092

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
@@ -91,6 +91,7 @@ Wgpu now exposes backend feature for the Direct3D 12 (`dx12`) and Metal (`metal`
9191
- `acos`
9292
- `acosh`
9393
- `asin`
94+
- `asinh`
9495
- `cos`
9596
- `cosh`
9697
- `round`

naga/src/proc/constant_evaluator.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,9 @@ impl<'a> ConstantEvaluator<'a> {
827827
crate::MathFunction::Asin => {
828828
component_wise_float!(self, span, [arg], |e| { Ok([e.asin()]) })
829829
}
830+
crate::MathFunction::Asinh => {
831+
component_wise_float!(self, span, [arg], |e| { Ok([e.asinh()]) })
832+
}
830833
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
831834
crate::MathFunction::Clamp => {
832835
component_wise_scalar!(

0 commit comments

Comments
 (0)