It seems to have a lot of trouble with building code that works in a certain way. For example if you ask it to build a simple graph container with access functions that give you iterators over neighbourhoods of nodes or whatever it makes a mess. Sometimes it technically works, but the underlying graph datastructure is just ripped out of randomseocodingsite.com using nodes owning pointers to their connected nodes.
If you ask it to use a specific underlying structure like a vector of nodes and indexes to represent edges it doesn't quite know what to do.
So yes, I guess the initial implementation "works", but not well.
For wgsl and webgpu, ChatGPT4 is quite useless.
To be fair, the spec is still changing, but this means, that ChatGPT4 will mix in various incompatible bits. I hope they handtune it.