mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Remove expression argument to FunctionInfo::process_expression.
We're already passing the handle and the arena, so it's superfluous.
This commit is contained in:
committed by
Teodor Tanasoaia
parent
4d6e0005f4
commit
31f547580c
@@ -427,7 +427,6 @@ impl FunctionInfo {
|
||||
fn process_expression(
|
||||
&mut self,
|
||||
handle: Handle<crate::Expression>,
|
||||
expression: &crate::Expression,
|
||||
expression_arena: &Arena<crate::Expression>,
|
||||
other_functions: &[FunctionInfo],
|
||||
resolve_context: &ResolveContext,
|
||||
@@ -435,6 +434,7 @@ impl FunctionInfo {
|
||||
) -> Result<(), ExpressionError> {
|
||||
use crate::{Expression as E, SampleLevel as Sl};
|
||||
|
||||
let expression = &expression_arena[handle];
|
||||
let mut assignable_global = None;
|
||||
let uniformity = match *expression {
|
||||
E::Access { base, index } => {
|
||||
@@ -1011,10 +1011,9 @@ impl ModuleInfo {
|
||||
let resolve_context =
|
||||
ResolveContext::with_locals(module, &fun.local_variables, &fun.arguments);
|
||||
|
||||
for (handle, expr) in fun.expressions.iter() {
|
||||
for (handle, _) in fun.expressions.iter() {
|
||||
if let Err(source) = info.process_expression(
|
||||
handle,
|
||||
expr,
|
||||
&fun.expressions,
|
||||
&self.functions,
|
||||
&resolve_context,
|
||||
@@ -1127,10 +1126,9 @@ fn uniform_control_flow() {
|
||||
functions: &Arena::new(),
|
||||
arguments: &[],
|
||||
};
|
||||
for (handle, expression) in expressions.iter() {
|
||||
for (handle, _) in expressions.iter() {
|
||||
info.process_expression(
|
||||
handle,
|
||||
expression,
|
||||
&expressions,
|
||||
&[],
|
||||
&resolve_context,
|
||||
|
||||
Reference in New Issue
Block a user