mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-19 18:33:30 +00:00
feat(const_eval): impl. sinh
This commit is contained in:
parent
99a38c7b7c
commit
133b573133
@ -47,6 +47,7 @@ Bottom level categories:
|
||||
- `round`
|
||||
- `saturate`
|
||||
- `sin`
|
||||
- `sinh`
|
||||
|
||||
## v0.19.0 (2024-01-17)
|
||||
|
||||
|
@ -853,6 +853,9 @@ impl<'a> ConstantEvaluator<'a> {
|
||||
crate::MathFunction::Sin => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.sin()]) })
|
||||
}
|
||||
crate::MathFunction::Sinh => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.sinh()]) })
|
||||
}
|
||||
fun => Err(ConstantEvaluatorError::NotImplemented(format!(
|
||||
"{fun:?} built-in function"
|
||||
))),
|
||||
|
Loading…
Reference in New Issue
Block a user