mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-10-30 05:51:42 +00:00
feat(const_eval): impl. tan
This commit is contained in:
parent
29a46234f4
commit
bdf1cb4ec3
@ -50,6 +50,7 @@ Bottom level categories:
|
||||
- `sinh`
|
||||
- `sqrt`
|
||||
- `step`
|
||||
- `tan`
|
||||
|
||||
## v0.19.0 (2024-01-17)
|
||||
|
||||
|
@ -869,6 +869,9 @@ impl<'a> ConstantEvaluator<'a> {
|
||||
crate::MathFunction::Sinh => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.sinh()]) })
|
||||
}
|
||||
crate::MathFunction::Tan => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.tan()]) })
|
||||
}
|
||||
crate::MathFunction::Sqrt => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.sqrt()]) })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user