mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 00:59:12 +01:00
feat(const_eval): impl. exp2
This commit is contained in:
1 parent
0f8adae123
commit
7b274fc161
2 files changed
+4
No files matched your search
@@ -910,6 +910,9 @@ impl<'a> ConstantEvaluator<'a> {
|
||||
crate::MathFunction::Exp => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.exp()]) })
|
||||
}
|
||||
crate::MathFunction::Exp2 => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.exp2()]) })
|
||||
}
|
||||
crate::MathFunction::Floor => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.floor()]) })
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user