mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-16 17:02:32 +00:00
fix expected min arg count of textureLoad
This commit is contained in:
parent
528bca75f7
commit
f081f06f54
@ -2099,7 +2099,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);
|
||||
@ -2117,7 +2117,10 @@ impl<'source, 'temp> Lowerer<'source, 'temp> {
|
||||
|
||||
let level = class
|
||||
.is_mipmapped()
|
||||
.then(|| self.expression(args.next()?, ctx))
|
||||
.then(|| {
|
||||
args.min_args += 1;
|
||||
self.expression(args.next()?, ctx)
|
||||
})
|
||||
.transpose()?;
|
||||
|
||||
let sample = class
|
||||
|
Loading…
Reference in New Issue
Block a user