Skip to content

Commit

Permalink
Make it work
Browse files Browse the repository at this point in the history
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
  • Loading branch information
sagudev committed Jan 13, 2025
1 parent 374abb8 commit 9787e84
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion naga/src/front/wgsl/lower/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,27 @@ impl<'source, 'temp> Lowerer<'source, 'temp> {
}

Typed::Plain(handle) => {
resolve_inner!(ctx, handle)
let inner = resolve_inner!(ctx, handle);
match inner {
&crate::TypeInner::Pointer { base, .. } => {
&ctx.module.types[base].inner
}
&crate::TypeInner::ValuePointer {
size: None, scalar, ..
} => {
temp_inner = crate::TypeInner::Scalar(scalar);
&temp_inner
}
&crate::TypeInner::ValuePointer {
size: Some(size),
scalar,
..
} => {
temp_inner = crate::TypeInner::Vector { size, scalar };
&temp_inner
}
inner => inner,
}
}
};

Expand Down

0 comments on commit 9787e84

Please sign in to comment.