mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 01:23:57 +01:00
feat(const_eval): impl. acosh
This commit is contained in:
1 parent
6654c68950
commit
afb54d58ba
2 files changed
+4
No files matched your search
@@ -45,6 +45,7 @@ Bottom level categories:
|
||||
- [#4879](https://github.com/gfx-rs/wgpu/pull/4879) by @ErichDonGubler:
|
||||
- `abs`
|
||||
- `acos`
|
||||
- `acosh`
|
||||
- `cos`
|
||||
- `cosh`
|
||||
- `round`
|
||||
|
||||
@@ -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!(
|
||||
|
||||
Reference in new issue
Block a user