closure-compiler icon indicating copy to clipboard operation
closure-compiler copied to clipboard

Extern definitions for WebGPU

Open kainino0x opened this issue 5 months ago • 4 comments

Closure doesn't yet have extern definitions for WebGPU. Over in Emscripten, we are finally switching to externs instead of doing ["this"] everywhere (except everywhere we forgot and so it's broken). https://github.com/emscripten-core/emscripten/pull/21144

There you can see some barebones externs I generated from the WebGPU spec's WebIDL. I think it's enough for minification to work correctly(?) but it doesn't provide much else - no function arguments, in particular.

Would there be interest in bringing this into Closure as-is, or would it need more complete definitions?

kainino0x avatar Jan 23 '24 20:01 kainino0x