mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
[naga wgsl-in] Remove support for -> void return type syntax. (#6633)
This commit is contained in:
1 parent
66d51b6059
commit
246ed3ee8e
1 file changed
+1
-1
@@ -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 })
|
||||
|
||||
Reference in new issue
Block a user