Skip to content

Commit

Permalink
feat(const_eval): impl. sqrt
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Dec 14, 2023
1 parent e0076a0 commit 14338eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions naga/src/proc/constant_evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,9 @@ impl<'a> ConstantEvaluator<'a> {
crate::MathFunction::Sinh => {
component_wise_float!(self, span, [arg], |e| { e.sinh().into() })
}
crate::MathFunction::Sqrt => {
component_wise_float!(self, span, [arg], |e| { e.sqrt().into() })
}
fun => Err(ConstantEvaluatorError::NotImplemented(format!(
"{fun:?} built-in function"
))),
Expand Down

0 comments on commit 14338eb

Please sign in to comment.