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>
This commit is contained in:
Corentin Wallez 2019-11-26 17:28:11 +00:00 committed by Commit Bot service account
parent e9356045a4
commit 20c014cee7
3 changed files with 4 additions and 4 deletions

View File

@ -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); return procs.getProcAddress(device, procName);
} }

View File

@ -101,7 +101,7 @@ typedef void (*WGPUProc)();
#if !defined(WGPU_SKIP_PROCS) #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 %} {% for type in by_category["object"] if len(c_methods(type)) > 0 %}
// Procs of {{type.name.CamelCase()}} // Procs of {{type.name.CamelCase()}}
@ -119,7 +119,7 @@ typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUDevice device, const char* procNa
#if !defined(WGPU_SKIP_DECLARATIONS) #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 %} {% for type in by_category["object"] if len(c_methods(type)) > 0 %}
// Methods of {{type.name.CamelCase()}} // Methods of {{type.name.CamelCase()}}

View File

@ -126,7 +126,7 @@ namespace wgpu {
{% endfor %} {% endfor %}
Proc GetProcAddress(Device const& device, const char* procName) { Proc GetProcAddress(Device const& device, const char* procName) {
return reinterpret_cast<Proc>(WGPUGetProcAddress(device.Get(), procName)); return reinterpret_cast<Proc>(wgpuGetProcAddress(device.Get(), procName));
} }
} }