Fix typo in the name of wgpuGetProcAddress
BUG=dawn:22
Change-Id: Id8213f1d06313d0ab1ee5845e892f88ff803fbc2
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/14060
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/generator/templates/dawn_proc.c b/generator/templates/dawn_proc.c
index fa0f1c9..6d6153d 100644
--- a/generator/templates/dawn_proc.c
+++ b/generator/templates/dawn_proc.c
@@ -26,7 +26,7 @@
}
}
-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 39eb1bf..dbbe36a 100644
--- a/generator/templates/webgpu.h
+++ b/generator/templates/webgpu.h
@@ -101,7 +101,7 @@
#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 @@
#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 400c833..1f4bbc7 100644
--- a/generator/templates/webgpu_cpp.cpp
+++ b/generator/templates/webgpu_cpp.cpp
@@ -126,7 +126,7 @@
{% endfor %}
Proc GetProcAddress(Device const& device, const char* procName) {
- return reinterpret_cast<Proc>(WGPUGetProcAddress(device.Get(), procName));
+ return reinterpret_cast<Proc>(wgpuGetProcAddress(device.Get(), procName));
}
}