mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
feat(const_eval): impl. degrees
This commit is contained in:
committed by
Teodor Tanasoaia
parent
01d02caca3
commit
0f8adae123
@@ -71,6 +71,7 @@ Bottom level categories:
|
||||
- `countLeadingZeros`
|
||||
- `countOneBits`
|
||||
- `countTrailingZeros`
|
||||
- `degrees`
|
||||
- `exp`
|
||||
- `floor`
|
||||
- Eager release of GPU resources comes from device.trackers. By @bradwerth in [#5075](https://github.com/gfx-rs/wgpu/pull/5075)
|
||||
|
||||
@@ -904,6 +904,9 @@ impl<'a> ConstantEvaluator<'a> {
|
||||
.expect("bit count overflowed 32 bits, somehow!?")])
|
||||
})
|
||||
}
|
||||
crate::MathFunction::Degrees => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.to_degrees()]) })
|
||||
}
|
||||
crate::MathFunction::Exp => {
|
||||
component_wise_float!(self, span, [arg], |e| { Ok([e.exp()]) })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user