feat(const_eval): impl. acosh

This commit is contained in:
Erich Gubler committed 2024-01-18 16:57:46 -05:00
1 parent 6654c68950
commit afb54d58ba
2 files changed
+4

No files matched your search

+1
View File
@@ -45,6 +45,7 @@ Bottom level categories:
- [#4879](https://github.com/gfx-rs/wgpu/pull/4879) by @ErichDonGubler:
- `abs`
- `acos`
- `acosh`
- `cos`
- `cosh`
- `round`
+3
View File
@@ -822,6 +822,9 @@ impl<'a> ConstantEvaluator<'a> {
crate::MathFunction::Acos => {
component_wise_float!(self, span, [arg], |e| { Ok([e.acos()]) })
}
crate::MathFunction::Acosh => {
component_wise_float!(self, span, [arg], |e| { Ok([e.acosh()]) })
}
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
crate::MathFunction::Clamp => {
component_wise_scalar!(