mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 08:44:08 +00:00
feat(const_eval): impl. asinh
This commit is contained in:
parent
e2783c7d45
commit
f8113c55b7
@ -47,6 +47,7 @@ Bottom level categories:
|
|||||||
- `acos`
|
- `acos`
|
||||||
- `acosh`
|
- `acosh`
|
||||||
- `asin`
|
- `asin`
|
||||||
|
- `asinh`
|
||||||
- `cos`
|
- `cos`
|
||||||
- `cosh`
|
- `cosh`
|
||||||
- `round`
|
- `round`
|
||||||
|
@ -828,6 +828,9 @@ impl<'a> ConstantEvaluator<'a> {
|
|||||||
crate::MathFunction::Asin => {
|
crate::MathFunction::Asin => {
|
||||||
component_wise_float!(self, span, [arg], |e| { Ok([e.asin()]) })
|
component_wise_float!(self, span, [arg], |e| { Ok([e.asin()]) })
|
||||||
}
|
}
|
||||||
|
crate::MathFunction::Asinh => {
|
||||||
|
component_wise_float!(self, span, [arg], |e| { Ok([e.asinh()]) })
|
||||||
|
}
|
||||||
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
|
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
|
||||||
crate::MathFunction::Clamp => {
|
crate::MathFunction::Clamp => {
|
||||||
component_wise_scalar!(
|
component_wise_scalar!(
|
||||||
|
Loading…
Reference in New Issue
Block a user