Corentin Wallez | 9649682 | 2019-10-15 11:44:38 +0000 | [diff] [blame] | 1 | //* 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 Wallez | 2c8b5c6 | 2019-10-21 20:04:10 +0000 | [diff] [blame] | 18 | #include "dawn/webgpu.h" |
Corentin Wallez | 9649682 | 2019-10-15 11:44:38 +0000 | [diff] [blame] | 19 | |
| 20 | typedef struct DawnProcTable { |
Corentin Wallez | 2c8b5c6 | 2019-10-21 20:04:10 +0000 | [diff] [blame] | 21 | WGPUProcGetProcAddress getProcAddress; |
Corentin Wallez | c57b180 | 2019-10-15 12:08:48 +0000 | [diff] [blame] | 22 | |
Corentin Wallez | 9649682 | 2019-10-15 11:44:38 +0000 | [diff] [blame] | 23 | {% for type in by_category["object"] %} |
Corentin Wallez | aca8c4a | 2019-11-22 14:02:52 +0000 | [diff] [blame^] | 24 | {% for method in c_methods(type) %} |
Corentin Wallez | 9649682 | 2019-10-15 11:44:38 +0000 | [diff] [blame] | 25 | {{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_ |