webgpu-native / webgpu-headers

https://webgpu-native.github.io/webgpu-headers/
BSD 3-Clause "New" or "Revised" License
364 stars 43 forks source link

Should GetProcAddress take a WGPUStringView? #351

Open kainino0x opened 2 hours ago

kainino0x commented 2 hours ago

I was documenting wgpuGetProcAddress and noticed it takes a null-terminated C string rather than a WGPUStringView.

We said we would replace ~all of the instances of strings in the API with WGPUStringView, but I'm not sure whether that should apply to this, since it's kind of C-specific?

kainino0x commented 2 hours ago

@Kangz since you probably have a bit better idea what real usage of EGL's GetProcAddress looks like