emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.36k stars 3.25k forks source link

WebGPU: Implement wgpuDeviceCreateComputePipelineAsync #22074

Closed beaufortfrancois closed 2 weeks ago

beaufortfrancois commented 3 weeks ago

Even though upcoming WGPUFuture changes are going to impact wgpuDeviceCreateComputePipelineAsync, this PR adds its support so that developers who need this now don't have to rely on hacks.

Note that it was very similar to how wgpuDeviceCreateRenderPipeline and wgpuDeviceCreateRenderPipelineAsync are implemented.

@kainino0x Please review.

Issue: http://b/332249405#comment52

beaufortfrancois commented 2 weeks ago

Can we merge?

kainino0x commented 2 weeks ago

Yes, I think this was the PR where I had to retry one of the steps that flaked and then I forgot about it.