-
Notifications
You must be signed in to change notification settings - Fork 344
Closed
Labels
wgslWebGPU Shading Language IssuesWebGPU Shading Language Issueswgsl resolvedResolved - waiting for a change to the WGSL specificationResolved - waiting for a change to the WGSL specification
Milestone
Description
The loop { continue { } } control flow construct of WGSL isn't present in an other language that I know of and makes writing simple loops more verbose than familiar for-loops. We should consider adding sugar for example:
for (<init-statement>; <condition-expr>; <continue-statement>) {
<body-statements>
}
could be desugared to
{
<init-statement>
loop {
break if <condition-expr>;
<body-statements>
continue {
<continue-statement>;
}
}
}
litherum, haxiomic, hober, gcollombet and elyshaffir
Metadata
Metadata
Assignees
Labels
wgslWebGPU Shading Language IssuesWebGPU Shading Language Issueswgsl resolvedResolved - waiting for a change to the WGSL specificationResolved - waiting for a change to the WGSL specification