Rework dawn/native/ProcTable.cpp's template to better handle functions.

This is a small rework to try to make the template better handle
functions that aren't associated with an object, when during an
unrelated patch I got confused that APICreateInstance didn't appear in
dawn::native.

Change-Id: If5a2aa3f9e348d1847e48fec4e90e5966ddd489d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86530
Reviewed-by: Austin Eng <enga@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez
2022-04-12 16:46:01 +00:00
committed by Dawn LUCI CQ
parent a5f5f5a1aa
commit b2fdd6402d
5 changed files with 71 additions and 43 deletions

View File

@@ -12,7 +12,6 @@
//* See the License for the specific language governing permissions and
//* limitations under the License.
#include "dawn/common/Log.h"
#include "dawn/wire/client/ApiObjects.h"
#include "dawn/wire/client/Client.h"
@@ -172,6 +171,7 @@ namespace dawn::wire::client {
{% endfor %}
{% endfor %}
};
const {{Prefix}}ProcTable& GetProcs() {
return gProcTable;
}