mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
feat(const_eval): impl. asin
This commit is contained in:
parent
afb54d58ba
commit
e2783c7d45
@ -46,6 +46,7 @@ Bottom level categories:
|
|||||||
- `abs`
|
- `abs`
|
||||||
- `acos`
|
- `acos`
|
||||||
- `acosh`
|
- `acosh`
|
||||||
|
- `asin`
|
||||||
- `cos`
|
- `cos`
|
||||||
- `cosh`
|
- `cosh`
|
||||||
- `round`
|
- `round`
|
||||||
|
@ -825,6 +825,9 @@ impl<'a> ConstantEvaluator<'a> {
|
|||||||
crate::MathFunction::Acosh => {
|
crate::MathFunction::Acosh => {
|
||||||
component_wise_float!(self, span, [arg], |e| { Ok([e.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::Pow => self.math_pow(arg, arg1.unwrap(), span),
|
||||||
crate::MathFunction::Clamp => {
|
crate::MathFunction::Clamp => {
|
||||||
component_wise_scalar!(
|
component_wise_scalar!(
|
||||||
|
Loading…
Reference in New Issue
Block a user