mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
feat(const_eval): impl. tan
This commit is contained in:
@@ -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()]) })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user