From 1d58bbf07b16cbc85d04f106f445a0f776b3ba3e Mon Sep 17 00:00:00 2001 From: teoxoy <28601907+teoxoy@users.noreply.github.com> Date: Mon, 23 Oct 2023 16:31:44 +0200 Subject: [PATCH] fix expected min arg count of `textureLoad` --- src/front/wgsl/lower/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/front/wgsl/lower/mod.rs b/src/front/wgsl/lower/mod.rs index 6ff520e952..41750f9c1f 100644 --- a/src/front/wgsl/lower/mod.rs +++ b/src/front/wgsl/lower/mod.rs @@ -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);