mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
feat(const_eval): impl. asin
This commit is contained in:
1 parent
afb54d58ba
commit
e2783c7d45
2 files changed
+4
No files matched your search
@@ -46,6 +46,7 @@ Bottom level categories:
|
||||
- `abs`
|
||||
- `acos`
|
||||
- `acosh`
|
||||
- `asin`
|
||||
- `cos`
|
||||
- `cosh`
|
||||
- `round`
|
||||
|
||||
@@ -825,6 +825,9 @@ impl<'a> ConstantEvaluator<'a> {
|
||||
crate::MathFunction::Acosh => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.acosh()]) })
|
||||
}
|
||||
crate::MathFunction::Asin => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.asin()]) })
|
||||
}
|
||||
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
|
||||
crate::MathFunction::Clamp => {
|
||||
component_wise_scalar!(
|
||||
|
||||
Reference in new issue
Block a user