Right now we have wgpuGetProcAddress(NULLABLE device, string) (it's supposed to be nullable, though it isn't right now).
This is because it could be possible to have device-specific functions - #3.
However I don't think anything is using this right now. Since wgpuGetProcAddress(nullptr, string) is the common case I am wondering if we should change it to just
wgpuGetProcAddress(string), and (now or later) add a separate
wgpuDeviceGetProcAddress(NONNULL device, string). This also matches the "object-oriented" function signature pattern better.
Right now we have
wgpuGetProcAddress(NULLABLE device, string)
(it's supposed to be nullable, though it isn't right now). This is because it could be possible to have device-specific functions - #3.However I don't think anything is using this right now. Since
wgpuGetProcAddress(nullptr, string)
is the common case I am wondering if we should change it to justwgpuGetProcAddress(string)
, and (now or later) add a separatewgpuDeviceGetProcAddress(NONNULL device, string)
. This also matches the "object-oriented" function signature pattern better.cc @Kangz @austinEng