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