Skip to content

Commit

Permalink
fix expected min arg count of textureLoad
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy committed Oct 23, 2023
1 parent 29ca531 commit 1d58bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/front/wgsl/lower/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2121,7 +2121,7 @@ impl<'source, 'temp> Lowerer<'source, 'temp> {
return Ok(None);
}
"textureLoad" => {
let mut args = ctx.prepare_args(arguments, 3, span);
let mut args = ctx.prepare_args(arguments, 2, span);

let image = args.next()?;
let image_span = ctx.ast_expressions.get_span(image);
Expand Down

0 comments on commit 1d58bbf

Please sign in to comment.