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