mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-26 09:21:04 +01:00
fix(naga): Accept trailing comma in 1-arg @interpolate
This commit is contained in:
1 parent
b051a87e3e
commit
e855a96b48
3 files changed
+5
-3
No files matched your search
@@ -128,7 +128,6 @@ webgpu:shader,validation,parse,literal:* // 96%, https://github.com/gfx-rs/wgpu/
|
||||
webgpu:shader,validation,parse,shadow_builtins:* // 83%, function param shadowing parser issue; determinant const-eval; texture_external capability missing
|
||||
webgpu:shader,validation,shader_io,align:* // 98%, @align(2^31) accepted but exceeds i32::MAX per WGSL spec
|
||||
webgpu:shader,validation,shader_io,id:* // 97%, @id on const
|
||||
webgpu:shader,validation,shader_io,interpolate:*
|
||||
webgpu:shader,validation,shader_io,layout_constraints:* // 99%, struct alignment not inferred from @align on members
|
||||
webgpu:shader,validation,shader_io,locations:stage_inout:* // 66%, invalid usage @location in compute shaders
|
||||
webgpu:shader,validation,shader_io,pipeline_stage:* // 92%, stage attributes incorrectly accepted on var<private> and var<storage>
|
||||
|
||||
@@ -467,6 +467,7 @@ webgpu:shader,validation,shader_io,entry_point:*
|
||||
// Uses external texture bindings
|
||||
fails-if(vulkan) webgpu:shader,validation,shader_io,group_and_binding:*
|
||||
webgpu:shader,validation,shader_io,group:*
|
||||
webgpu:shader,validation,shader_io,interpolate:*
|
||||
webgpu:shader,validation,shader_io,invariant:*
|
||||
webgpu:shader,validation,shader_io,locations:duplicates:*
|
||||
webgpu:shader,validation,shader_io,locations:location_fp16:*
|
||||
|
||||
@@ -203,12 +203,14 @@ impl<'a> BindingParser<'a> {
|
||||
conv::map_interpolation(&lexer.enable_extensions, raw, span)?,
|
||||
name_span,
|
||||
)?;
|
||||
if lexer.next_if(Token::Separator(',')) {
|
||||
if lexer.next_if(Token::Separator(','))
|
||||
&& !matches!(lexer.peek().0, Token::Paren(')'))
|
||||
{
|
||||
let (raw, span) = lexer.next_ident_with_span()?;
|
||||
self.sampling
|
||||
.set(conv::map_sampling(raw, span)?, name_span)?;
|
||||
lexer.next_if(Token::Separator(','));
|
||||
}
|
||||
lexer.next_if(Token::Separator(','));
|
||||
lexer.expect(Token::Paren(')'))?;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user