Made some progress on webgpu‑native CL bindings. I still have no idea if this is going to work, but up until an hour ago it was going pretty well 

I’ve gotten to about one‑third of The Triangle example – https://github.com/gfx-rs/wgpu-native/blob/trunk/examples/triangle/main.c. (by line numbers)

Since I’m writing the GLFW and WGPU bindings in parallel, it takes time… So far I’ve managed to create a surface with wgpuInstanceCreateSurface… but then… well, I knew from the start I was stepping onto a minefield. My first problem is that CFFI can’t take arguments passed by value to callbacks from C . At least there’s a PR trying to fix it – https://github.com/cffi/cffi/pull/351.

I’m too tired to continue right now, having spent days working on this non‑stop. Time to decompress a bit. So the question “Will it render?” will remain open… Also, I still have a day job - I just remembered, it is going to happen tomorrow .

#commonlisp #wgpu #cffi #willitrender