From 20c014cee7c395a91ab73b58694d1435aae97818 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Tue, 26 Nov 2019 17:28:11 +0000 Subject: [PATCH] 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 Commit-Queue: Corentin Wallez --- generator/templates/dawn_proc.c | 2 +- generator/templates/webgpu.h | 4 ++-- generator/templates/webgpu_cpp.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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)); } }