Kai Ninomiya

Results 1003 comments of Kai Ninomiya

Found this issue based on a [report on Matrix](https://matrix.to/#/!ZSOHTEPDbwuEgSJwYw:matrix.org/$p8V4ub_T0AijD_lHz3btQYQ0HjTYsw20Hh8YhpveB0w?via=matrix.org&via=mozilla.org) of the same issue. The error message is slightly different so I'll paste it here for searchability: ``` Uncaught SuspendError: trying...

Here is a not-so-generalized version that works on Asyncify in addition to JSPI: https://github.com/kainino0x/webgpu-cross-platform-demo/blob/c26ea3e29ed9f73f9b39bddf7964b482ce3c6964/main.cpp#L737-L758

> Here is a not-so-generalized version that works on Asyncify in addition to JSPI: For the record, on Asyncify(=1), usually manifests as the loop just stopping when the callback suspends...

Both of those things should be fine, will review in full soon.

@SenorBlanco I assume this is still WIP, post a comment on here when it's ready for re-review

This HLSL sample from the linked documentation seems more representative of what people might want to actually do (though still contrived): ```hlsl for (int i = 0; i

> This is not true. Compilation to MSL code happens during `createGraphicsPipeline`, at which point the BGL is known. So it would absolutely be possible to put the static sampler...

> The spec does not mention pixel formats specifically for external texture copies... the implication seems to be that color space conversion would require a float / unorm source and...

> All that to say, it's potentially complicated, so I'd like to understand, are there specific problems that make `rgba8unorm` unsuitable for your use-case? I believe it should be lossless...