mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
[naga wgsl-in] Remove support for -> void return type syntax. (#6633)
This commit is contained in:
parent
66d51b6059
commit
246ed3ee8e
@ -2323,7 +2323,7 @@ impl Parser {
|
||||
ready = lexer.skip(Token::Separator(','));
|
||||
}
|
||||
// read return type
|
||||
let result = if lexer.skip(Token::Arrow) && !lexer.skip(Token::Word("void")) {
|
||||
let result = if lexer.skip(Token::Arrow) {
|
||||
let binding = self.varying_binding(lexer, &mut ctx)?;
|
||||
let ty = self.type_decl(lexer, &mut ctx)?;
|
||||
Some(ast::FunctionResult { ty, binding })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user