dan sinclair

Results 219 comments of dan sinclair

I don't think because C/C++ have it is sufficient reason to add something to WGSL. Once it's added we can't take it away. So, we need a very good reason...

I think we should leave out comma until we have requests for it. You can still have `for` syntax with only single expressions and I think that would be sufficient...

We don't need all the looping constructs you find in a C like language. As @damyanp mentioned in https://github.com/gpuweb/gpuweb/issues/569#issuecomment-593630597, the more we add the easier it is to have divergent...

Using `for` means having a comma operator which accepts blocks, this is more complex to me and has the potential for knock on effects. Just having a `loop/continuing` is also...

I believe writing: ``` for (var i : i32 = 0; i < 10; { if (i > 10) { i = i - 5; } else { for (var...

I left out the middle of the loop because I didn't think it was relevant. Assume there is a continue in there. Coming from SPIR-V, everything gets inlined, so if...

I'm not trying to be condescending and I apologize.

I think this is done in https://github.com/gpuweb/cts/commit/d3ac5784fb25afe1a9605af57112b854bb8206c7 already?

This PR is not yet complete, it's an example of what could be done, if the direction seems appropriate I'll update the rest of the builtin function tables to a...

@gnl21 any thoughts on if this is worth persuing? I'm partial to the non-table layout, but that may just be me. I'm happy to update the rest of the current...