mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-10-30 05:51:42 +00:00
feat(const_eval): impl. min
This commit is contained in:
parent
abcc6ddff3
commit
c559be933b
@ -81,6 +81,7 @@ Bottom level categories:
|
||||
- `log`
|
||||
- `log2`
|
||||
- `max`
|
||||
- `min`
|
||||
- `radians`
|
||||
- `reverseBits`
|
||||
- `sign`
|
||||
|
@ -961,6 +961,11 @@ impl<'a> ConstantEvaluator<'a> {
|
||||
Ok([e1.max(e2)])
|
||||
})
|
||||
}
|
||||
crate::MathFunction::Min => {
|
||||
component_wise_scalar!(self, span, [arg, arg1.unwrap()], |e1, e2| {
|
||||
Ok([e1.min(e2)])
|
||||
})
|
||||
}
|
||||
crate::MathFunction::Radians => {
|
||||
component_wise_float!(self, span, [arg], |e1| { Ok([e1.to_radians()]) })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user