mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
feat(const_eval): impl. atanh
This commit is contained in:
parent
262c07f40c
commit
c2f110ed0c
@ -49,6 +49,7 @@ Bottom level categories:
|
||||
- `asin`
|
||||
- `asinh`
|
||||
- `atan`
|
||||
- `atanh`
|
||||
- `cos`
|
||||
- `cosh`
|
||||
- `round`
|
||||
|
@ -834,6 +834,9 @@ impl<'a> ConstantEvaluator<'a> {
|
||||
crate::MathFunction::Atan => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.atan()]) })
|
||||
}
|
||||
crate::MathFunction::Atanh => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.atanh()]) })
|
||||
}
|
||||
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
|
||||
crate::MathFunction::Clamp => {
|
||||
component_wise_scalar!(
|
||||
|
Loading…
Reference in New Issue
Block a user