blob: 75304b87f3cac9451ae196ae8853a5694f092a94 [file] [log] [blame]
Corentin Wallez96496822019-10-15 11:44:38 +00001//* Copyright 2019 The Dawn Authors
2//*
3//* Licensed under the Apache License, Version 2.0 (the "License");
4//* you may not use this file except in compliance with the License.
5//* You may obtain a copy of the License at
6//*
7//* http://www.apache.org/licenses/LICENSE-2.0
8//*
9//* Unless required by applicable law or agreed to in writing, software
10//* distributed under the License is distributed on an "AS IS" BASIS,
11//* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//* See the License for the specific language governing permissions and
13//* limitations under the License.
14
15#ifndef DAWN_DAWN_PROC_TABLE_H_
16#define DAWN_DAWN_PROC_TABLE_H_
17
Corentin Wallez2c8b5c62019-10-21 20:04:10 +000018#include "dawn/webgpu.h"
Corentin Wallez96496822019-10-15 11:44:38 +000019
20typedef struct DawnProcTable {
Corentin Wallez2c8b5c62019-10-21 20:04:10 +000021 WGPUProcGetProcAddress getProcAddress;
Corentin Wallezc57b1802019-10-15 12:08:48 +000022
Corentin Wallez96496822019-10-15 11:44:38 +000023 {% for type in by_category["object"] %}
Corentin Wallezaca8c4a2019-11-22 14:02:52 +000024 {% for method in c_methods(type) %}
Corentin Wallez96496822019-10-15 11:44:38 +000025 {{as_cProc(type.name, method.name)}} {{as_varName(type.name, method.name)}};
26 {% endfor %}
27
28 {% endfor %}
29} DawnProcTable;
30
31#endif // DAWN_DAWN_PROC_TABLE_H_