mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
feat(const_eval): impl. cosh
This commit is contained in:
parent
7528b22e57
commit
12b11f870b
@ -45,6 +45,7 @@ Bottom level categories:
|
||||
- [#4879](https://github.com/gfx-rs/wgpu/pull/4879) by @ErichDonGubler:
|
||||
- `abs`
|
||||
- `cos`
|
||||
- `cosh`
|
||||
- `round`
|
||||
- `saturate`
|
||||
- `sin`
|
||||
|
@ -837,6 +837,9 @@ impl<'a> ConstantEvaluator<'a> {
|
||||
crate::MathFunction::Cos => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.cos()]) })
|
||||
}
|
||||
crate::MathFunction::Cosh => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.cosh()]) })
|
||||
}
|
||||
crate::MathFunction::Round => {
|
||||
// TODO: Use `f{32,64}.round_ties_even()` when available on stable. This polyfill
|
||||
// is shamelessly [~~stolen from~~ inspired by `ndarray-image`][polyfill source],
|
||||
|
Loading…
Reference in New Issue
Block a user