mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
fix(const_eval): allow casts from AbstractInt to itself (#7657)
This commit is contained in:
parent
9046b439d7
commit
77def411c4
@ -1845,6 +1845,10 @@ impl<'a> ConstantEvaluator<'a> {
|
||||
Literal::AbstractFloat(v) => v,
|
||||
_ => return make_error(),
|
||||
}),
|
||||
Sc::ABSTRACT_INT => Literal::AbstractInt(match literal {
|
||||
Literal::AbstractInt(v) => v,
|
||||
_ => return make_error(),
|
||||
}),
|
||||
_ => {
|
||||
log::debug!("Constant evaluator refused to convert value to {target:?}");
|
||||
return make_error();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user