mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
ConstantEvaluator::copy_from: Rename argument handle to expr. (#2490)
This commit is contained in:
1 parent
44ca6ac5b3
commit
f0ac838019
1 file changed
+3
-3
@@ -796,11 +796,11 @@ impl ConstantEvaluator<'_> {
|
||||
/// constant's value into the function's arena so we can operate on it.
|
||||
fn copy_from(
|
||||
&mut self,
|
||||
handle: Handle<Expression>,
|
||||
expr: Handle<Expression>,
|
||||
expressions: &Arena<Expression>,
|
||||
) -> Result<Handle<Expression>, ConstantEvaluatorError> {
|
||||
let span = expressions.get_span(handle);
|
||||
match expressions[handle] {
|
||||
let span = expressions.get_span(expr);
|
||||
match expressions[expr] {
|
||||
ref expr @ (Expression::Literal(_)
|
||||
| Expression::Constant(_)
|
||||
| Expression::ZeroValue(_)) => Ok(self.register_evaluated_expr(expr.clone(), span)),
|
||||
|
||||
Reference in new issue
Block a user