diff --git a/generator/templates/dawn_proc.c b/generator/templates/dawn_proc.c index fa0f1c94cf..6d6153d273 100644 --- a/generator/templates/dawn_proc.c +++ b/generator/templates/dawn_proc.c @@ -26,7 +26,7 @@ void dawnProcSetProcs(const DawnProcTable* procs_) { } } -WGPUProc WGPUGetProcAddress(WGPUDevice device, const char* procName) { +WGPUProc wgpuGetProcAddress(WGPUDevice device, const char* procName) { return procs.getProcAddress(device, procName); } diff --git a/generator/templates/webgpu.h b/generator/templates/webgpu.h index 39eb1bff05..dbbe36a5d6 100644 --- a/generator/templates/webgpu.h +++ b/generator/templates/webgpu.h @@ -101,7 +101,7 @@ typedef void (*WGPUProc)(); #if !defined(WGPU_SKIP_PROCS) -typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUDevice device, const char* procName); +typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUDevice device, char const * procName); {% for type in by_category["object"] if len(c_methods(type)) > 0 %} // Procs of {{type.name.CamelCase()}} @@ -119,7 +119,7 @@ typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUDevice device, const char* procNa #if !defined(WGPU_SKIP_DECLARATIONS) -WGPU_EXPORT WGPUProc WGPUGetProcAddress(WGPUDevice device, const char* procName); +WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUDevice device, char const * procName); {% for type in by_category["object"] if len(c_methods(type)) > 0 %} // Methods of {{type.name.CamelCase()}} diff --git a/generator/templates/webgpu_cpp.cpp b/generator/templates/webgpu_cpp.cpp index 400c8332b3..1f4bbc7912 100644 --- a/generator/templates/webgpu_cpp.cpp +++ b/generator/templates/webgpu_cpp.cpp @@ -126,7 +126,7 @@ namespace wgpu { {% endfor %} Proc GetProcAddress(Device const& device, const char* procName) { - return reinterpret_cast(WGPUGetProcAddress(device.Get(), procName)); + return reinterpret_cast(wgpuGetProcAddress(device.Get(), procName)); } }