Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1 | { |
| 2 | "_comment": [ |
Corentin Wallez | 4a9ef4e | 2018-07-18 11:40:26 +0200 | [diff] [blame] | 3 | "Copyright 2017 The Dawn Authors", |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 4 | "", |
| 5 | "Licensed under the Apache License, Version 2.0 (the \"License\");", |
| 6 | "you may not use this file except in compliance with the License.", |
| 7 | "You may obtain a copy of the License at", |
| 8 | "", |
| 9 | " http://www.apache.org/licenses/LICENSE-2.0", |
| 10 | "", |
| 11 | "Unless required by applicable law or agreed to in writing, software", |
| 12 | "distributed under the License is distributed on an \"AS IS\" BASIS,", |
| 13 | "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", |
| 14 | "See the License for the specific language governing permissions and", |
| 15 | "limitations under the License." |
| 16 | ], |
Corentin Wallez | 6d0438c | 2021-03-24 20:29:42 +0000 | [diff] [blame] | 17 | |
Ben Clayton | 26c31f6 | 2022-01-27 18:33:47 +0000 | [diff] [blame] | 18 | "_doc": "See docs/dawn/codegen.md", |
Corentin Wallez | 6d0438c | 2021-03-24 20:29:42 +0000 | [diff] [blame] | 19 | |
fujunwei | 76bda37 | 2021-11-23 08:47:35 +0000 | [diff] [blame] | 20 | "_metadata": { |
| 21 | "api": "WebGPU", |
| 22 | "c_prefix": "WGPU", |
Shrek Shao | 2bf9990 | 2021-12-02 21:25:58 +0000 | [diff] [blame] | 23 | "namespace": "wgpu", |
fujunwei | 3a46476 | 2021-12-05 05:29:44 +0000 | [diff] [blame] | 24 | "proc_table_prefix": "Dawn", |
fujunwei | a2241d4 | 2021-12-16 04:54:38 +0000 | [diff] [blame] | 25 | "native_namespace": "dawn native", |
Shrek Shao | 2bf9990 | 2021-12-02 21:25:58 +0000 | [diff] [blame] | 26 | "copyright_year": "2019" |
fujunwei | 76bda37 | 2021-11-23 08:47:35 +0000 | [diff] [blame] | 27 | }, |
| 28 | |
fujunwei | 23f7162 | 2021-12-02 07:41:21 +0000 | [diff] [blame] | 29 | "create instance": { |
| 30 | "category": "function", |
| 31 | "returns": "instance", |
| 32 | "args": [ |
fujunwei | c7d4f2c | 2021-12-07 00:46:35 +0000 | [diff] [blame] | 33 | {"name": "descriptor", "type": "instance descriptor", "annotation": "const*", "optional": true} |
fujunwei | 23f7162 | 2021-12-02 07:41:21 +0000 | [diff] [blame] | 34 | ] |
| 35 | }, |
| 36 | "proc": { |
| 37 | "category": "function pointer", |
| 38 | "returns": "void", |
| 39 | "args": [] |
| 40 | }, |
| 41 | "get proc address": { |
| 42 | "category": "function", |
| 43 | "returns": "proc", |
| 44 | "args": [ |
| 45 | {"name": "device", "type": "device"}, |
| 46 | {"name": "proc name", "type": "char", "annotation": "const*"} |
| 47 | ] |
| 48 | }, |
| 49 | |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 50 | "request adapter options": { |
| 51 | "category": "structure", |
Austin Eng | 1a965ab | 2021-09-20 18:19:55 +0000 | [diff] [blame] | 52 | "extensible": "in", |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 53 | "members": [ |
Austin Eng | 5397f9f | 2021-12-14 23:22:46 +0000 | [diff] [blame] | 54 | {"name": "compatible surface", "type": "surface", "optional": true}, |
| 55 | {"name": "power preference", "type": "power preference", "default": "undefined"}, |
Austin Eng | 493de1e | 2023-06-20 22:58:27 +0000 | [diff] [blame] | 56 | {"name": "backend type", "type": "backend type", "default": "undefined"}, |
Stephen White | b9e1271 | 2023-05-06 01:26:25 +0000 | [diff] [blame] | 57 | {"name": "force fallback adapter", "type": "bool", "default": "false"}, |
Corentin Wallez | 047bca4 | 2023-05-19 19:17:22 +0000 | [diff] [blame] | 58 | {"name": "compatibility mode", "type": "bool", "default": "false", "tags": ["dawn", "emscripten"]} |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 59 | ] |
| 60 | }, |
| 61 | "request adapter status": { |
| 62 | "category": "enum", |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 63 | "emscripten_no_enum_table": true, |
| 64 | "values": [ |
| 65 | {"value": 0, "name": "success"}, |
| 66 | {"value": 1, "name": "unavailable"}, |
| 67 | {"value": 2, "name": "error"}, |
| 68 | {"value": 3, "name": "unknown"} |
| 69 | ] |
| 70 | }, |
| 71 | "request adapter callback": { |
fujunwei | 23f7162 | 2021-12-02 07:41:21 +0000 | [diff] [blame] | 72 | "category": "function pointer", |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 73 | "args": [ |
| 74 | {"name": "status", "type": "request adapter status"}, |
Henry Betts | 5ad86f3 | 2023-07-11 09:48:38 +0000 | [diff] [blame] | 75 | {"name": "adapter", "type": "adapter", "optional": true}, |
Austin Eng | 5397f9f | 2021-12-14 23:22:46 +0000 | [diff] [blame] | 76 | {"name": "message", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 77 | {"name": "userdata", "type": "void *"} |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 78 | ] |
| 79 | }, |
| 80 | "adapter": { |
| 81 | "category": "object", |
Le Hoang Quyen | 7971bfe | 2023-04-05 19:35:07 +0000 | [diff] [blame] | 82 | "no autolock": true, |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 83 | "methods": [ |
| 84 | { |
Le Hoang Quyen | 99b8081 | 2023-03-24 15:50:50 +0000 | [diff] [blame] | 85 | "name": "get instance", |
| 86 | "tags": ["dawn"], |
| 87 | "returns": "instance" |
| 88 | }, |
| 89 | { |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 90 | "name": "get limits", |
| 91 | "returns": "bool", |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 92 | "args": [ |
| 93 | {"name": "limits", "type": "supported limits", "annotation": "*"} |
| 94 | ] |
| 95 | }, |
| 96 | { |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 97 | "name": "get properties", |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 98 | "args": [ |
| 99 | {"name": "properties", "type": "adapter properties", "annotation": "*"} |
| 100 | ] |
| 101 | }, |
| 102 | { |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 103 | "name": "has feature", |
| 104 | "returns": "bool", |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 105 | "args": [ |
| 106 | {"name": "feature", "type": "feature name"} |
| 107 | ] |
| 108 | }, |
| 109 | { |
Austin Eng | 89ddadc | 2021-12-15 00:12:30 +0000 | [diff] [blame] | 110 | "name": "enumerate features", |
Austin Eng | 3ac7b9c | 2022-01-06 22:11:28 +0000 | [diff] [blame] | 111 | "returns": "size_t", |
Austin Eng | 89ddadc | 2021-12-15 00:12:30 +0000 | [diff] [blame] | 112 | "args": [ |
| 113 | {"name": "features", "type": "feature name", "annotation": "*"} |
| 114 | ] |
| 115 | }, |
| 116 | { |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 117 | "name": "request device", |
| 118 | "args": [ |
Corentin Wallez | 1260a53 | 2022-07-26 17:36:44 +0000 | [diff] [blame] | 119 | {"name": "descriptor", "type": "device descriptor", "annotation": "const*", "optional": true, "no_default": true}, |
Corentin Wallez | e00c6bd | 2021-12-13 17:37:17 +0000 | [diff] [blame] | 120 | {"name": "callback", "type": "request device callback"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 121 | {"name": "userdata", "type": "void *"} |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 122 | ] |
Austin Eng | 2f218e2 | 2021-12-22 19:02:23 +0000 | [diff] [blame] | 123 | }, |
| 124 | { |
| 125 | "name": "create device", |
| 126 | "tags": ["dawn"], |
| 127 | "returns": "device", |
| 128 | "args": [ |
Corentin Wallez | 1260a53 | 2022-07-26 17:36:44 +0000 | [diff] [blame] | 129 | {"name": "descriptor", "type": "device descriptor", "annotation": "const*", "optional": true} |
Austin Eng | 2f218e2 | 2021-12-22 19:02:23 +0000 | [diff] [blame] | 130 | ] |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 131 | } |
| 132 | ] |
| 133 | }, |
Corentin Wallez | f12c9db | 2020-01-10 13:28:18 +0000 | [diff] [blame] | 134 | "adapter properties": { |
| 135 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 136 | "extensible": "out", |
Corentin Wallez | f12c9db | 2020-01-10 13:28:18 +0000 | [diff] [blame] | 137 | "members": [ |
Corentin Wallez | f12c9db | 2020-01-10 13:28:18 +0000 | [diff] [blame] | 138 | {"name": "vendor ID", "type": "uint32_t"}, |
Austin Eng | 643625a | 2023-08-09 00:59:33 +0000 | [diff] [blame] | 139 | {"name": "vendor name", "type": "char", "annotation": "const*", "length": "strlen", "default": "nullptr"}, |
| 140 | {"name": "architecture", "type": "char", "annotation": "const*", "length": "strlen", "default": "nullptr"}, |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 141 | {"name": "device ID", "type": "uint32_t"}, |
Austin Eng | 643625a | 2023-08-09 00:59:33 +0000 | [diff] [blame] | 142 | {"name": "name", "type": "char", "annotation": "const*", "length": "strlen", "default": "nullptr"}, |
| 143 | {"name": "driver description", "type": "char", "annotation": "const*", "length": "strlen", "default": "nullptr"}, |
Corentin Wallez | f12c9db | 2020-01-10 13:28:18 +0000 | [diff] [blame] | 144 | {"name": "adapter type", "type": "adapter type"}, |
Stephen White | b9e1271 | 2023-05-06 01:26:25 +0000 | [diff] [blame] | 145 | {"name": "backend type", "type": "backend type"}, |
Corentin Wallez | 047bca4 | 2023-05-19 19:17:22 +0000 | [diff] [blame] | 146 | {"name": "compatibility mode", "type": "bool", "default": "false", "tags": ["dawn", "emscripten"]} |
Corentin Wallez | f12c9db | 2020-01-10 13:28:18 +0000 | [diff] [blame] | 147 | ] |
| 148 | }, |
| 149 | "adapter type": { |
| 150 | "category": "enum", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 151 | "emscripten_no_enum_table": true, |
Corentin Wallez | f12c9db | 2020-01-10 13:28:18 +0000 | [diff] [blame] | 152 | "values": [ |
| 153 | {"value": 0, "name": "discrete GPU"}, |
| 154 | {"value": 1, "name": "integrated GPU"}, |
| 155 | {"value": 2, "name": "CPU"}, |
Corentin Wallez | a0afd31 | 2020-04-01 12:07:43 +0000 | [diff] [blame] | 156 | {"value": 3, "name": "unknown"} |
Corentin Wallez | f12c9db | 2020-01-10 13:28:18 +0000 | [diff] [blame] | 157 | ] |
| 158 | }, |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 159 | "device descriptor": { |
| 160 | "category": "structure", |
Austin Eng | 1a965ab | 2021-09-20 18:19:55 +0000 | [diff] [blame] | 161 | "extensible": "in", |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 162 | "members": [ |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 163 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Loko Kung | 44fc9da | 2023-08-16 06:11:11 +0000 | [diff] [blame] | 164 | {"name": "required feature count", "type": "size_t", "default": 0}, |
| 165 | {"name": "required features", "type": "feature name", "annotation": "const*", "length": "required feature count", "default": "nullptr"}, |
Corentin Wallez | eee3449 | 2022-03-16 18:44:16 +0000 | [diff] [blame] | 166 | {"name": "required limits", "type": "required limits", "annotation": "const*", "optional": true}, |
Brandon Jones | 112b7fd | 2023-05-17 01:52:30 +0000 | [diff] [blame] | 167 | {"name": "default queue", "type": "queue descriptor"}, |
| 168 | {"name": "device lost callback", "type": "device lost callback", "default": "nullptr"}, |
| 169 | {"name": "device lost userdata", "type": "void *", "default": "nullptr"} |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 170 | ] |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 171 | }, |
Zhaoming Jiang | a12ff9a | 2023-01-30 09:16:51 +0000 | [diff] [blame] | 172 | "dawn toggles descriptor": { |
| 173 | "tags": ["dawn", "native"], |
| 174 | "category": "structure", |
| 175 | "chained": "in", |
Zhaoming Jiang | c7355b7 | 2023-06-21 06:10:31 +0000 | [diff] [blame] | 176 | "chain roots": ["instance descriptor", "request adapter options", "device descriptor"], |
Zhaoming Jiang | a12ff9a | 2023-01-30 09:16:51 +0000 | [diff] [blame] | 177 | "members": [ |
Loko Kung | 44fc9da | 2023-08-16 06:11:11 +0000 | [diff] [blame] | 178 | {"name": "enabled toggle count", "type": "size_t", "default": 0}, |
| 179 | {"name": "enabled toggles", "type": "char", "annotation": "const*const*", "length": "enabled toggle count"}, |
| 180 | {"name": "disabled toggle count", "type": "size_t", "default": 0}, |
| 181 | {"name": "disabled toggles", "type": "char", "annotation": "const*const*", "length": "disabled toggle count"} |
Zhaoming Jiang | a12ff9a | 2023-01-30 09:16:51 +0000 | [diff] [blame] | 182 | ] |
| 183 | }, |
Loko Kung | 44f039d | 2022-03-01 22:59:40 +0000 | [diff] [blame] | 184 | "dawn cache device descriptor" : { |
| 185 | "tags": ["dawn", "native"], |
| 186 | "category": "structure", |
| 187 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 188 | "chain roots": ["device descriptor"], |
Loko Kung | 44f039d | 2022-03-01 22:59:40 +0000 | [diff] [blame] | 189 | "members": [ |
| 190 | {"name": "isolation key", "type": "char", "annotation": "const*", "length": "strlen", "default": "\"\""} |
| 191 | ] |
| 192 | }, |
Corentin Wallez | a60799f | 2018-09-11 18:16:54 +0000 | [diff] [blame] | 193 | "address mode": { |
| 194 | "category": "enum", |
| 195 | "values": [ |
Yan, Shaobo | 93158eb | 2019-01-04 04:56:08 +0000 | [diff] [blame] | 196 | {"value": 0, "name": "repeat"}, |
Corentin Wallez | a0491c9 | 2019-07-08 09:36:31 +0000 | [diff] [blame] | 197 | {"value": 1, "name": "mirror repeat"}, |
Austin Eng | 5f1d2e1 | 2019-04-09 15:12:50 +0000 | [diff] [blame] | 198 | {"value": 2, "name": "clamp to edge"} |
Corentin Wallez | a60799f | 2018-09-11 18:16:54 +0000 | [diff] [blame] | 199 | ] |
Austin Eng | 1063439 | 2017-06-01 11:30:03 -0400 | [diff] [blame] | 200 | }, |
Corentin Wallez | f12c9db | 2020-01-10 13:28:18 +0000 | [diff] [blame] | 201 | "backend type": { |
| 202 | "category": "enum", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 203 | "emscripten_no_enum_table": true, |
Corentin Wallez | f12c9db | 2020-01-10 13:28:18 +0000 | [diff] [blame] | 204 | "values": [ |
Austin Eng | 493de1e | 2023-06-20 22:58:27 +0000 | [diff] [blame] | 205 | {"value": 0, "name": "undefined", "jsrepr": "undefined", "valid": false}, |
| 206 | {"value": 1, "name": "null"}, |
| 207 | {"value": 2, "name": "WebGPU"}, |
| 208 | {"value": 3, "name": "D3D11"}, |
| 209 | {"value": 4, "name": "D3D12"}, |
| 210 | {"value": 5, "name": "metal"}, |
| 211 | {"value": 6, "name": "vulkan"}, |
| 212 | {"value": 7, "name": "openGL"}, |
| 213 | {"value": 8, "name": "openGLES"} |
Corentin Wallez | f12c9db | 2020-01-10 13:28:18 +0000 | [diff] [blame] | 214 | ] |
| 215 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 216 | "bind group": { |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 217 | "category": "object", |
| 218 | "methods": [ |
| 219 | { |
| 220 | "name": "set label", |
| 221 | "returns": "void", |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 222 | "args": [ |
| 223 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 224 | ] |
| 225 | } |
| 226 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 227 | }, |
Corentin Wallez | c3c6694 | 2020-04-07 07:11:12 +0000 | [diff] [blame] | 228 | "bind group entry": { |
Corentin Wallez | 6f9d21e | 2018-12-05 07:18:30 +0000 | [diff] [blame] | 229 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 230 | "extensible": "in", |
Corentin Wallez | 6f9d21e | 2018-12-05 07:18:30 +0000 | [diff] [blame] | 231 | "members": [ |
| 232 | {"name": "binding", "type": "uint32_t"}, |
Corentin Wallez | 6f0e1f9 | 2018-12-07 12:31:53 +0000 | [diff] [blame] | 233 | {"name": "buffer", "type": "buffer", "optional": true}, |
Corentin Wallez | 8f93871 | 2019-07-08 19:20:22 +0000 | [diff] [blame] | 234 | {"name": "offset", "type": "uint64_t", "default": "0"}, |
Zhaoming Jiang | f304f25 | 2022-09-28 12:49:27 +0000 | [diff] [blame] | 235 | {"name": "size", "type": "uint64_t", "default": "WGPU_WHOLE_SIZE"}, |
Corentin Wallez | 6f9d21e | 2018-12-05 07:18:30 +0000 | [diff] [blame] | 236 | {"name": "sampler", "type": "sampler", "optional": true}, |
| 237 | {"name": "texture view", "type": "texture view", "optional": true} |
| 238 | ] |
| 239 | }, |
| 240 | "bind group descriptor": { |
| 241 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 242 | "extensible": "in", |
Corentin Wallez | 6f9d21e | 2018-12-05 07:18:30 +0000 | [diff] [blame] | 243 | "members": [ |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 244 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Corentin Wallez | 6f9d21e | 2018-12-05 07:18:30 +0000 | [diff] [blame] | 245 | {"name": "layout", "type": "bind group layout"}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 246 | {"name": "entry count", "type": "size_t"}, |
Corentin Wallez | 3966eb1 | 2020-04-21 07:36:30 +0000 | [diff] [blame] | 247 | {"name": "entries", "type": "bind group entry", "annotation": "const*", "length": "entry count"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 248 | ] |
| 249 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 250 | "bind group layout": { |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 251 | "category": "object", |
| 252 | "methods": [ |
| 253 | { |
| 254 | "name": "set label", |
| 255 | "returns": "void", |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 256 | "args": [ |
| 257 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 258 | ] |
| 259 | } |
| 260 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 261 | }, |
Brandon Jones | 9c52c299 | 2020-12-12 02:09:56 +0000 | [diff] [blame] | 262 | |
| 263 | "buffer binding type": { |
| 264 | "category": "enum", |
| 265 | "values": [ |
| 266 | {"value": 0, "name": "undefined", "jsrepr": "undefined", "valid": false}, |
| 267 | {"value": 1, "name": "uniform"}, |
| 268 | {"value": 2, "name": "storage"}, |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 269 | {"value": 3, "name": "read only storage"} |
Brandon Jones | 9c52c299 | 2020-12-12 02:09:56 +0000 | [diff] [blame] | 270 | ] |
| 271 | }, |
| 272 | "buffer binding layout": { |
| 273 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 274 | "extensible": "in", |
Brandon Jones | 9c52c299 | 2020-12-12 02:09:56 +0000 | [diff] [blame] | 275 | "members": [ |
| 276 | {"name": "type", "type": "buffer binding type", "default": "undefined"}, |
| 277 | {"name": "has dynamic offset", "type": "bool", "default": "false"}, |
| 278 | {"name": "min binding size", "type": "uint64_t", "default": "0"} |
| 279 | ] |
| 280 | }, |
| 281 | |
| 282 | "sampler binding type": { |
| 283 | "category": "enum", |
| 284 | "values": [ |
| 285 | {"value": 0, "name": "undefined", "jsrepr": "undefined", "valid": false}, |
| 286 | {"value": 1, "name": "filtering"}, |
| 287 | {"value": 2, "name": "non filtering"}, |
| 288 | {"value": 3, "name": "comparison"} |
| 289 | ] |
| 290 | }, |
| 291 | "sampler binding layout": { |
| 292 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 293 | "extensible": "in", |
Brandon Jones | 9c52c299 | 2020-12-12 02:09:56 +0000 | [diff] [blame] | 294 | "members": [ |
| 295 | {"name": "type", "type": "sampler binding type", "default": "undefined"} |
| 296 | ] |
| 297 | }, |
| 298 | |
| 299 | "texture sample type": { |
| 300 | "category": "enum", |
| 301 | "values": [ |
| 302 | {"value": 0, "name": "undefined", "jsrepr": "undefined", "valid": false}, |
| 303 | {"value": 1, "name": "float"}, |
| 304 | {"value": 2, "name": "unfilterable float"}, |
| 305 | {"value": 3, "name": "depth"}, |
| 306 | {"value": 4, "name": "sint"}, |
| 307 | {"value": 5, "name": "uint"} |
| 308 | ] |
| 309 | }, |
| 310 | "texture binding layout": { |
| 311 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 312 | "extensible": "in", |
Brandon Jones | 9c52c299 | 2020-12-12 02:09:56 +0000 | [diff] [blame] | 313 | "members": [ |
| 314 | {"name": "sample type", "type": "texture sample type", "default": "undefined"}, |
| 315 | {"name": "view dimension", "type": "texture view dimension", "default": "undefined"}, |
| 316 | {"name": "multisampled", "type": "bool", "default": "false"} |
| 317 | ] |
| 318 | }, |
dan sinclair | 3ebe5b6 | 2023-08-21 22:57:06 +0000 | [diff] [blame] | 319 | "surface capabilities": { |
| 320 | "category": "structure", |
| 321 | "tags": ["upstream"], |
| 322 | "extensible": "out", |
| 323 | "members": [ |
| 324 | {"name": "format count", "type": "size_t"}, |
| 325 | {"name": "formats", "type": "texture format", "annotation": "*"}, |
| 326 | {"name": "present mode count", "type": "size_t"}, |
| 327 | {"name": "present modes", "type": "present mode", "annotation": "*"}, |
| 328 | {"name": "alpha mode count", "type": "size_t"}, |
| 329 | {"name": "alpha modes", "type": "composite alpha mode", "annotation": "*"} |
| 330 | ], |
| 331 | "methods": [ |
| 332 | { |
| 333 | "name": "free members", |
| 334 | "returns": "void", |
| 335 | "args": [] |
| 336 | } |
| 337 | ] |
| 338 | }, |
| 339 | "surface configuration": { |
| 340 | "category": "structure", |
| 341 | "tags": ["upstream"], |
| 342 | "extensible": "in", |
| 343 | "members": [ |
| 344 | {"name": "device", "type": "device"}, |
| 345 | {"name": "format", "type": "texture format"}, |
| 346 | {"name": "usage", "type": "texture usage"}, |
| 347 | {"name": "view format count", "type": "size_t"}, |
| 348 | {"name": "view formats", "type": "texture format", "annotation": "const*"}, |
| 349 | {"name": "alpha mode", "type": "composite alpha mode"}, |
| 350 | {"name": "width", "type": "uint32_t"}, |
| 351 | {"name": "height", "type": "uint32_t"}, |
| 352 | {"name": "present mode", "type": "present mode"} |
| 353 | ] |
| 354 | }, |
Brandon Jones | 39633e2 | 2021-06-01 19:45:53 +0000 | [diff] [blame] | 355 | "external texture binding entry": { |
| 356 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 357 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 358 | "chain roots": ["bind group entry"], |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 359 | "tags": ["dawn"], |
Brandon Jones | 39633e2 | 2021-06-01 19:45:53 +0000 | [diff] [blame] | 360 | "members": [ |
| 361 | {"name": "external texture", "type": "external texture"} |
| 362 | ] |
| 363 | }, |
| 364 | |
| 365 | "external texture binding layout": { |
| 366 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 367 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 368 | "chain roots": ["bind group layout entry"], |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 369 | "tags": ["dawn"], |
Brandon Jones | 39633e2 | 2021-06-01 19:45:53 +0000 | [diff] [blame] | 370 | "members": [] |
| 371 | }, |
| 372 | |
Brandon Jones | 9c52c299 | 2020-12-12 02:09:56 +0000 | [diff] [blame] | 373 | "storage texture access": { |
| 374 | "category": "enum", |
| 375 | "values": [ |
| 376 | {"value": 0, "name": "undefined", "jsrepr": "undefined", "valid": false}, |
Jiawei Shao | bdabd11 | 2023-08-15 08:17:58 +0000 | [diff] [blame] | 377 | {"value": 1, "name": "write only"}, |
dan sinclair | 3ebe5b6 | 2023-08-21 22:57:06 +0000 | [diff] [blame] | 378 | {"value": 2, "name": "read only", "tags": ["dawn"]}, |
| 379 | {"value": 3, "name": "read write", "tags": ["dawn"]} |
Brandon Jones | 9c52c299 | 2020-12-12 02:09:56 +0000 | [diff] [blame] | 380 | ] |
| 381 | }, |
| 382 | "storage texture binding layout": { |
| 383 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 384 | "extensible": "in", |
Brandon Jones | 9c52c299 | 2020-12-12 02:09:56 +0000 | [diff] [blame] | 385 | "members": [ |
| 386 | {"name": "access", "type": "storage texture access", "default": "undefined"}, |
| 387 | {"name": "format", "type": "texture format", "default": "undefined"}, |
| 388 | {"name": "view dimension", "type": "texture view dimension", "default": "undefined"} |
| 389 | ] |
| 390 | }, |
| 391 | |
Corentin Wallez | c3c6694 | 2020-04-07 07:11:12 +0000 | [diff] [blame] | 392 | "bind group layout entry": { |
Kai Ninomiya | 234becf | 2018-07-10 12:23:50 -0700 | [diff] [blame] | 393 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 394 | "extensible": "in", |
Kai Ninomiya | 234becf | 2018-07-10 12:23:50 -0700 | [diff] [blame] | 395 | "members": [ |
| 396 | {"name": "binding", "type": "uint32_t"}, |
Corentin Wallez | b9b088f | 2019-08-27 08:42:29 +0000 | [diff] [blame] | 397 | {"name": "visibility", "type": "shader stage"}, |
Brandon Jones | 9c52c299 | 2020-12-12 02:09:56 +0000 | [diff] [blame] | 398 | {"name": "buffer", "type": "buffer binding layout"}, |
| 399 | {"name": "sampler", "type": "sampler binding layout"}, |
| 400 | {"name": "texture", "type": "texture binding layout"}, |
| 401 | {"name": "storage texture", "type": "storage texture binding layout"} |
Kai Ninomiya | 234becf | 2018-07-10 12:23:50 -0700 | [diff] [blame] | 402 | ] |
| 403 | }, |
| 404 | "bind group layout descriptor": { |
| 405 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 406 | "extensible": "in", |
Kai Ninomiya | 234becf | 2018-07-10 12:23:50 -0700 | [diff] [blame] | 407 | "members": [ |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 408 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 409 | {"name": "entry count", "type": "size_t"}, |
Corentin Wallez | 3966eb1 | 2020-04-21 07:36:30 +0000 | [diff] [blame] | 410 | {"name": "entries", "type": "bind group layout entry", "annotation": "const*", "length": "entry count"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 411 | ] |
| 412 | }, |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 413 | "blend component": { |
Yunchao He | c35103d | 2018-10-29 09:06:55 +0000 | [diff] [blame] | 414 | "category": "structure", |
| 415 | "extensible": false, |
| 416 | "members": [ |
Corentin Wallez | 8f93871 | 2019-07-08 19:20:22 +0000 | [diff] [blame] | 417 | {"name": "operation", "type": "blend operation", "default": "add"}, |
| 418 | {"name": "src factor", "type": "blend factor", "default": "one"}, |
| 419 | {"name": "dst factor", "type": "blend factor", "default": "zero"} |
Yunchao He | c35103d | 2018-10-29 09:06:55 +0000 | [diff] [blame] | 420 | ] |
| 421 | }, |
Austin Eng | 94bebe5 | 2017-07-26 16:59:53 -0400 | [diff] [blame] | 422 | "blend factor": { |
| 423 | "category": "enum", |
| 424 | "values": [ |
| 425 | {"value": 0, "name": "zero"}, |
| 426 | {"value": 1, "name": "one"}, |
Brandon Jones | 22b923c | 2021-04-15 18:34:29 +0000 | [diff] [blame] | 427 | {"value": 2, "name": "src"}, |
| 428 | {"value": 3, "name": "one minus src"}, |
Austin Eng | 94bebe5 | 2017-07-26 16:59:53 -0400 | [diff] [blame] | 429 | {"value": 4, "name": "src alpha"}, |
| 430 | {"value": 5, "name": "one minus src alpha"}, |
Brandon Jones | 22b923c | 2021-04-15 18:34:29 +0000 | [diff] [blame] | 431 | {"value": 6, "name": "dst"}, |
| 432 | {"value": 7, "name": "one minus dst"}, |
Austin Eng | 94bebe5 | 2017-07-26 16:59:53 -0400 | [diff] [blame] | 433 | {"value": 8, "name": "dst alpha"}, |
| 434 | {"value": 9, "name": "one minus dst alpha"}, |
| 435 | {"value": 10, "name": "src alpha saturated"}, |
Brandon Jones | 22b923c | 2021-04-15 18:34:29 +0000 | [diff] [blame] | 436 | {"value": 11, "name": "constant"}, |
Brandon Jones | 48c7b2b | 2023-07-25 21:17:28 +0000 | [diff] [blame] | 437 | {"value": 12, "name": "one minus constant"}, |
dan sinclair | 3ebe5b6 | 2023-08-21 22:57:06 +0000 | [diff] [blame] | 438 | {"value": 13, "name": "src1", "tags": ["dawn"]}, |
| 439 | {"value": 14, "name": "one minus src1", "tags": ["dawn"]}, |
| 440 | {"value": 15, "name": "src1 alpha", "tags": ["dawn"]}, |
| 441 | {"value": 16, "name": "one minus src1 alpha", "tags": ["dawn"]} |
Austin Eng | 94bebe5 | 2017-07-26 16:59:53 -0400 | [diff] [blame] | 442 | ] |
| 443 | }, |
| 444 | "blend operation": { |
| 445 | "category": "enum", |
| 446 | "values": [ |
| 447 | {"value": 0, "name": "add"}, |
| 448 | {"value": 1, "name": "subtract"}, |
| 449 | {"value": 2, "name": "reverse subtract"}, |
| 450 | {"value": 3, "name": "min"}, |
| 451 | {"value": 4, "name": "max"} |
| 452 | ] |
| 453 | }, |
Corentin Wallez | a60799f | 2018-09-11 18:16:54 +0000 | [diff] [blame] | 454 | "bool": { |
| 455 | "category": "native" |
| 456 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 457 | "buffer": { |
| 458 | "category": "object", |
| 459 | "methods": [ |
| 460 | { |
Corentin Wallez | 0d52f80 | 2020-07-14 12:30:14 +0000 | [diff] [blame] | 461 | "name": "map async", |
| 462 | "args": [ |
Corentin Wallez | 3ed44f5 | 2020-07-20 16:24:20 +0000 | [diff] [blame] | 463 | {"name": "mode", "type": "map mode"}, |
Corentin Wallez | 0d52f80 | 2020-07-14 12:30:14 +0000 | [diff] [blame] | 464 | {"name": "offset", "type": "size_t"}, |
| 465 | {"name": "size", "type": "size_t"}, |
Corentin Wallez | e00c6bd | 2021-12-13 17:37:17 +0000 | [diff] [blame] | 466 | {"name": "callback", "type": "buffer map callback"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 467 | {"name": "userdata", "type": "void *"} |
Corentin Wallez | 0d52f80 | 2020-07-14 12:30:14 +0000 | [diff] [blame] | 468 | ] |
| 469 | }, |
| 470 | { |
Corentin Wallez | 1325ab1 | 2020-06-30 11:51:14 +0000 | [diff] [blame] | 471 | "name": "get mapped range", |
Corentin Wallez | f6e7044 | 2020-07-17 18:50:37 +0000 | [diff] [blame] | 472 | "returns": "void *", |
| 473 | "args": [ |
| 474 | {"name": "offset", "type": "size_t", "default": 0}, |
Shrek Shao | 286061d | 2022-04-29 18:12:17 +0000 | [diff] [blame] | 475 | {"name": "size", "type": "size_t", "default": "WGPU_WHOLE_MAP_SIZE"} |
Corentin Wallez | f6e7044 | 2020-07-17 18:50:37 +0000 | [diff] [blame] | 476 | ] |
Corentin Wallez | 1325ab1 | 2020-06-30 11:51:14 +0000 | [diff] [blame] | 477 | }, |
| 478 | { |
| 479 | "name": "get const mapped range", |
Corentin Wallez | f6e7044 | 2020-07-17 18:50:37 +0000 | [diff] [blame] | 480 | "returns": "void const *", |
| 481 | "args": [ |
| 482 | {"name": "offset", "type": "size_t", "default": 0}, |
Shrek Shao | 286061d | 2022-04-29 18:12:17 +0000 | [diff] [blame] | 483 | {"name": "size", "type": "size_t", "default": "WGPU_WHOLE_MAP_SIZE"} |
Corentin Wallez | f6e7044 | 2020-07-17 18:50:37 +0000 | [diff] [blame] | 484 | ] |
Corentin Wallez | 1325ab1 | 2020-06-30 11:51:14 +0000 | [diff] [blame] | 485 | }, |
| 486 | { |
Brandon Jones | c95e574 | 2021-08-19 20:47:28 +0000 | [diff] [blame] | 487 | "name": "set label", |
| 488 | "returns": "void", |
| 489 | "args": [ |
| 490 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 491 | ] |
| 492 | }, |
| 493 | { |
Corentin Wallez | d428187 | 2022-06-08 14:46:41 +0000 | [diff] [blame] | 494 | "name": "get usage", |
| 495 | "returns": "buffer usage" |
| 496 | }, |
| 497 | { |
| 498 | "name": "get size", |
| 499 | "returns": "uint64_t" |
| 500 | }, |
| 501 | { |
Takahiro | 915e55a | 2022-12-19 19:06:51 +0000 | [diff] [blame] | 502 | "name": "get map state", |
| 503 | "returns": "buffer map state" |
| 504 | }, |
| 505 | { |
Corentin Wallez | b1c19ee | 2017-06-09 10:51:29 -0400 | [diff] [blame] | 506 | "name": "unmap" |
Austin Eng | 446ab44 | 2019-02-13 21:26:48 +0000 | [diff] [blame] | 507 | }, |
| 508 | { |
| 509 | "name": "destroy" |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 510 | } |
| 511 | ] |
| 512 | }, |
Corentin Wallez | 82b6573 | 2018-08-22 15:37:29 +0200 | [diff] [blame] | 513 | "buffer descriptor": { |
| 514 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 515 | "extensible": "in", |
Corentin Wallez | 82b6573 | 2018-08-22 15:37:29 +0200 | [diff] [blame] | 516 | "members": [ |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 517 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Corentin Wallez | 9e9e29f | 2019-08-27 08:21:39 +0000 | [diff] [blame] | 518 | {"name": "usage", "type": "buffer usage"}, |
Corentin Wallez | b2ea191 | 2020-07-07 11:21:51 +0000 | [diff] [blame] | 519 | {"name": "size", "type": "uint64_t"}, |
| 520 | {"name": "mapped at creation", "type": "bool", "default": "false"} |
Corentin Wallez | 82b6573 | 2018-08-22 15:37:29 +0200 | [diff] [blame] | 521 | ] |
| 522 | }, |
Corentin Wallez | 0d52f80 | 2020-07-14 12:30:14 +0000 | [diff] [blame] | 523 | "buffer map callback": { |
fujunwei | 23f7162 | 2021-12-02 07:41:21 +0000 | [diff] [blame] | 524 | "category": "function pointer", |
Corentin Wallez | 0d52f80 | 2020-07-14 12:30:14 +0000 | [diff] [blame] | 525 | "args": [ |
| 526 | {"name": "status", "type": "buffer map async status"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 527 | {"name": "userdata", "type": "void *"} |
Corentin Wallez | 0d52f80 | 2020-07-14 12:30:14 +0000 | [diff] [blame] | 528 | ] |
| 529 | }, |
Corentin Wallez | 8565e00 | 2018-03-20 19:48:54 -0400 | [diff] [blame] | 530 | "buffer map async status": { |
Corentin Wallez | b1c19ee | 2017-06-09 10:51:29 -0400 | [diff] [blame] | 531 | "category": "enum", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 532 | "emscripten_no_enum_table": true, |
Corentin Wallez | b1c19ee | 2017-06-09 10:51:29 -0400 | [diff] [blame] | 533 | "values": [ |
| 534 | {"value": 0, "name": "success"}, |
François Beaufort | 8cb4581 | 2023-05-04 13:34:27 +0000 | [diff] [blame] | 535 | {"value": 1, "name": "validation error"}, |
Corentin Wallez | b1c19ee | 2017-06-09 10:51:29 -0400 | [diff] [blame] | 536 | {"value": 2, "name": "unknown"}, |
Jiawei Shao | ed2b465 | 2020-09-27 02:00:52 +0000 | [diff] [blame] | 537 | {"value": 3, "name": "device lost"}, |
| 538 | {"value": 4, "name": "destroyed before callback"}, |
François Beaufort | ad571cf | 2023-04-28 17:07:45 +0000 | [diff] [blame] | 539 | {"value": 5, "name": "unmapped before callback"}, |
| 540 | {"value": 6, "name": "mapping already pending"}, |
| 541 | {"value": 7, "name": "offset out of range"}, |
François Beaufort | 8cb4581 | 2023-05-04 13:34:27 +0000 | [diff] [blame] | 542 | {"value": 8, "name": "size out of range"} |
Corentin Wallez | b1c19ee | 2017-06-09 10:51:29 -0400 | [diff] [blame] | 543 | ] |
| 544 | }, |
Takahiro | 915e55a | 2022-12-19 19:06:51 +0000 | [diff] [blame] | 545 | "buffer map state": { |
| 546 | "category": "enum", |
| 547 | "values": [ |
| 548 | {"value": 0, "name": "unmapped"}, |
| 549 | {"value": 1, "name": "pending"}, |
| 550 | {"value": 2, "name": "mapped"} |
| 551 | ] |
| 552 | }, |
Corentin Wallez | 9e9e29f | 2019-08-27 08:21:39 +0000 | [diff] [blame] | 553 | "buffer usage": { |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 554 | "category": "bitmask", |
| 555 | "values": [ |
| 556 | {"value": 0, "name": "none"}, |
Corentin Wallez | f45bdb8 | 2017-06-05 15:42:14 -0400 | [diff] [blame] | 557 | {"value": 1, "name": "map read"}, |
Corentin Wallez | 769b00f | 2017-06-16 15:35:12 -0400 | [diff] [blame] | 558 | {"value": 2, "name": "map write"}, |
Corentin Wallez | ec05355 | 2019-07-08 10:05:46 +0000 | [diff] [blame] | 559 | {"value": 4, "name": "copy src"}, |
| 560 | {"value": 8, "name": "copy dst"}, |
Corentin Wallez | 769b00f | 2017-06-16 15:35:12 -0400 | [diff] [blame] | 561 | {"value": 16, "name": "index"}, |
| 562 | {"value": 32, "name": "vertex"}, |
| 563 | {"value": 64, "name": "uniform"}, |
Idan Raiter | 05f7ad5 | 2019-06-10 20:56:27 +0000 | [diff] [blame] | 564 | {"value": 128, "name": "storage"}, |
Hao Li | 5c89c8d | 2020-07-17 09:02:46 +0000 | [diff] [blame] | 565 | {"value": 256, "name": "indirect"}, |
| 566 | {"value": 512, "name": "query resolve"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 567 | ] |
| 568 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 569 | "char": { |
| 570 | "category": "native" |
| 571 | }, |
Jiawei Shao | 5e811ae | 2018-12-19 08:21:13 +0000 | [diff] [blame] | 572 | "color": { |
| 573 | "category": "structure", |
| 574 | "members": [ |
Brandon Jones | 670858d | 2020-09-22 16:51:36 +0000 | [diff] [blame] | 575 | {"name": "r", "type": "double"}, |
| 576 | {"name": "g", "type": "double"}, |
| 577 | {"name": "b", "type": "double"}, |
| 578 | {"name": "a", "type": "double"} |
Jiawei Shao | 5e811ae | 2018-12-19 08:21:13 +0000 | [diff] [blame] | 579 | ] |
| 580 | }, |
Austin Eng | 94bebe5 | 2017-07-26 16:59:53 -0400 | [diff] [blame] | 581 | "color write mask": { |
| 582 | "category": "bitmask", |
| 583 | "values": [ |
| 584 | {"value": 0, "name": "none"}, |
| 585 | {"value": 1, "name": "red"}, |
| 586 | {"value": 2, "name": "green"}, |
| 587 | {"value": 4, "name": "blue"}, |
| 588 | {"value": 8, "name": "alpha"}, |
| 589 | {"value": 15, "name": "all"} |
| 590 | ] |
| 591 | }, |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 592 | "constant entry": { |
| 593 | "category": "structure", |
| 594 | "extensible": "in", |
| 595 | "members": [ |
shrekshao | e99ad76 | 2021-09-28 20:15:52 +0000 | [diff] [blame] | 596 | {"name": "key", "type": "char", "annotation": "const*", "length": "strlen"}, |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 597 | {"name": "value", "type": "double"} |
| 598 | ] |
| 599 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 600 | "command buffer": { |
Brandon Jones | 828f674 | 2021-11-23 00:09:25 +0000 | [diff] [blame] | 601 | "category": "object", |
| 602 | "methods": [ |
| 603 | { |
| 604 | "name": "set label", |
| 605 | "returns": "void", |
Brandon Jones | 828f674 | 2021-11-23 00:09:25 +0000 | [diff] [blame] | 606 | "args": [ |
| 607 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 608 | ] |
| 609 | } |
| 610 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 611 | }, |
Corentin Wallez | 4b90c47 | 2019-07-10 20:43:13 +0000 | [diff] [blame] | 612 | "command buffer descriptor": { |
| 613 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 614 | "extensible": "in", |
François Beaufort | 6ac5a92 | 2019-09-25 13:56:48 +0000 | [diff] [blame] | 615 | "members": [ |
| 616 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true} |
| 617 | ] |
Corentin Wallez | 4b90c47 | 2019-07-10 20:43:13 +0000 | [diff] [blame] | 618 | }, |
Corentin Wallez | e1f0d4e | 2019-02-15 12:54:08 +0000 | [diff] [blame] | 619 | "command encoder": { |
| 620 | "category": "object", |
Le Hoang Quyen | 7971bfe | 2023-04-05 19:35:07 +0000 | [diff] [blame] | 621 | "no autolock": true, |
Corentin Wallez | e1f0d4e | 2019-02-15 12:54:08 +0000 | [diff] [blame] | 622 | "methods": [ |
| 623 | { |
| 624 | "name": "finish", |
Corentin Wallez | 4b90c47 | 2019-07-10 20:43:13 +0000 | [diff] [blame] | 625 | "returns": "command buffer", |
| 626 | "args": [ |
| 627 | {"name": "descriptor", "type": "command buffer descriptor", "annotation": "const*", "optional": true} |
| 628 | ] |
Corentin Wallez | e1f0d4e | 2019-02-15 12:54:08 +0000 | [diff] [blame] | 629 | }, |
| 630 | { |
| 631 | "name": "begin compute pass", |
Corentin Wallez | 4b90c47 | 2019-07-10 20:43:13 +0000 | [diff] [blame] | 632 | "returns": "compute pass encoder", |
| 633 | "args": [ |
| 634 | {"name": "descriptor", "type": "compute pass descriptor", "annotation": "const*", "optional": true} |
| 635 | ] |
Corentin Wallez | e1f0d4e | 2019-02-15 12:54:08 +0000 | [diff] [blame] | 636 | }, |
| 637 | { |
| 638 | "name": "begin render pass", |
Corentin Wallez | 4b90c47 | 2019-07-10 20:43:13 +0000 | [diff] [blame] | 639 | "returns": "render pass encoder", |
Corentin Wallez | e1f0d4e | 2019-02-15 12:54:08 +0000 | [diff] [blame] | 640 | "args": [ |
Corentin Wallez | 4b90c47 | 2019-07-10 20:43:13 +0000 | [diff] [blame] | 641 | {"name": "descriptor", "type": "render pass descriptor", "annotation": "const*"} |
| 642 | ] |
Corentin Wallez | e1f0d4e | 2019-02-15 12:54:08 +0000 | [diff] [blame] | 643 | }, |
| 644 | { |
| 645 | "name": "copy buffer to buffer", |
| 646 | "args": [ |
| 647 | {"name": "source", "type": "buffer"}, |
Austin Eng | cf52d71 | 2019-04-05 20:51:29 +0000 | [diff] [blame] | 648 | {"name": "source offset", "type": "uint64_t"}, |
Corentin Wallez | e1f0d4e | 2019-02-15 12:54:08 +0000 | [diff] [blame] | 649 | {"name": "destination", "type": "buffer"}, |
Austin Eng | cf52d71 | 2019-04-05 20:51:29 +0000 | [diff] [blame] | 650 | {"name": "destination offset", "type": "uint64_t"}, |
| 651 | {"name": "size", "type": "uint64_t"} |
Corentin Wallez | e1f0d4e | 2019-02-15 12:54:08 +0000 | [diff] [blame] | 652 | ] |
| 653 | }, |
| 654 | { |
| 655 | "name": "copy buffer to texture", |
| 656 | "args": [ |
Corentin Wallez | 8091584 | 2021-03-04 18:13:45 +0000 | [diff] [blame] | 657 | {"name": "source", "type": "image copy buffer", "annotation": "const*"}, |
| 658 | {"name": "destination", "type": "image copy texture", "annotation": "const*"}, |
Corentin Wallez | e1f0d4e | 2019-02-15 12:54:08 +0000 | [diff] [blame] | 659 | {"name": "copy size", "type": "extent 3D", "annotation": "const*"} |
| 660 | ] |
| 661 | }, |
| 662 | { |
| 663 | "name": "copy texture to buffer", |
| 664 | "args": [ |
Corentin Wallez | 8091584 | 2021-03-04 18:13:45 +0000 | [diff] [blame] | 665 | {"name": "source", "type": "image copy texture", "annotation": "const*"}, |
| 666 | {"name": "destination", "type": "image copy buffer", "annotation": "const*"}, |
Corentin Wallez | e1f0d4e | 2019-02-15 12:54:08 +0000 | [diff] [blame] | 667 | {"name": "copy size", "type": "extent 3D", "annotation": "const*"} |
| 668 | ] |
Brandon Jones | d3d3aa0 | 2019-03-26 11:06:23 +0000 | [diff] [blame] | 669 | }, |
| 670 | { |
| 671 | "name": "copy texture to texture", |
| 672 | "args": [ |
Corentin Wallez | 8091584 | 2021-03-04 18:13:45 +0000 | [diff] [blame] | 673 | {"name": "source", "type": "image copy texture", "annotation": "const*"}, |
| 674 | {"name": "destination", "type": "image copy texture", "annotation": "const*"}, |
Brandon Jones | d3d3aa0 | 2019-03-26 11:06:23 +0000 | [diff] [blame] | 675 | {"name": "copy size", "type": "extent 3D", "annotation": "const*"} |
| 676 | ] |
Corentin Wallez | b8ea84c | 2019-09-10 08:20:40 +0000 | [diff] [blame] | 677 | }, |
| 678 | { |
Brandon Jones | d3105bf | 2021-12-02 21:43:49 +0000 | [diff] [blame] | 679 | "name": "clear buffer", |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 680 | "args": [ |
Brandon Jones | d3105bf | 2021-12-02 21:43:49 +0000 | [diff] [blame] | 681 | {"name": "buffer", "type": "buffer"}, |
| 682 | {"name": "offset", "type": "uint64_t", "default": 0}, |
| 683 | {"name": "size", "type": "uint64_t", "default": "WGPU_WHOLE_SIZE"} |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 684 | ] |
| 685 | }, |
| 686 | { |
Austin Eng | 464aaeb | 2020-11-14 01:24:03 +0000 | [diff] [blame] | 687 | "name": "inject validation error", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 688 | "tags": ["dawn"], |
Austin Eng | 464aaeb | 2020-11-14 01:24:03 +0000 | [diff] [blame] | 689 | "args": [ |
| 690 | {"name": "message", "type": "char", "annotation": "const*", "length": "strlen"} |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 691 | ] |
Austin Eng | 464aaeb | 2020-11-14 01:24:03 +0000 | [diff] [blame] | 692 | }, |
| 693 | { |
Corentin Wallez | b8ea84c | 2019-09-10 08:20:40 +0000 | [diff] [blame] | 694 | "name": "insert debug marker", |
| 695 | "args": [ |
Kai Ninomiya | 51bbbef | 2020-07-12 16:01:38 +0000 | [diff] [blame] | 696 | {"name": "marker label", "type": "char", "annotation": "const*", "length": "strlen"} |
Corentin Wallez | b8ea84c | 2019-09-10 08:20:40 +0000 | [diff] [blame] | 697 | ] |
| 698 | }, |
| 699 | { |
| 700 | "name": "pop debug group", |
| 701 | "args": [] |
| 702 | }, |
| 703 | { |
| 704 | "name": "push debug group", |
| 705 | "args": [ |
| 706 | {"name": "group label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 707 | ] |
Hao Li | 5191adc | 2020-07-01 10:48:16 +0000 | [diff] [blame] | 708 | }, |
| 709 | { |
Hao Li | 5c89c8d | 2020-07-17 09:02:46 +0000 | [diff] [blame] | 710 | "name": "resolve query set", |
| 711 | "args": [ |
| 712 | {"name": "query set", "type": "query set"}, |
| 713 | {"name": "first query", "type": "uint32_t"}, |
| 714 | {"name": "query count", "type": "uint32_t"}, |
| 715 | {"name": "destination", "type": "buffer"}, |
| 716 | {"name": "destination offset", "type": "uint64_t"} |
| 717 | ] |
| 718 | }, |
| 719 | { |
Ken Rockot | 6237c8a | 2021-09-20 19:25:05 +0000 | [diff] [blame] | 720 | "name": "write buffer", |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 721 | "tags": ["dawn"], |
Ken Rockot | 6237c8a | 2021-09-20 19:25:05 +0000 | [diff] [blame] | 722 | "args": [ |
| 723 | {"name": "buffer", "type": "buffer"}, |
| 724 | {"name": "buffer offset", "type": "uint64_t"}, |
| 725 | {"name": "data", "type": "uint8_t", "annotation": "const*", "length": "size"}, |
| 726 | {"name": "size", "type": "uint64_t"} |
| 727 | ] |
| 728 | }, |
| 729 | { |
Hao Li | 5191adc | 2020-07-01 10:48:16 +0000 | [diff] [blame] | 730 | "name": "write timestamp", |
| 731 | "args": [ |
| 732 | {"name": "query set", "type": "query set"}, |
| 733 | {"name": "query index", "type": "uint32_t"} |
| 734 | ] |
Brandon Jones | 828f674 | 2021-11-23 00:09:25 +0000 | [diff] [blame] | 735 | }, |
| 736 | { |
| 737 | "name": "set label", |
| 738 | "returns": "void", |
Brandon Jones | 828f674 | 2021-11-23 00:09:25 +0000 | [diff] [blame] | 739 | "args": [ |
| 740 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 741 | ] |
Corentin Wallez | e1f0d4e | 2019-02-15 12:54:08 +0000 | [diff] [blame] | 742 | } |
| 743 | ] |
| 744 | }, |
Corentin Wallez | 4b90c47 | 2019-07-10 20:43:13 +0000 | [diff] [blame] | 745 | "command encoder descriptor": { |
| 746 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 747 | "extensible": "in", |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 748 | "members": [ |
| 749 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true} |
| 750 | ] |
Corentin Wallez | 4b90c47 | 2019-07-10 20:43:13 +0000 | [diff] [blame] | 751 | }, |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 752 | "compare function": { |
| 753 | "category": "enum", |
| 754 | "values": [ |
Corentin Wallez | 5d2f204 | 2021-04-08 18:42:47 +0000 | [diff] [blame] | 755 | {"value": 0, "name": "undefined", "jsrepr": "undefined", "valid": false}, |
Austin Eng | d6a5431 | 2020-04-17 19:32:07 +0000 | [diff] [blame] | 756 | {"value": 1, "name": "never"}, |
| 757 | {"value": 2, "name": "less"}, |
| 758 | {"value": 3, "name": "less equal"}, |
| 759 | {"value": 4, "name": "greater"}, |
| 760 | {"value": 5, "name": "greater equal"}, |
| 761 | {"value": 6, "name": "equal"}, |
| 762 | {"value": 7, "name": "not equal"}, |
| 763 | {"value": 8, "name": "always"} |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 764 | ] |
| 765 | }, |
Brandon Jones | 6f2bbe9 | 2021-04-05 23:34:17 +0000 | [diff] [blame] | 766 | "compilation info": { |
| 767 | "category": "structure", |
Corentin Wallez | 61c8532 | 2021-11-16 09:25:35 +0000 | [diff] [blame] | 768 | "extensible": "in", |
Brandon Jones | 6f2bbe9 | 2021-04-05 23:34:17 +0000 | [diff] [blame] | 769 | "members": [ |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 770 | {"name": "message count", "type": "size_t"}, |
Brandon Jones | 6f2bbe9 | 2021-04-05 23:34:17 +0000 | [diff] [blame] | 771 | {"name": "messages", "type": "compilation message", "annotation": "const*", "length": "message count"} |
| 772 | ] |
| 773 | }, |
| 774 | "compilation info callback": { |
fujunwei | 23f7162 | 2021-12-02 07:41:21 +0000 | [diff] [blame] | 775 | "category": "function pointer", |
Brandon Jones | 6f2bbe9 | 2021-04-05 23:34:17 +0000 | [diff] [blame] | 776 | "args": [ |
| 777 | {"name": "status", "type": "compilation info request status"}, |
| 778 | {"name": "compilation info", "type": "compilation info", "annotation": "const*"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 779 | {"name": "userdata", "type": "void *"} |
Brandon Jones | 6f2bbe9 | 2021-04-05 23:34:17 +0000 | [diff] [blame] | 780 | ] |
| 781 | }, |
| 782 | "compilation info request status": { |
| 783 | "category": "enum", |
| 784 | "values": [ |
| 785 | {"value": 0, "name": "success"}, |
| 786 | {"value": 1, "name": "error"}, |
| 787 | {"value": 2, "name": "device lost"}, |
| 788 | {"value": 3, "name": "unknown"} |
| 789 | ] |
| 790 | }, |
| 791 | "compilation message": { |
| 792 | "category": "structure", |
Corentin Wallez | 61c8532 | 2021-11-16 09:25:35 +0000 | [diff] [blame] | 793 | "extensible": "in", |
Brandon Jones | 6f2bbe9 | 2021-04-05 23:34:17 +0000 | [diff] [blame] | 794 | "members": [ |
| 795 | {"name": "message", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
| 796 | {"name": "type", "type": "compilation message type"}, |
| 797 | {"name": "line num", "type": "uint64_t"}, |
Brandon Jones | 83ae2ce | 2021-04-30 20:45:58 +0000 | [diff] [blame] | 798 | {"name": "line pos", "type": "uint64_t"}, |
| 799 | {"name": "offset", "type": "uint64_t"}, |
Jiawei Shao | f7beb85 | 2023-01-10 00:03:24 +0000 | [diff] [blame] | 800 | {"name": "length", "type": "uint64_t"}, |
| 801 | {"name": "utf16 line pos", "type": "uint64_t"}, |
| 802 | {"name": "utf16 offset", "type": "uint64_t"}, |
| 803 | {"name": "utf16 length", "type": "uint64_t"} |
Brandon Jones | 6f2bbe9 | 2021-04-05 23:34:17 +0000 | [diff] [blame] | 804 | ] |
| 805 | }, |
| 806 | "compilation message type": { |
| 807 | "category": "enum", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 808 | "emscripten_no_enum_table": true, |
Brandon Jones | 6f2bbe9 | 2021-04-05 23:34:17 +0000 | [diff] [blame] | 809 | "values": [ |
| 810 | {"value": 0, "name": "error"}, |
| 811 | {"value": 1, "name": "warning"}, |
| 812 | {"value": 2, "name": "info"} |
| 813 | ] |
| 814 | }, |
Corentin Wallez | 4b90c47 | 2019-07-10 20:43:13 +0000 | [diff] [blame] | 815 | "compute pass descriptor": { |
| 816 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 817 | "extensible": "in", |
François Beaufort | 6ac5a92 | 2019-09-25 13:56:48 +0000 | [diff] [blame] | 818 | "members": [ |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 819 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 820 | {"name": "timestamp write count", "type": "size_t", "default": 0}, |
Li Hao | 131c422 | 2022-03-05 01:22:52 +0000 | [diff] [blame] | 821 | {"name": "timestamp writes", "type": "compute pass timestamp write", "annotation": "const*", "length": "timestamp write count"} |
François Beaufort | 6ac5a92 | 2019-09-25 13:56:48 +0000 | [diff] [blame] | 822 | ] |
Corentin Wallez | 4b90c47 | 2019-07-10 20:43:13 +0000 | [diff] [blame] | 823 | }, |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 824 | "compute pass encoder": { |
| 825 | "category": "object", |
Le Hoang Quyen | 7971bfe | 2023-04-05 19:35:07 +0000 | [diff] [blame] | 826 | "no autolock": true, |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 827 | "methods": [ |
Corentin Wallez | e9d347e | 2017-06-26 16:23:03 -0400 | [diff] [blame] | 828 | { |
Brandon Jones | 11d32c8 | 2019-02-20 20:21:00 +0000 | [diff] [blame] | 829 | "name": "insert debug marker", |
| 830 | "args": [ |
Kai Ninomiya | 51bbbef | 2020-07-12 16:01:38 +0000 | [diff] [blame] | 831 | {"name": "marker label", "type": "char", "annotation": "const*", "length": "strlen"} |
Brandon Jones | 11d32c8 | 2019-02-20 20:21:00 +0000 | [diff] [blame] | 832 | ] |
| 833 | }, |
| 834 | { |
| 835 | "name": "pop debug group", |
| 836 | "args": [] |
| 837 | }, |
| 838 | { |
| 839 | "name": "push debug group", |
| 840 | "args": [ |
| 841 | {"name": "group label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 842 | ] |
| 843 | }, |
| 844 | { |
Yan, Shaobo | 300eec0 | 2018-12-21 10:40:26 +0000 | [diff] [blame] | 845 | "name": "set pipeline", |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 846 | "args": [ |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 847 | {"name": "pipeline", "type": "compute pipeline"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 848 | ] |
| 849 | }, |
| 850 | { |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 851 | "name": "set bind group", |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 852 | "args": [ |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 853 | {"name": "group index", "type": "uint32_t"}, |
Yunchao He | 6ffe72c | 2023-06-14 19:22:29 +0000 | [diff] [blame] | 854 | {"name": "group", "type": "bind group", "optional": true}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 855 | {"name": "dynamic offset count", "type": "size_t", "default": "0"}, |
Corentin Wallez | 75f554d | 2021-06-17 16:04:29 +0000 | [diff] [blame] | 856 | {"name": "dynamic offsets", "type": "uint32_t", "annotation": "const*", "length": "dynamic offset count", "default": "nullptr"} |
Corentin Wallez | 29ced28 | 2017-07-14 10:58:07 -0400 | [diff] [blame] | 857 | ] |
| 858 | }, |
| 859 | { |
Hao Li | 5191adc | 2020-07-01 10:48:16 +0000 | [diff] [blame] | 860 | "name": "write timestamp", |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 861 | "tags": ["emscripten", "dawn"], |
Hao Li | 5191adc | 2020-07-01 10:48:16 +0000 | [diff] [blame] | 862 | "args": [ |
| 863 | {"name": "query set", "type": "query set"}, |
| 864 | {"name": "query index", "type": "uint32_t"} |
| 865 | ] |
| 866 | }, |
| 867 | { |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 868 | "name": "begin pipeline statistics query", |
Shrek Shao | ee50bc0 | 2022-02-08 20:21:40 +0000 | [diff] [blame] | 869 | "tags": ["upstream", "emscripten"], |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 870 | "args": [ |
| 871 | {"name": "query set", "type": "query set"}, |
| 872 | {"name": "query index", "type": "uint32_t"} |
| 873 | ] |
| 874 | }, |
| 875 | { |
Brandon Jones | 3daebe8 | 2022-04-29 17:51:54 +0000 | [diff] [blame] | 876 | "name": "dispatch workgroups", |
Corentin Wallez | a3c89cc | 2018-02-13 14:57:13 -0500 | [diff] [blame] | 877 | "args": [ |
Brandon Jones | 913e158 | 2022-01-27 09:40:02 +0000 | [diff] [blame] | 878 | {"name": "workgroupCountX", "type": "uint32_t"}, |
| 879 | {"name": "workgroupCountY", "type": "uint32_t", "default": "1"}, |
| 880 | {"name": "workgroupCountZ", "type": "uint32_t", "default": "1"} |
Corentin Wallez | a3c89cc | 2018-02-13 14:57:13 -0500 | [diff] [blame] | 881 | ] |
| 882 | }, |
| 883 | { |
Brandon Jones | 3daebe8 | 2022-04-29 17:51:54 +0000 | [diff] [blame] | 884 | "name": "dispatch workgroups indirect", |
Idan Raiter | 05f7ad5 | 2019-06-10 20:56:27 +0000 | [diff] [blame] | 885 | "args": [ |
| 886 | {"name": "indirect buffer", "type": "buffer"}, |
| 887 | {"name": "indirect offset", "type": "uint64_t"} |
| 888 | ] |
| 889 | }, |
| 890 | { |
Brandon Jones | 0fee4c1 | 2022-02-07 19:48:39 +0000 | [diff] [blame] | 891 | "name": "end" |
| 892 | }, |
| 893 | { |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 894 | "name": "end pipeline statistics query", |
Shrek Shao | ee50bc0 | 2022-02-08 20:21:40 +0000 | [diff] [blame] | 895 | "tags": ["upstream", "emscripten"] |
Brandon Jones | 828f674 | 2021-11-23 00:09:25 +0000 | [diff] [blame] | 896 | }, |
| 897 | { |
| 898 | "name": "set label", |
| 899 | "returns": "void", |
Brandon Jones | 828f674 | 2021-11-23 00:09:25 +0000 | [diff] [blame] | 900 | "args": [ |
| 901 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 902 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 903 | } |
| 904 | ] |
| 905 | }, |
dan sinclair | 3ebe5b6 | 2023-08-21 22:57:06 +0000 | [diff] [blame] | 906 | "composite alpha mode": { |
| 907 | "category": "enum", |
| 908 | "tags": ["upstream"], |
| 909 | "values": [ |
| 910 | {"value": 0, "name": "auto"}, |
| 911 | {"value": 1, "name": "opaque"}, |
| 912 | {"value": 2, "name": "premultiplied"}, |
| 913 | {"value": 3, "name": "unpremultiplied"}, |
| 914 | {"value": 4, "name": "inherit"} |
| 915 | ] |
| 916 | }, |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 917 | "compute pass timestamp location": { |
| 918 | "category": "enum", |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 919 | "values": [ |
| 920 | {"value": 0, "name": "beginning"}, |
| 921 | {"value": 1, "name": "end"} |
| 922 | ] |
| 923 | }, |
| 924 | "compute pass timestamp write": { |
| 925 | "category": "structure", |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 926 | "members": [ |
| 927 | {"name": "query set", "type": "query set"}, |
| 928 | {"name": "query index", "type": "uint32_t"}, |
| 929 | {"name": "location", "type": "compute pass timestamp location"} |
| 930 | ] |
| 931 | }, |
Corentin Wallez | 29ced28 | 2017-07-14 10:58:07 -0400 | [diff] [blame] | 932 | "compute pipeline": { |
Austin Eng | f6eb890 | 2019-11-22 17:02:22 +0000 | [diff] [blame] | 933 | "category": "object", |
| 934 | "methods": [ |
| 935 | { |
| 936 | "name": "get bind group layout", |
| 937 | "returns": "bind group layout", |
| 938 | "args": [ |
Corentin Wallez | 373a3ff | 2020-04-01 18:22:36 +0000 | [diff] [blame] | 939 | {"name": "group index", "type": "uint32_t"} |
Austin Eng | f6eb890 | 2019-11-22 17:02:22 +0000 | [diff] [blame] | 940 | ] |
Brandon Jones | c1bcbbf | 2021-09-02 18:39:53 +0000 | [diff] [blame] | 941 | }, |
| 942 | { |
| 943 | "name": "set label", |
| 944 | "returns": "void", |
| 945 | "args": [ |
| 946 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 947 | ] |
Austin Eng | f6eb890 | 2019-11-22 17:02:22 +0000 | [diff] [blame] | 948 | } |
| 949 | ] |
Corentin Wallez | 29ced28 | 2017-07-14 10:58:07 -0400 | [diff] [blame] | 950 | }, |
Corentin Wallez | 8e335a5 | 2018-08-27 23:12:56 +0200 | [diff] [blame] | 951 | "compute pipeline descriptor": { |
| 952 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 953 | "extensible": "in", |
Corentin Wallez | 8e335a5 | 2018-08-27 23:12:56 +0200 | [diff] [blame] | 954 | "members": [ |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 955 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Austin Eng | f6eb890 | 2019-11-22 17:02:22 +0000 | [diff] [blame] | 956 | {"name": "layout", "type": "pipeline layout", "optional": true}, |
Corentin Wallez | c7203ba | 2021-09-14 11:42:27 +0000 | [diff] [blame] | 957 | {"name": "compute", "type": "programmable stage descriptor"} |
Corentin Wallez | 29ced28 | 2017-07-14 10:58:07 -0400 | [diff] [blame] | 958 | ] |
| 959 | }, |
Yan | 483bead | 2021-12-14 04:51:45 +0000 | [diff] [blame] | 960 | "alpha mode": { |
| 961 | "category": "enum", |
| 962 | "tags": ["dawn"], |
| 963 | "values": [ |
| 964 | {"value": 0, "name": "premultiplied"}, |
shrekshao | a3f4a32 | 2022-07-11 18:11:14 +0000 | [diff] [blame] | 965 | {"value": 1, "name": "unpremultiplied"}, |
| 966 | {"value": 2, "name": "opaque"} |
Yan | 483bead | 2021-12-14 04:51:45 +0000 | [diff] [blame] | 967 | ] |
| 968 | }, |
Yan, Shaobo | bb913a9 | 2020-12-02 08:13:09 +0000 | [diff] [blame] | 969 | "copy texture for browser options": { |
| 970 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 971 | "extensible": "in", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 972 | "tags": ["dawn"], |
Yan, Shaobo | bb913a9 | 2020-12-02 08:13:09 +0000 | [diff] [blame] | 973 | "members": [ |
Yan | 483bead | 2021-12-14 04:51:45 +0000 | [diff] [blame] | 974 | {"name": "flip y", "type": "bool", "default": "false"}, |
Yan | 483bead | 2021-12-14 04:51:45 +0000 | [diff] [blame] | 975 | {"name": "needs color space conversion", "type": "bool", "default": "false"}, |
| 976 | {"name": "src alpha mode", "type": "alpha mode", "default": "unpremultiplied"}, |
Yan | 483bead | 2021-12-14 04:51:45 +0000 | [diff] [blame] | 977 | {"name": "src transfer function parameters", "type": "float", "annotation": "const*", |
Yan | 5204053 | 2021-12-15 04:08:56 +0000 | [diff] [blame] | 978 | "length": 7, "optional": true}, |
Yan | 483bead | 2021-12-14 04:51:45 +0000 | [diff] [blame] | 979 | {"name": "conversion matrix", "type": "float", "annotation": "const*", |
Yan | 5204053 | 2021-12-15 04:08:56 +0000 | [diff] [blame] | 980 | "length": 9, "optional": true}, |
Yan | 483bead | 2021-12-14 04:51:45 +0000 | [diff] [blame] | 981 | {"name": "dst transfer function parameters", "type": "float", "annotation": "const*", |
Yan | 5204053 | 2021-12-15 04:08:56 +0000 | [diff] [blame] | 982 | "length": 7, "optional": true}, |
shrekshao | c6cbcdb | 2022-07-11 18:11:14 +0000 | [diff] [blame] | 983 | {"name": "dst alpha mode", "type": "alpha mode", "default": "unpremultiplied"}, |
| 984 | {"name": "internal usage", "type": "bool", "default": "false"} |
Yan, Shaobo | bb913a9 | 2020-12-02 08:13:09 +0000 | [diff] [blame] | 985 | ] |
| 986 | }, |
Corentin Wallez | 2d3c2e3 | 2021-02-22 18:27:36 +0000 | [diff] [blame] | 987 | "create compute pipeline async callback": { |
fujunwei | 23f7162 | 2021-12-02 07:41:21 +0000 | [diff] [blame] | 988 | "category": "function pointer", |
Jiawei Shao | ae5f950 | 2020-10-19 01:56:08 +0000 | [diff] [blame] | 989 | "args": [ |
Corentin Wallez | 2d3c2e3 | 2021-02-22 18:27:36 +0000 | [diff] [blame] | 990 | {"name": "status", "type": "create pipeline async status"}, |
Henry Betts | 5ad86f3 | 2023-07-11 09:48:38 +0000 | [diff] [blame] | 991 | {"name": "pipeline", "type": "compute pipeline", "optional": true}, |
| 992 | {"name": "message", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 993 | {"name": "userdata", "type": "void *"} |
Jiawei Shao | ae5f950 | 2020-10-19 01:56:08 +0000 | [diff] [blame] | 994 | ] |
| 995 | }, |
Corentin Wallez | 2d3c2e3 | 2021-02-22 18:27:36 +0000 | [diff] [blame] | 996 | "create pipeline async status": { |
Jiawei Shao | ae5f950 | 2020-10-19 01:56:08 +0000 | [diff] [blame] | 997 | "category": "enum", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 998 | "emscripten_no_enum_table": true, |
Jiawei Shao | ae5f950 | 2020-10-19 01:56:08 +0000 | [diff] [blame] | 999 | "values": [ |
| 1000 | {"value": 0, "name": "success"}, |
Corentin Wallez | e4b4c47 | 2023-02-08 19:36:53 +0000 | [diff] [blame] | 1001 | {"value": 1, "name": "validation error"}, |
| 1002 | {"value": 2, "name": "internal error"}, |
| 1003 | {"value": 3, "name": "device lost"}, |
| 1004 | {"value": 4, "name": "device destroyed"}, |
Corentin Wallez | c713005 | 2023-02-17 23:24:43 +0000 | [diff] [blame] | 1005 | {"value": 5, "name": "unknown"} |
Jiawei Shao | ae5f950 | 2020-10-19 01:56:08 +0000 | [diff] [blame] | 1006 | ] |
| 1007 | }, |
Corentin Wallez | 2d3c2e3 | 2021-02-22 18:27:36 +0000 | [diff] [blame] | 1008 | "create render pipeline async callback": { |
fujunwei | 23f7162 | 2021-12-02 07:41:21 +0000 | [diff] [blame] | 1009 | "category": "function pointer", |
Jiawei Shao | 03e1400 | 2020-10-21 04:37:41 +0000 | [diff] [blame] | 1010 | "args": [ |
Corentin Wallez | 2d3c2e3 | 2021-02-22 18:27:36 +0000 | [diff] [blame] | 1011 | {"name": "status", "type": "create pipeline async status"}, |
Henry Betts | 5ad86f3 | 2023-07-11 09:48:38 +0000 | [diff] [blame] | 1012 | {"name": "pipeline", "type": "render pipeline", "optional": true}, |
| 1013 | {"name": "message", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 1014 | {"name": "userdata", "type": "void *"} |
Jiawei Shao | 03e1400 | 2020-10-21 04:37:41 +0000 | [diff] [blame] | 1015 | ] |
| 1016 | }, |
Yunchao He | c33a8c1 | 2019-04-11 18:46:54 +0000 | [diff] [blame] | 1017 | "cull mode": { |
| 1018 | "category": "enum", |
| 1019 | "values": [ |
| 1020 | {"value": 0, "name": "none"}, |
| 1021 | {"value": 1, "name": "front"}, |
| 1022 | {"value": 2, "name": "back"} |
| 1023 | ] |
| 1024 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1025 | "device": { |
| 1026 | "category": "object", |
| 1027 | "methods": [ |
| 1028 | { |
Corentin Wallez | 6f9d21e | 2018-12-05 07:18:30 +0000 | [diff] [blame] | 1029 | "name": "create bind group", |
| 1030 | "returns": "bind group", |
| 1031 | "args": [ |
| 1032 | {"name": "descriptor", "type": "bind group descriptor", "annotation": "const*"} |
| 1033 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1034 | }, |
| 1035 | { |
Kai Ninomiya | 234becf | 2018-07-10 12:23:50 -0700 | [diff] [blame] | 1036 | "name": "create bind group layout", |
| 1037 | "returns": "bind group layout", |
| 1038 | "args": [ |
| 1039 | {"name": "descriptor", "type": "bind group layout descriptor", "annotation": "const*"} |
| 1040 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1041 | }, |
| 1042 | { |
Corentin Wallez | 82b6573 | 2018-08-22 15:37:29 +0200 | [diff] [blame] | 1043 | "name": "create buffer", |
| 1044 | "returns": "buffer", |
| 1045 | "args": [ |
| 1046 | {"name": "descriptor", "type": "buffer descriptor", "annotation": "const*"} |
| 1047 | ] |
| 1048 | }, |
| 1049 | { |
Austin Eng | cf1fdf4 | 2020-06-15 23:42:13 +0000 | [diff] [blame] | 1050 | "name": "create error buffer", |
| 1051 | "returns": "buffer", |
Jiawei Shao | 806c583 | 2022-11-23 02:06:11 +0000 | [diff] [blame] | 1052 | "tags": ["dawn"], |
| 1053 | "args": [ |
| 1054 | {"name": "descriptor", "type": "buffer descriptor", "annotation": "const*"} |
| 1055 | ] |
Austin Eng | cf1fdf4 | 2020-06-15 23:42:13 +0000 | [diff] [blame] | 1056 | }, |
| 1057 | { |
Corentin Wallez | e1f0d4e | 2019-02-15 12:54:08 +0000 | [diff] [blame] | 1058 | "name": "create command encoder", |
Corentin Wallez | 4b90c47 | 2019-07-10 20:43:13 +0000 | [diff] [blame] | 1059 | "returns": "command encoder", |
| 1060 | "args": [ |
| 1061 | {"name": "descriptor", "type": "command encoder descriptor", "annotation": "const*", "optional": true} |
| 1062 | ] |
Corentin Wallez | e1f0d4e | 2019-02-15 12:54:08 +0000 | [diff] [blame] | 1063 | }, |
| 1064 | { |
Corentin Wallez | 8e335a5 | 2018-08-27 23:12:56 +0200 | [diff] [blame] | 1065 | "name": "create compute pipeline", |
| 1066 | "returns": "compute pipeline", |
| 1067 | "args": [ |
| 1068 | {"name": "descriptor", "type": "compute pipeline descriptor", "annotation": "const*"} |
| 1069 | ] |
Corentin Wallez | 29ced28 | 2017-07-14 10:58:07 -0400 | [diff] [blame] | 1070 | }, |
| 1071 | { |
Corentin Wallez | 2d3c2e3 | 2021-02-22 18:27:36 +0000 | [diff] [blame] | 1072 | "name": "create compute pipeline async", |
Jiawei Shao | ae5f950 | 2020-10-19 01:56:08 +0000 | [diff] [blame] | 1073 | "returns": "void", |
| 1074 | "args": [ |
| 1075 | {"name": "descriptor", "type": "compute pipeline descriptor", "annotation": "const*"}, |
Corentin Wallez | e00c6bd | 2021-12-13 17:37:17 +0000 | [diff] [blame] | 1076 | {"name": "callback", "type": "create compute pipeline async callback"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 1077 | {"name": "userdata", "type": "void *"} |
Jiawei Shao | ae5f950 | 2020-10-19 01:56:08 +0000 | [diff] [blame] | 1078 | ] |
| 1079 | }, |
| 1080 | { |
Austin Eng | bffc966 | 2021-09-17 15:36:00 +0000 | [diff] [blame] | 1081 | "name": "create external texture", |
| 1082 | "returns": "external texture", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 1083 | "tags": ["dawn"], |
Austin Eng | bffc966 | 2021-09-17 15:36:00 +0000 | [diff] [blame] | 1084 | "args": [ |
| 1085 | {"name": "external texture descriptor", "type": "external texture descriptor", "annotation": "const*"} |
| 1086 | ] |
| 1087 | }, |
| 1088 | { |
Yan,Shaobo | 7ce3c2d | 2022-06-27 02:57:40 +0000 | [diff] [blame] | 1089 | "name": "create error external texture", |
| 1090 | "returns": "external texture", |
| 1091 | "tags": ["dawn"] |
| 1092 | }, |
| 1093 | { |
Kai Ninomiya | f53f98b | 2018-06-27 16:21:39 -0700 | [diff] [blame] | 1094 | "name": "create pipeline layout", |
| 1095 | "returns": "pipeline layout", |
| 1096 | "args": [ |
| 1097 | {"name": "descriptor", "type": "pipeline layout descriptor", "annotation": "const*"} |
| 1098 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1099 | }, |
| 1100 | { |
Corentin Wallez | 9585c46 | 2020-07-06 18:50:00 +0000 | [diff] [blame] | 1101 | "name": "create query set", |
| 1102 | "returns": "query set", |
| 1103 | "args": [ |
| 1104 | {"name": "descriptor", "type": "query set descriptor", "annotation": "const*"} |
| 1105 | ] |
| 1106 | }, |
| 1107 | { |
Corentin Wallez | 2d3c2e3 | 2021-02-22 18:27:36 +0000 | [diff] [blame] | 1108 | "name": "create render pipeline async", |
Jiawei Shao | 03e1400 | 2020-10-21 04:37:41 +0000 | [diff] [blame] | 1109 | "returns": "void", |
| 1110 | "args": [ |
Brandon Jones | 41c87d9 | 2021-05-21 05:01:38 +0000 | [diff] [blame] | 1111 | {"name": "descriptor", "type": "render pipeline descriptor", "annotation": "const*"}, |
Corentin Wallez | e00c6bd | 2021-12-13 17:37:17 +0000 | [diff] [blame] | 1112 | {"name": "callback", "type": "create render pipeline async callback"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 1113 | {"name": "userdata", "type": "void *"} |
Jiawei Shao | 03e1400 | 2020-10-21 04:37:41 +0000 | [diff] [blame] | 1114 | ] |
| 1115 | }, |
| 1116 | { |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 1117 | "name": "create render bundle encoder", |
| 1118 | "returns": "render bundle encoder", |
| 1119 | "args": [ |
| 1120 | {"name": "descriptor", "type": "render bundle encoder descriptor", "annotation": "const*"} |
| 1121 | ] |
| 1122 | }, |
| 1123 | { |
Corentin Wallez | 9585c46 | 2020-07-06 18:50:00 +0000 | [diff] [blame] | 1124 | "name": "create render pipeline", |
| 1125 | "returns": "render pipeline", |
| 1126 | "args": [ |
| 1127 | {"name": "descriptor", "type": "render pipeline descriptor", "annotation": "const*"} |
| 1128 | ] |
| 1129 | }, |
| 1130 | { |
Corentin Wallez | 1ae19e8 | 2018-05-17 17:09:07 -0400 | [diff] [blame] | 1131 | "name": "create sampler", |
| 1132 | "returns": "sampler", |
| 1133 | "args": [ |
shrekshao | b3177d4 | 2021-01-26 02:22:58 +0000 | [diff] [blame] | 1134 | {"name": "descriptor", "type": "sampler descriptor", "annotation": "const*", "optional": true} |
Corentin Wallez | 1ae19e8 | 2018-05-17 17:09:07 -0400 | [diff] [blame] | 1135 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1136 | }, |
| 1137 | { |
Corentin Wallez | df67103 | 2018-08-20 17:01:20 +0200 | [diff] [blame] | 1138 | "name": "create shader module", |
| 1139 | "returns": "shader module", |
| 1140 | "args": [ |
| 1141 | {"name": "descriptor", "type": "shader module descriptor", "annotation": "const*"} |
| 1142 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1143 | }, |
| 1144 | { |
Jiawei Shao | daffe42 | 2023-05-25 03:32:41 +0000 | [diff] [blame] | 1145 | "name": "create error shader module", |
| 1146 | "returns": "shader module", |
Corentin Wallez | 9433a8a | 2023-06-06 12:00:32 +0000 | [diff] [blame] | 1147 | "tags": ["dawn"], |
Jiawei Shao | daffe42 | 2023-05-25 03:32:41 +0000 | [diff] [blame] | 1148 | "args": [ |
| 1149 | {"name": "descriptor", "type": "shader module descriptor", "annotation": "const*"}, |
| 1150 | {"name": "error message", "type": "char", "annotation": "const*", "length": "strlen"} |
| 1151 | ] |
| 1152 | }, |
| 1153 | { |
Corentin Wallez | 7be2a71 | 2019-02-15 11:15:58 +0000 | [diff] [blame] | 1154 | "name": "create swap chain", |
dan sinclair | 3ebe5b6 | 2023-08-21 22:57:06 +0000 | [diff] [blame] | 1155 | "tags": ["dawn", "emscripten"], |
Corentin Wallez | 7477120 | 2022-05-23 15:44:29 +0000 | [diff] [blame] | 1156 | "returns": "swap chain", |
| 1157 | "args": [ |
| 1158 | {"name": "surface", "type": "surface"}, |
| 1159 | {"name": "descriptor", "type": "swap chain descriptor", "annotation": "const*"} |
| 1160 | ] |
| 1161 | }, |
| 1162 | { |
Jiawei Shao | 425428f | 2018-08-27 08:44:48 +0800 | [diff] [blame] | 1163 | "name": "create texture", |
| 1164 | "returns": "texture", |
| 1165 | "args": [ |
| 1166 | {"name": "descriptor", "type": "texture descriptor", "annotation": "const*"} |
| 1167 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1168 | }, |
| 1169 | { |
Austin Eng | 5a54d9e | 2023-08-04 13:49:24 +0000 | [diff] [blame] | 1170 | "name": "import shared texture memory", |
| 1171 | "returns": "shared texture memory", |
| 1172 | "tags": ["dawn", "native"], |
| 1173 | "args": [ |
| 1174 | {"name": "descriptor", "type": "shared texture memory descriptor", "annotation": "const*"} |
| 1175 | ] |
| 1176 | }, |
| 1177 | { |
| 1178 | "name": "import shared fence", |
| 1179 | "returns": "shared fence", |
| 1180 | "tags": ["dawn", "native"], |
| 1181 | "args": [ |
| 1182 | {"name": "descriptor", "type": "shared fence descriptor", "annotation": "const*"} |
| 1183 | ] |
| 1184 | }, |
| 1185 | { |
Corentin Wallez | 256e026 | 2022-07-20 16:07:44 +0000 | [diff] [blame] | 1186 | "name": "create error texture", |
| 1187 | "returns": "texture", |
| 1188 | "tags": ["dawn"], |
| 1189 | "args": [ |
| 1190 | {"name": "descriptor", "type": "texture descriptor", "annotation": "const*"} |
| 1191 | ] |
| 1192 | }, |
| 1193 | { |
Loko Kung | 2494c9b | 2021-12-01 17:55:30 +0000 | [diff] [blame] | 1194 | "name": "destroy" |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 1195 | }, |
| 1196 | { |
Austin Eng | bffc966 | 2021-09-17 15:36:00 +0000 | [diff] [blame] | 1197 | "name": "get limits", |
| 1198 | "returns": "bool", |
| 1199 | "args": [ |
| 1200 | {"name": "limits", "type": "supported limits", "annotation": "*"} |
| 1201 | ] |
Corentin Wallez | 6d315da | 2021-02-04 15:33:42 +0000 | [diff] [blame] | 1202 | }, |
| 1203 | { |
Austin Eng | 89ddadc | 2021-12-15 00:12:30 +0000 | [diff] [blame] | 1204 | "name": "has feature", |
| 1205 | "returns": "bool", |
| 1206 | "args": [ |
| 1207 | {"name": "feature", "type": "feature name"} |
| 1208 | ] |
| 1209 | }, |
| 1210 | { |
Austin Eng | 89ddadc | 2021-12-15 00:12:30 +0000 | [diff] [blame] | 1211 | "name": "enumerate features", |
Austin Eng | 3ac7b9c | 2022-01-06 22:11:28 +0000 | [diff] [blame] | 1212 | "returns": "size_t", |
Austin Eng | 89ddadc | 2021-12-15 00:12:30 +0000 | [diff] [blame] | 1213 | "args": [ |
| 1214 | {"name": "features", "type": "feature name", "annotation": "*"} |
| 1215 | ] |
| 1216 | }, |
| 1217 | { |
Austin Eng | bf32435 | 2022-08-18 18:02:00 +0000 | [diff] [blame] | 1218 | "name": "get adapter", |
| 1219 | "returns": "adapter", |
Austin Eng | a2b9558 | 2023-07-13 07:18:34 +0000 | [diff] [blame] | 1220 | "tags": ["dawn", "native"] |
Austin Eng | bf32435 | 2022-08-18 18:02:00 +0000 | [diff] [blame] | 1221 | }, |
| 1222 | { |
Austin Eng | bffc966 | 2021-09-17 15:36:00 +0000 | [diff] [blame] | 1223 | "name": "get queue", |
| 1224 | "returns": "queue" |
Brandon Jones | 0e92e9b | 2021-04-01 20:46:42 +0000 | [diff] [blame] | 1225 | }, |
| 1226 | { |
Austin Eng | e06f01b | 2019-09-30 22:50:59 +0000 | [diff] [blame] | 1227 | "name": "inject error", |
| 1228 | "args": [ |
| 1229 | {"name": "type", "type": "error type"}, |
Austin Eng | 867f720 | 2019-10-02 06:35:38 +0000 | [diff] [blame] | 1230 | {"name": "message", "type": "char", "annotation": "const*", "length": "strlen"} |
Austin Eng | e06f01b | 2019-09-30 22:50:59 +0000 | [diff] [blame] | 1231 | ], |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 1232 | "tags": ["dawn"] |
Austin Eng | e06f01b | 2019-09-30 22:50:59 +0000 | [diff] [blame] | 1233 | }, |
| 1234 | { |
Loko Kung | 3a53edc | 2022-08-29 22:33:50 +0000 | [diff] [blame] | 1235 | "name": "force loss", |
| 1236 | "args": [ |
| 1237 | {"name": "type", "type": "device lost reason"}, |
| 1238 | {"name": "message", "type": "char", "annotation": "const*", "length": "strlen"} |
| 1239 | ], |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 1240 | "tags": ["dawn"] |
Natasha Lee | 0ecc48e | 2020-01-15 19:02:13 +0000 | [diff] [blame] | 1241 | }, |
| 1242 | { |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 1243 | "name": "tick", |
Le Hoang Quyen | 7971bfe | 2023-04-05 19:35:07 +0000 | [diff] [blame] | 1244 | "no autolock": true, |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 1245 | "tags": ["dawn"] |
Corentin Wallez | dbb5729 | 2017-06-14 13:33:45 -0400 | [diff] [blame] | 1246 | }, |
| 1247 | { |
Austin Eng | 45ea7e6 | 2019-08-27 21:43:56 +0000 | [diff] [blame] | 1248 | "name": "set uncaptured error callback", |
Le Hoang Quyen | 7971bfe | 2023-04-05 19:35:07 +0000 | [diff] [blame] | 1249 | "no autolock": true, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1250 | "args": [ |
Corentin Wallez | e00c6bd | 2021-12-13 17:37:17 +0000 | [diff] [blame] | 1251 | {"name": "callback", "type": "error callback"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 1252 | {"name": "userdata", "type": "void *"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1253 | ] |
Austin Eng | 45238d7 | 2019-09-04 22:54:03 +0000 | [diff] [blame] | 1254 | }, |
| 1255 | { |
Zhaoming Jiang | b44000e | 2021-06-04 07:10:56 +0000 | [diff] [blame] | 1256 | "name": "set logging callback", |
Le Hoang Quyen | 7971bfe | 2023-04-05 19:35:07 +0000 | [diff] [blame] | 1257 | "no autolock": true, |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 1258 | "tags": ["dawn"], |
Zhaoming Jiang | b44000e | 2021-06-04 07:10:56 +0000 | [diff] [blame] | 1259 | "args": [ |
Corentin Wallez | e00c6bd | 2021-12-13 17:37:17 +0000 | [diff] [blame] | 1260 | {"name": "callback", "type": "logging callback"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 1261 | {"name": "userdata", "type": "void *"} |
Zhaoming Jiang | b44000e | 2021-06-04 07:10:56 +0000 | [diff] [blame] | 1262 | ] |
| 1263 | }, |
| 1264 | { |
Natasha Lee | 9bba4a9 | 2019-12-18 18:59:20 +0000 | [diff] [blame] | 1265 | "name": "set device lost callback", |
Le Hoang Quyen | 7971bfe | 2023-04-05 19:35:07 +0000 | [diff] [blame] | 1266 | "no autolock": true, |
Brandon Jones | 112b7fd | 2023-05-17 01:52:30 +0000 | [diff] [blame] | 1267 | "tags": ["deprecated"], |
Natasha Lee | 9bba4a9 | 2019-12-18 18:59:20 +0000 | [diff] [blame] | 1268 | "args": [ |
Corentin Wallez | e00c6bd | 2021-12-13 17:37:17 +0000 | [diff] [blame] | 1269 | {"name": "callback", "type": "device lost callback"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 1270 | {"name": "userdata", "type": "void *"} |
Natasha Lee | 9bba4a9 | 2019-12-18 18:59:20 +0000 | [diff] [blame] | 1271 | ] |
| 1272 | }, |
| 1273 | { |
Austin Eng | 45238d7 | 2019-09-04 22:54:03 +0000 | [diff] [blame] | 1274 | "name": "push error scope", |
| 1275 | "args": [ |
| 1276 | {"name": "filter", "type": "error filter"} |
| 1277 | ] |
| 1278 | }, |
| 1279 | { |
| 1280 | "name": "pop error scope", |
Austin Eng | 45238d7 | 2019-09-04 22:54:03 +0000 | [diff] [blame] | 1281 | "args": [ |
Corentin Wallez | e00c6bd | 2021-12-13 17:37:17 +0000 | [diff] [blame] | 1282 | {"name": "callback", "type": "error callback"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 1283 | {"name": "userdata", "type": "void *"} |
Austin Eng | 45238d7 | 2019-09-04 22:54:03 +0000 | [diff] [blame] | 1284 | ] |
Brandon Jones | 8085367 | 2022-04-12 03:28:40 +0000 | [diff] [blame] | 1285 | }, |
| 1286 | { |
| 1287 | "name": "set label", |
| 1288 | "returns": "void", |
| 1289 | "args": [ |
| 1290 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 1291 | ] |
Corentin Wallez | 0963142 | 2023-01-10 15:17:26 +0000 | [diff] [blame] | 1292 | }, |
| 1293 | { |
| 1294 | "name": "validate texture descriptor", |
| 1295 | "tags": ["dawn"], |
| 1296 | "args": [ |
| 1297 | {"name": "descriptor", "type": "texture descriptor", "annotation": "const*"} |
| 1298 | ] |
Le Hoang Quyen | 3355731 | 2023-04-20 20:42:05 +0000 | [diff] [blame] | 1299 | }, |
| 1300 | { |
| 1301 | "name": "get supported surface usage", |
Austin Eng | a2b9558 | 2023-07-13 07:18:34 +0000 | [diff] [blame] | 1302 | "tags": ["dawn", "native"], |
Le Hoang Quyen | 3355731 | 2023-04-20 20:42:05 +0000 | [diff] [blame] | 1303 | "returns": "texture usage", |
| 1304 | "args": [ |
| 1305 | {"name": "surface", "type": "surface"} |
| 1306 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1307 | } |
| 1308 | ] |
| 1309 | }, |
Natasha Lee | 9bba4a9 | 2019-12-18 18:59:20 +0000 | [diff] [blame] | 1310 | "device lost callback": { |
fujunwei | 23f7162 | 2021-12-02 07:41:21 +0000 | [diff] [blame] | 1311 | "category": "function pointer", |
Corentin Wallez | 13e2e13 | 2020-01-25 09:30:40 +0000 | [diff] [blame] | 1312 | "args": [ |
Kai Ninomiya | 51791e0 | 2021-09-28 11:52:17 +0000 | [diff] [blame] | 1313 | {"name": "reason", "type": "device lost reason"}, |
Henry Betts | 5ad86f3 | 2023-07-11 09:48:38 +0000 | [diff] [blame] | 1314 | {"name": "message", "type": "char", "annotation": "const*", "length": "strlen"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 1315 | {"name": "userdata", "type": "void *"} |
Natasha Lee | 9bba4a9 | 2019-12-18 18:59:20 +0000 | [diff] [blame] | 1316 | ] |
| 1317 | }, |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 1318 | "device lost reason": { |
| 1319 | "category": "enum", |
| 1320 | "emscripten_no_enum_table": true, |
| 1321 | "values": [ |
Kai Ninomiya | 51791e0 | 2021-09-28 11:52:17 +0000 | [diff] [blame] | 1322 | {"value": 0, "name": "undefined", "jsrepr": "undefined"}, |
| 1323 | {"value": 1, "name": "destroyed"} |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 1324 | ] |
| 1325 | }, |
Brandon Jones | 670858d | 2020-09-22 16:51:36 +0000 | [diff] [blame] | 1326 | "double": { |
| 1327 | "category": "native" |
| 1328 | }, |
Austin Eng | cb0cb65 | 2019-08-27 21:41:56 +0000 | [diff] [blame] | 1329 | "error callback": { |
fujunwei | 23f7162 | 2021-12-02 07:41:21 +0000 | [diff] [blame] | 1330 | "category": "function pointer", |
Corentin Wallez | 540abab | 2019-11-22 13:18:22 +0000 | [diff] [blame] | 1331 | "args": [ |
| 1332 | {"name": "type", "type": "error type"}, |
Henry Betts | 5ad86f3 | 2023-07-11 09:48:38 +0000 | [diff] [blame] | 1333 | {"name": "message", "type": "char", "annotation": "const*", "length": "strlen"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 1334 | {"name": "userdata", "type": "void *"} |
Corentin Wallez | 540abab | 2019-11-22 13:18:22 +0000 | [diff] [blame] | 1335 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1336 | }, |
Austin Eng | 02fbf16 | 2021-09-13 18:49:09 +0000 | [diff] [blame] | 1337 | "limits": { |
| 1338 | "category": "structure", |
Austin Eng | 02fbf16 | 2021-09-13 18:49:09 +0000 | [diff] [blame] | 1339 | "members": [ |
| 1340 | {"name": "max texture dimension 1D", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1341 | {"name": "max texture dimension 2D", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1342 | {"name": "max texture dimension 3D", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1343 | {"name": "max texture array layers", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1344 | {"name": "max bind groups", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
Yunchao He | f3cac0d | 2023-06-28 15:54:24 +0000 | [diff] [blame] | 1345 | {"name": "max bind groups plus vertex buffers", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
Brandon Jones | 773800b | 2022-09-21 17:42:24 +0000 | [diff] [blame] | 1346 | {"name": "max bindings per bind group", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
Austin Eng | 02fbf16 | 2021-09-13 18:49:09 +0000 | [diff] [blame] | 1347 | {"name": "max dynamic uniform buffers per pipeline layout", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1348 | {"name": "max dynamic storage buffers per pipeline layout", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1349 | {"name": "max sampled textures per shader stage", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1350 | {"name": "max samplers per shader stage", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1351 | {"name": "max storage buffers per shader stage", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1352 | {"name": "max storage textures per shader stage", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1353 | {"name": "max uniform buffers per shader stage", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1354 | {"name": "max uniform buffer binding size", "type": "uint64_t", "default": "WGPU_LIMIT_U64_UNDEFINED"}, |
| 1355 | {"name": "max storage buffer binding size", "type": "uint64_t", "default": "WGPU_LIMIT_U64_UNDEFINED"}, |
| 1356 | {"name": "min uniform buffer offset alignment", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1357 | {"name": "min storage buffer offset alignment", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1358 | {"name": "max vertex buffers", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
shrekshao | d1a5f93 | 2022-09-29 19:02:11 +0000 | [diff] [blame] | 1359 | {"name": "max buffer size", "type": "uint64_t", "default": "WGPU_LIMIT_U64_UNDEFINED"}, |
Austin Eng | 02fbf16 | 2021-09-13 18:49:09 +0000 | [diff] [blame] | 1360 | {"name": "max vertex attributes", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1361 | {"name": "max vertex buffer array stride", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1362 | {"name": "max inter stage shader components", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
Brandon Jones | 431c7a4 | 2022-06-24 17:30:29 +0000 | [diff] [blame] | 1363 | {"name": "max inter stage shader variables", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
Austin Eng | cda3d7b | 2022-06-13 16:48:45 +0000 | [diff] [blame] | 1364 | {"name": "max color attachments", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
Loko Kung | e70563a | 2022-12-12 20:55:05 +0000 | [diff] [blame] | 1365 | {"name": "max color attachment bytes per sample", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
Austin Eng | 02fbf16 | 2021-09-13 18:49:09 +0000 | [diff] [blame] | 1366 | {"name": "max compute workgroup storage size", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1367 | {"name": "max compute invocations per workgroup", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1368 | {"name": "max compute workgroup size x", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1369 | {"name": "max compute workgroup size y", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
| 1370 | {"name": "max compute workgroup size z", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
Loko Kung | d2aaf76 | 2023-04-25 22:46:23 +0000 | [diff] [blame] | 1371 | {"name": "max compute workgroups per dimension", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"} |
Austin Eng | 02fbf16 | 2021-09-13 18:49:09 +0000 | [diff] [blame] | 1372 | ] |
| 1373 | }, |
Austin Eng | bffc966 | 2021-09-17 15:36:00 +0000 | [diff] [blame] | 1374 | "required limits": { |
| 1375 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 1376 | "extensible": "in", |
Austin Eng | bffc966 | 2021-09-17 15:36:00 +0000 | [diff] [blame] | 1377 | "members": [ |
| 1378 | {"name": "limits", "type": "limits"} |
| 1379 | ] |
| 1380 | }, |
| 1381 | "supported limits": { |
| 1382 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 1383 | "extensible": "out", |
Austin Eng | bffc966 | 2021-09-17 15:36:00 +0000 | [diff] [blame] | 1384 | "members": [ |
| 1385 | {"name": "limits", "type": "limits"} |
| 1386 | ] |
| 1387 | }, |
Zhaoming Jiang | b44000e | 2021-06-04 07:10:56 +0000 | [diff] [blame] | 1388 | "logging callback": { |
fujunwei | 23f7162 | 2021-12-02 07:41:21 +0000 | [diff] [blame] | 1389 | "category": "function pointer", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 1390 | "tags": ["dawn"], |
Zhaoming Jiang | b44000e | 2021-06-04 07:10:56 +0000 | [diff] [blame] | 1391 | "args": [ |
| 1392 | {"name": "type", "type": "logging type"}, |
Henry Betts | 5ad86f3 | 2023-07-11 09:48:38 +0000 | [diff] [blame] | 1393 | {"name": "message", "type": "char", "annotation": "const*", "length": "strlen"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 1394 | {"name": "userdata", "type": "void *"} |
Zhaoming Jiang | b44000e | 2021-06-04 07:10:56 +0000 | [diff] [blame] | 1395 | ] |
| 1396 | }, |
Austin Eng | 45238d7 | 2019-09-04 22:54:03 +0000 | [diff] [blame] | 1397 | "error filter": { |
| 1398 | "category": "enum", |
| 1399 | "values": [ |
Zhaoming Jiang | 53137bd | 2021-12-08 02:42:17 +0000 | [diff] [blame] | 1400 | {"value": 0, "name": "validation"}, |
Brandon Jones | 567f068 | 2022-09-07 14:14:14 +0000 | [diff] [blame] | 1401 | {"value": 1, "name": "out of memory"}, |
| 1402 | {"value": 2, "name": "internal"} |
Austin Eng | 45238d7 | 2019-09-04 22:54:03 +0000 | [diff] [blame] | 1403 | ] |
| 1404 | }, |
Austin Eng | cb0cb65 | 2019-08-27 21:41:56 +0000 | [diff] [blame] | 1405 | "error type": { |
| 1406 | "category": "enum", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 1407 | "emscripten_no_enum_table": true, |
Austin Eng | cb0cb65 | 2019-08-27 21:41:56 +0000 | [diff] [blame] | 1408 | "values": [ |
| 1409 | {"value": 0, "name": "no error"}, |
| 1410 | {"value": 1, "name": "validation"}, |
| 1411 | {"value": 2, "name": "out of memory"}, |
Brandon Jones | 567f068 | 2022-09-07 14:14:14 +0000 | [diff] [blame] | 1412 | {"value": 3, "name": "internal"}, |
| 1413 | {"value": 4, "name": "unknown"}, |
| 1414 | {"value": 5, "name": "device lost"} |
Austin Eng | cb0cb65 | 2019-08-27 21:41:56 +0000 | [diff] [blame] | 1415 | ] |
| 1416 | }, |
Zhaoming Jiang | b44000e | 2021-06-04 07:10:56 +0000 | [diff] [blame] | 1417 | "logging type": { |
| 1418 | "category": "enum", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 1419 | "tags": ["dawn"], |
Zhaoming Jiang | b44000e | 2021-06-04 07:10:56 +0000 | [diff] [blame] | 1420 | "values": [ |
| 1421 | {"value": 0, "name": "verbose"}, |
| 1422 | {"value": 1, "name": "info"}, |
| 1423 | {"value": 2, "name": "warning"}, |
| 1424 | {"value": 3, "name": "error"} |
| 1425 | ] |
| 1426 | }, |
Yan,Shaobo | 96a0bd5 | 2022-10-24 04:19:43 +0000 | [diff] [blame] | 1427 | "extent 2D": { |
| 1428 | "category": "structure", |
Yan,Shaobo | e8dd681 | 2022-11-03 09:03:01 +0000 | [diff] [blame] | 1429 | "tags": ["dawn"], |
Yan,Shaobo | 96a0bd5 | 2022-10-24 04:19:43 +0000 | [diff] [blame] | 1430 | "members": [ |
Yan,Shaobo | 2b228f35 | 2023-07-28 02:18:04 +0000 | [diff] [blame] | 1431 | {"name": "width", "type": "uint32_t"}, |
| 1432 | {"name": "height", "type": "uint32_t"} |
Yan,Shaobo | 96a0bd5 | 2022-10-24 04:19:43 +0000 | [diff] [blame] | 1433 | ] |
| 1434 | }, |
Corentin Wallez | 29353d6 | 2018-09-18 12:49:22 +0000 | [diff] [blame] | 1435 | "extent 3D": { |
| 1436 | "category": "structure", |
| 1437 | "members": [ |
Corentin Wallez | a736d96 | 2021-03-04 17:03:15 +0000 | [diff] [blame] | 1438 | {"name": "width", "type": "uint32_t"}, |
Corentin Wallez | 2931c42 | 2020-10-16 14:20:06 +0000 | [diff] [blame] | 1439 | {"name": "height", "type": "uint32_t", "default": 1}, |
Brandon Jones | 76e5a9f | 2021-05-13 17:51:23 +0000 | [diff] [blame] | 1440 | {"name": "depth or array layers", "type": "uint32_t", "default": 1} |
Corentin Wallez | 29353d6 | 2018-09-18 12:49:22 +0000 | [diff] [blame] | 1441 | ] |
| 1442 | }, |
Brandon Jones | 0e92e9b | 2021-04-01 20:46:42 +0000 | [diff] [blame] | 1443 | "external texture": { |
| 1444 | "category": "object", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 1445 | "tags": ["dawn"], |
Brandon Jones | 0e92e9b | 2021-04-01 20:46:42 +0000 | [diff] [blame] | 1446 | "methods": [ |
| 1447 | { |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 1448 | "name": "set label", |
| 1449 | "returns": "void", |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 1450 | "args": [ |
| 1451 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 1452 | ] |
| 1453 | }, |
| 1454 | { |
Brandon Jones | 0e92e9b | 2021-04-01 20:46:42 +0000 | [diff] [blame] | 1455 | "name": "destroy", |
| 1456 | "returns": "void" |
Yan,Shaobo | e958db0 | 2023-02-24 02:09:38 +0000 | [diff] [blame] | 1457 | }, |
| 1458 | { |
| 1459 | "name": "expire", |
| 1460 | "returns": "void" |
| 1461 | }, |
| 1462 | { |
| 1463 | "name": "refresh", |
| 1464 | "returns": "void" |
Brandon Jones | 0e92e9b | 2021-04-01 20:46:42 +0000 | [diff] [blame] | 1465 | } |
| 1466 | ] |
| 1467 | }, |
Brandon Jones | 85ceb08 | 2022-11-30 21:32:26 +0000 | [diff] [blame] | 1468 | "external texture rotation":{ |
| 1469 | "category": "enum", |
| 1470 | "tags": ["dawn"], |
| 1471 | "values": [ |
| 1472 | {"value": 0, "name": "rotate 0 degrees"}, |
| 1473 | {"value": 1, "name": "rotate 90 degrees"}, |
| 1474 | {"value": 2, "name": "rotate 180 degrees"}, |
| 1475 | {"value": 3, "name": "rotate 270 degrees"} |
| 1476 | ] |
| 1477 | }, |
Brandon Jones | 0e92e9b | 2021-04-01 20:46:42 +0000 | [diff] [blame] | 1478 | "external texture descriptor": { |
| 1479 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 1480 | "extensible": "in", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 1481 | "tags": ["dawn"], |
Brandon Jones | 0e92e9b | 2021-04-01 20:46:42 +0000 | [diff] [blame] | 1482 | "members": [ |
Corentin Wallez | d85bbb6 | 2021-10-01 15:34:25 +0000 | [diff] [blame] | 1483 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Brandon Jones | 0e92e9b | 2021-04-01 20:46:42 +0000 | [diff] [blame] | 1484 | {"name": "plane 0", "type": "texture view"}, |
Brandon Jones | 37b3df4 | 2022-01-25 18:09:00 +0000 | [diff] [blame] | 1485 | {"name": "plane 1", "type": "texture view", "optional": true}, |
Yan,Shaobo | e8dd681 | 2022-11-03 09:03:01 +0000 | [diff] [blame] | 1486 | {"name": "visible origin", "type": "origin 2D"}, |
| 1487 | {"name": "visible size", "type": "extent 2D"}, |
jchen10 | ef62b58 | 2022-06-22 03:14:26 +0000 | [diff] [blame] | 1488 | {"name": "do yuv to rgb conversion only", "type": "bool", "default": "false"}, |
Brandon Jones | cf4a85e | 2022-05-02 20:37:28 +0000 | [diff] [blame] | 1489 | {"name": "yuv to rgb conversion matrix", "type": "float", "annotation": "const*", |
Brandon Jones | 136a0a4 | 2022-05-24 01:41:43 +0000 | [diff] [blame] | 1490 | "length": 12, "optional": true}, |
Brandon Jones | cf4a85e | 2022-05-02 20:37:28 +0000 | [diff] [blame] | 1491 | {"name": "src transfer function parameters", "type": "float", "annotation": "const*", |
Brandon Jones | e61a390b | 2022-05-19 17:44:29 +0000 | [diff] [blame] | 1492 | "length": 7}, |
Brandon Jones | cf4a85e | 2022-05-02 20:37:28 +0000 | [diff] [blame] | 1493 | {"name": "dst transfer function parameters", "type": "float", "annotation": "const*", |
Brandon Jones | e61a390b | 2022-05-19 17:44:29 +0000 | [diff] [blame] | 1494 | "length": 7}, |
Brandon Jones | cf4a85e | 2022-05-02 20:37:28 +0000 | [diff] [blame] | 1495 | {"name": "gamut conversion matrix", "type": "float", "annotation": "const*", |
Brandon Jones | 85ceb08 | 2022-11-30 21:32:26 +0000 | [diff] [blame] | 1496 | "length": 9}, |
| 1497 | {"name": "flip y", "type": "bool", "default": "false"}, |
Brandon Jones | 713cd86 | 2023-01-04 21:27:32 +0000 | [diff] [blame] | 1498 | {"name": "rotation", "type": "external texture rotation", "default": "rotate 0 degrees"} |
Brandon Jones | 0e92e9b | 2021-04-01 20:46:42 +0000 | [diff] [blame] | 1499 | ] |
| 1500 | }, |
Austin Eng | 5a54d9e | 2023-08-04 13:49:24 +0000 | [diff] [blame] | 1501 | "shared texture memory": { |
| 1502 | "category": "object", |
| 1503 | "tags": ["dawn", "native"], |
| 1504 | "methods": [ |
| 1505 | { |
| 1506 | "name": "set label", |
| 1507 | "returns": "void", |
| 1508 | "args": [ |
| 1509 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 1510 | ] |
| 1511 | }, |
| 1512 | { |
| 1513 | "name": "get properties", |
| 1514 | "returns": "void", |
| 1515 | "args": [ |
| 1516 | {"name": "properties", "type": "shared texture memory properties", "annotation": "*"} |
| 1517 | ] |
| 1518 | }, |
| 1519 | { |
| 1520 | "name": "create texture", |
| 1521 | "returns": "texture", |
| 1522 | "args": [ |
Austin Eng | 17a8b4e | 2023-08-19 00:19:51 +0000 | [diff] [blame] | 1523 | {"name": "descriptor", "type": "texture descriptor", "annotation": "const*", "optional": true, "default": "nullptr"} |
Austin Eng | 5a54d9e | 2023-08-04 13:49:24 +0000 | [diff] [blame] | 1524 | ] |
| 1525 | }, |
| 1526 | { |
| 1527 | "name": "begin access", |
Austin Eng | b585e7b | 2023-08-31 03:39:42 +0000 | [diff] [blame] | 1528 | "returns": "bool", |
Austin Eng | 5a54d9e | 2023-08-04 13:49:24 +0000 | [diff] [blame] | 1529 | "args": [ |
| 1530 | {"name": "texture", "type": "texture"}, |
| 1531 | {"name": "descriptor", "type": "shared texture memory begin access descriptor", "annotation": "const*"} |
| 1532 | ] |
| 1533 | }, |
| 1534 | { |
| 1535 | "name": "end access", |
Austin Eng | b585e7b | 2023-08-31 03:39:42 +0000 | [diff] [blame] | 1536 | "returns": "bool", |
Austin Eng | 5a54d9e | 2023-08-04 13:49:24 +0000 | [diff] [blame] | 1537 | "args": [ |
| 1538 | {"name": "texture", "type": "texture"}, |
| 1539 | {"name": "descriptor", "type": "shared texture memory end access state", "annotation": "*"} |
| 1540 | ] |
| 1541 | } |
| 1542 | ] |
| 1543 | }, |
| 1544 | "shared texture memory properties": { |
| 1545 | "category": "structure", |
| 1546 | "extensible": "out", |
| 1547 | "tags": ["dawn", "native"], |
| 1548 | "members": [ |
| 1549 | {"name": "usage", "type": "texture usage"}, |
| 1550 | {"name": "size", "type": "extent 3D"}, |
| 1551 | {"name": "format", "type": "texture format"} |
| 1552 | ] |
| 1553 | }, |
| 1554 | "shared texture memory descriptor": { |
| 1555 | "category": "structure", |
| 1556 | "extensible": "in", |
| 1557 | "tags": ["dawn", "native"], |
| 1558 | "members": [ |
| 1559 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true} |
| 1560 | ] |
| 1561 | }, |
| 1562 | "shared texture memory vk image descriptor": { |
| 1563 | "category": "structure", |
| 1564 | "chained": "in", |
| 1565 | "chain roots": ["shared texture memory descriptor"], |
| 1566 | "tags": ["dawn", "native"], |
| 1567 | "members": [ |
| 1568 | {"name": "vk format", "type": "int32_t"}, |
| 1569 | {"name": "vk usage flags", "type": "int32_t"}, |
| 1570 | {"name": "vk extent 3D", "type": "extent 3D"} |
| 1571 | ] |
| 1572 | }, |
| 1573 | "shared texture memory vk dedicated allocation descriptor": { |
| 1574 | "category": "structure", |
| 1575 | "chained": "in", |
| 1576 | "chain roots": ["shared texture memory descriptor"], |
| 1577 | "tags": ["dawn", "native"], |
| 1578 | "members": [ |
| 1579 | {"name": "dedicated allocation", "type": "bool"} |
| 1580 | ] |
| 1581 | }, |
| 1582 | "shared texture memory a hardware buffer descriptor": { |
| 1583 | "category": "structure", |
| 1584 | "chained": "in", |
| 1585 | "chain roots": ["shared texture memory descriptor"], |
| 1586 | "tags": ["dawn", "native"], |
| 1587 | "members": [ |
| 1588 | {"name": "handle", "type": "void *"} |
| 1589 | ] |
| 1590 | }, |
| 1591 | "shared texture memory dma buf descriptor": { |
| 1592 | "category": "structure", |
| 1593 | "chained": "in", |
| 1594 | "chain roots": ["shared texture memory descriptor"], |
| 1595 | "tags": ["dawn", "native"], |
| 1596 | "members": [ |
| 1597 | {"name": "memory FD", "type": "int"}, |
| 1598 | {"name": "allocation size", "type": "uint64_t"}, |
| 1599 | {"name": "drm modifier", "type": "uint64_t"}, |
| 1600 | {"name": "plane count", "type": "size_t"}, |
| 1601 | {"name": "plane offsets", "type": "uint64_t", "annotation": "const*", "length": "plane count"}, |
| 1602 | {"name": "plane strides", "type": "uint32_t", "annotation": "const*", "length": "plane count"} |
| 1603 | ] |
| 1604 | }, |
| 1605 | "shared texture memory opaque FD descriptor": { |
| 1606 | "category": "structure", |
| 1607 | "chained": "in", |
| 1608 | "chain roots": ["shared texture memory descriptor"], |
| 1609 | "tags": ["dawn", "native"], |
| 1610 | "members": [ |
| 1611 | {"name": "memory FD", "type": "int"}, |
| 1612 | {"name": "allocation size", "type": "uint64_t"} |
| 1613 | ] |
| 1614 | }, |
| 1615 | "shared texture memory zircon handle descriptor": { |
| 1616 | "category": "structure", |
| 1617 | "chained": "in", |
| 1618 | "chain roots": ["shared texture memory descriptor"], |
| 1619 | "tags": ["dawn", "native"], |
| 1620 | "members": [ |
| 1621 | {"name": "memory FD", "type": "uint32_t"}, |
| 1622 | {"name": "allocation size", "type": "uint64_t"} |
| 1623 | ] |
| 1624 | }, |
| 1625 | "shared texture memory DXGI shared handle descriptor": { |
| 1626 | "category": "structure", |
| 1627 | "chained": "in", |
| 1628 | "chain roots": ["shared texture memory descriptor"], |
| 1629 | "tags": ["dawn", "native"], |
| 1630 | "_comment": "TODO(crbug.com/dawn/1745): improve type safety", |
| 1631 | "members": [ |
| 1632 | {"name": "handle", "type": "void *"} |
| 1633 | ] |
| 1634 | }, |
| 1635 | "shared texture memory IO surface descriptor": { |
| 1636 | "category": "structure", |
| 1637 | "chained": "in", |
| 1638 | "chain roots": ["shared texture memory descriptor"], |
| 1639 | "tags": ["dawn", "native"], |
| 1640 | "_comment": "TODO(crbug.com/dawn/1745): improve type safety", |
| 1641 | "members": [ |
| 1642 | {"name": "io surface", "type": "void *"} |
| 1643 | ] |
| 1644 | }, |
| 1645 | "shared texture memory EGL image descriptor": { |
| 1646 | "category": "structure", |
| 1647 | "chained": "in", |
| 1648 | "chain roots": ["shared texture memory descriptor"], |
| 1649 | "tags": ["dawn", "native"], |
| 1650 | "_comment": "TODO(crbug.com/dawn/1745): improve type safety", |
| 1651 | "members": [ |
| 1652 | {"name": "image", "type": "void *"} |
| 1653 | ] |
| 1654 | }, |
| 1655 | "shared texture memory begin access descriptor": { |
| 1656 | "category": "structure", |
| 1657 | "extensible": "in", |
| 1658 | "tags": ["dawn", "native"], |
| 1659 | "members": [ |
| 1660 | {"name": "initialized", "type": "bool"}, |
| 1661 | {"name": "fence count", "type": "size_t"}, |
| 1662 | {"name": "fences", "type": "shared fence", "annotation": "const*", "length": "fence count"}, |
| 1663 | {"name": "signaled values", "type": "uint64_t", "annotation": "const*", "length": "fence count"} |
| 1664 | ] |
| 1665 | }, |
| 1666 | "shared texture memory end access state": { |
| 1667 | "category": "structure", |
| 1668 | "extensible": "out", |
| 1669 | "tags": ["dawn", "native"], |
| 1670 | "members": [ |
| 1671 | {"name": "initialized", "type": "bool"}, |
| 1672 | {"name": "fence count", "type": "size_t"}, |
| 1673 | {"name": "fences", "type": "shared fence", "annotation": "const*", "length": "fence count"}, |
| 1674 | {"name": "signaled values", "type": "uint64_t", "annotation": "const*", "length": "fence count"} |
| 1675 | ] |
| 1676 | }, |
| 1677 | "shared texture memory vk image layout begin state": { |
| 1678 | "category": "structure", |
| 1679 | "chained": "in", |
| 1680 | "chain roots": ["shared texture memory begin access descriptor"], |
| 1681 | "tags": ["dawn", "native"], |
| 1682 | "_comment": "TODO(crbug.com/dawn/1745): improve type safety", |
| 1683 | "members": [ |
| 1684 | {"name": "old layout", "type": "int32_t"}, |
| 1685 | {"name": "new layout", "type": "int32_t"} |
| 1686 | ] |
| 1687 | }, |
| 1688 | "shared texture memory vk image layout end state": { |
| 1689 | "category": "structure", |
| 1690 | "chained": "out", |
| 1691 | "chain roots": ["shared texture memory end access state"], |
| 1692 | "tags": ["dawn", "native"], |
| 1693 | "_comment": "TODO(crbug.com/dawn/1745): improve type safety", |
| 1694 | "members": [ |
| 1695 | {"name": "old layout", "type": "int32_t"}, |
| 1696 | {"name": "new layout", "type": "int32_t"} |
| 1697 | ] |
| 1698 | }, |
| 1699 | "shared fence": { |
| 1700 | "category": "object", |
| 1701 | "tags": ["dawn", "native"], |
| 1702 | "methods": [ |
| 1703 | { |
| 1704 | "name": "export info", |
| 1705 | "returns": "void", |
| 1706 | "args": [ |
| 1707 | {"name": "info", "type": "shared fence export info", "annotation": "*"} |
| 1708 | ] |
| 1709 | } |
| 1710 | ] |
| 1711 | }, |
| 1712 | "shared fence descriptor": { |
| 1713 | "category": "structure", |
| 1714 | "extensible": "in", |
| 1715 | "tags": ["dawn", "native"], |
| 1716 | "members": [ |
| 1717 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true} |
| 1718 | ] |
| 1719 | }, |
| 1720 | "shared fence vk semaphore opaque FD descriptor": { |
| 1721 | "category": "structure", |
| 1722 | "chained": "in", |
| 1723 | "chain roots": ["shared fence descriptor"], |
| 1724 | "tags": ["dawn", "native"], |
| 1725 | "members": [ |
| 1726 | {"name": "handle", "type": "int"} |
| 1727 | ] |
| 1728 | }, |
| 1729 | "shared fence vk semaphore sync FD descriptor": { |
| 1730 | "category": "structure", |
| 1731 | "chained": "in", |
| 1732 | "chain roots": ["shared fence descriptor"], |
| 1733 | "tags": ["dawn", "native"], |
| 1734 | "members": [ |
| 1735 | {"name": "handle", "type": "int"} |
| 1736 | ] |
| 1737 | }, |
| 1738 | "shared fence vk semaphore zircon handle descriptor": { |
| 1739 | "category": "structure", |
| 1740 | "chained": "in", |
| 1741 | "chain roots": ["shared fence descriptor"], |
| 1742 | "tags": ["dawn", "native"], |
| 1743 | "members": [ |
| 1744 | {"name": "handle", "type": "uint32_t"} |
| 1745 | ] |
| 1746 | }, |
| 1747 | "shared fence DXGI shared handle descriptor": { |
| 1748 | "category": "structure", |
| 1749 | "chained": "in", |
| 1750 | "chain roots": ["shared fence descriptor"], |
| 1751 | "tags": ["dawn", "native"], |
| 1752 | "members": [ |
| 1753 | {"name": "handle", "type": "void *"} |
| 1754 | ] |
| 1755 | }, |
| 1756 | "shared fence MTL shared event descriptor": { |
| 1757 | "category": "structure", |
| 1758 | "chained": "in", |
| 1759 | "chain roots": ["shared fence descriptor"], |
| 1760 | "tags": ["dawn", "native"], |
| 1761 | "_comment": "TODO(crbug.com/dawn/1745): improve type safety", |
| 1762 | "members": [ |
| 1763 | {"name": "shared event", "type": "void *"} |
| 1764 | ] |
| 1765 | }, |
| 1766 | "shared fence type": { |
| 1767 | "category": "enum", |
| 1768 | "tags": ["dawn", "native"], |
| 1769 | "values": [ |
| 1770 | {"value": 0, "name": "undefined", "valid": false}, |
| 1771 | {"value": 1, "name": "vk semaphore opaque FD"}, |
| 1772 | {"value": 2, "name": "vk semaphore sync FD"}, |
| 1773 | {"value": 3, "name": "vk semaphore zircon handle"}, |
| 1774 | {"value": 4, "name": "DXGI shared handle"}, |
| 1775 | {"value": 5, "name": "MTL shared event"} |
| 1776 | ] |
| 1777 | }, |
| 1778 | "shared fence export info": { |
| 1779 | "category": "structure", |
| 1780 | "extensible": "out", |
| 1781 | "tags": ["dawn", "native"], |
| 1782 | "members": [ |
| 1783 | {"name": "type", "type": "shared fence type"} |
| 1784 | ] |
| 1785 | }, |
| 1786 | "shared fence vk semaphore opaque FD export info": { |
| 1787 | "category": "structure", |
| 1788 | "chained": "out", |
| 1789 | "chain roots": ["shared fence export info"], |
| 1790 | "tags": ["dawn", "native"], |
| 1791 | "members": [ |
| 1792 | {"name": "handle", "type": "int"} |
| 1793 | ] |
| 1794 | }, |
| 1795 | "shared fence vk semaphore sync FD export info": { |
| 1796 | "category": "structure", |
| 1797 | "chained": "out", |
| 1798 | "chain roots": ["shared fence export info"], |
| 1799 | "tags": ["dawn", "native"], |
| 1800 | "members": [ |
| 1801 | {"name": "handle", "type": "int"} |
| 1802 | ] |
| 1803 | }, |
| 1804 | "shared fence vk semaphore zircon handle export info": { |
| 1805 | "category": "structure", |
| 1806 | "chained": "out", |
| 1807 | "chain roots": ["shared fence export info"], |
| 1808 | "tags": ["dawn", "native"], |
| 1809 | "members": [ |
| 1810 | {"name": "handle", "type": "uint32_t"} |
| 1811 | ] |
| 1812 | }, |
| 1813 | "shared fence DXGI shared handle export info": { |
| 1814 | "category": "structure", |
| 1815 | "chained": "out", |
| 1816 | "chain roots": ["shared fence export info"], |
| 1817 | "tags": ["dawn", "native"], |
| 1818 | "members": [ |
| 1819 | {"name": "handle", "type": "void *"} |
| 1820 | ] |
| 1821 | }, |
| 1822 | "shared fence MTL shared event export info": { |
| 1823 | "category": "structure", |
| 1824 | "chained": "out", |
| 1825 | "chain roots": ["shared fence export info"], |
| 1826 | "tags": ["dawn", "native"], |
| 1827 | "_comment": "TODO(crbug.com/dawn/1745): improve type safety", |
| 1828 | "members": [ |
| 1829 | {"name": "shared event", "type": "void *"} |
| 1830 | ] |
| 1831 | }, |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 1832 | "feature name": { |
| 1833 | "category": "enum", |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 1834 | "values": [ |
Austin Eng | d1dcb50 | 2023-08-21 22:03:00 +0000 | [diff] [blame] | 1835 | {"value": 0, "name": "undefined", "jsrepr": "undefined", "valid": false}, |
Austin Eng | 51d13a4 | 2022-06-13 19:18:55 +0000 | [diff] [blame] | 1836 | {"value": 1, "name": "depth clip control"}, |
Brandon Jones | 6d48f57 | 2022-06-14 22:48:31 +0000 | [diff] [blame] | 1837 | {"value": 2, "name": "depth32 float stencil8"}, |
| 1838 | {"value": 3, "name": "timestamp query"}, |
| 1839 | {"value": 4, "name": "pipeline statistics query"}, |
| 1840 | {"value": 5, "name": "texture compression BC"}, |
| 1841 | {"value": 6, "name": "texture compression ETC2"}, |
| 1842 | {"value": 7, "name": "texture compression ASTC"}, |
| 1843 | {"value": 8, "name": "indirect first instance"}, |
Zhaoming Jiang | 7ca82ac | 2022-09-08 00:11:04 +0000 | [diff] [blame] | 1844 | {"value": 9, "name": "shader f16"}, |
Takahiro | d4dd547 | 2022-09-22 16:38:06 +0000 | [diff] [blame] | 1845 | {"value": 10, "name": "RG11B10 ufloat renderable"}, |
Jiawei Shao | f5cee3f | 2023-02-11 02:53:53 +0000 | [diff] [blame] | 1846 | {"value": 11, "name": "BGRA8 unorm storage"}, |
Loko Kung | 9fb0eed | 2023-05-18 07:21:11 +0000 | [diff] [blame] | 1847 | {"value": 12, "name": "float32 filterable"}, |
Corentin Wallez | 7d78e3c | 2023-08-15 16:46:12 +0000 | [diff] [blame] | 1848 | |
Austin Eng | 89ddadc | 2021-12-15 00:12:30 +0000 | [diff] [blame] | 1849 | {"value": 1002, "name": "dawn internal usages", "tags": ["dawn"]}, |
Austin Eng | 2f218e2 | 2021-12-22 19:02:23 +0000 | [diff] [blame] | 1850 | {"value": 1003, "name": "dawn multi planar formats", "tags": ["dawn"]}, |
Jiawei Shao | 9ebba36 | 2022-05-20 08:21:00 +0000 | [diff] [blame] | 1851 | {"value": 1004, "name": "dawn native", "tags": ["dawn", "native"]}, |
Li Hao | 74f6bc7 | 2022-10-28 04:51:16 +0000 | [diff] [blame] | 1852 | {"value": 1005, "name": "chromium experimental dp4a", "tags": ["dawn"]}, |
Le Hoang Quyen | 7971bfe | 2023-04-05 19:35:07 +0000 | [diff] [blame] | 1853 | {"value": 1006, "name": "timestamp query inside passes", "tags": ["dawn"]}, |
Le Hoang Quyen | 3355731 | 2023-04-20 20:42:05 +0000 | [diff] [blame] | 1854 | {"value": 1007, "name": "implicit device synchronization", "tags": ["dawn", "native"]}, |
Sunny Sachanandani | d3d226d | 2023-07-25 03:17:24 +0000 | [diff] [blame] | 1855 | {"value": 1008, "name": "surface capabilities", "tags": ["dawn", "native"]}, |
Le Hoang Quyen | b5879ac | 2023-06-27 08:32:22 +0000 | [diff] [blame] | 1856 | {"value": 1009, "name": "transient attachments", "tags": ["dawn"]}, |
Brandon Jones | 93210ba | 2023-07-24 17:35:45 +0000 | [diff] [blame] | 1857 | {"value": 1010, "name": "MSAA render to single sampled", "tags": ["dawn"]}, |
Sunny Sachanandani | d3d226d | 2023-07-25 03:17:24 +0000 | [diff] [blame] | 1858 | {"value": 1011, "name": "dual source blending", "tags": ["dawn"]}, |
Stephen White | 657bdc1 | 2023-08-04 02:45:37 +0000 | [diff] [blame] | 1859 | {"value": 1012, "name": "D3D11 multithread protected", "tags": ["dawn", "native"]}, |
Austin Eng | 5a54d9e | 2023-08-04 13:49:24 +0000 | [diff] [blame] | 1860 | {"value": 1013, "name": "ANGLE texture sharing", "tags": ["dawn", "native"]}, |
Zhaoming Jiang | 21ad723 | 2023-08-11 02:36:01 +0000 | [diff] [blame] | 1861 | {"value": 1014, "name": "chromium experimental subgroups", "tags": ["dawn"]}, |
| 1862 | {"value": 1015, "name": "chromium experimental subgroup uniform control flow", "tags": ["dawn"]}, |
Jiawei Shao | bdabd11 | 2023-08-15 08:17:58 +0000 | [diff] [blame] | 1863 | {"value": 1016, "name": "chromium experimental read write storage texture", "tags": ["dawn"]}, |
Corentin Wallez | 7d78e3c | 2023-08-15 16:46:12 +0000 | [diff] [blame] | 1864 | {"value": 1017, "name": "pixel local storage coherent", "tags": ["dawn"]}, |
| 1865 | {"value": 1018, "name": "pixel local storage non coherent", "tags": ["dawn"]}, |
Jie Chen | 3bf4482 | 2023-08-21 02:56:57 +0000 | [diff] [blame] | 1866 | {"value": 1019, "name": "norm16 texture formats", "tags": ["dawn"]}, |
Le Hoang Quyen | 7431c9d | 2023-08-23 23:07:50 +0000 | [diff] [blame] | 1867 | {"value": 1020, "name": "multi planar format extended usages", "tags": ["dawn"]}, |
Jie Chen | b2abd13 | 2023-08-29 03:23:25 +0000 | [diff] [blame] | 1868 | {"value": 1021, "name": "multi planar format p010", "tags": ["dawn"]}, |
Austin Eng | 5a54d9e | 2023-08-04 13:49:24 +0000 | [diff] [blame] | 1869 | |
| 1870 | {"value": 1100, "name": "shared texture memory vk dedicated allocation", "tags": ["dawn", "native"]}, |
| 1871 | {"value": 1101, "name": "shared texture memory a hardware buffer", "tags": ["dawn", "native"]}, |
| 1872 | {"value": 1102, "name": "shared texture memory dma buf", "tags": ["dawn", "native"]}, |
| 1873 | {"value": 1103, "name": "shared texture memory opaque FD", "tags": ["dawn", "native"]}, |
| 1874 | {"value": 1104, "name": "shared texture memory zircon handle", "tags": ["dawn", "native"]}, |
| 1875 | {"value": 1105, "name": "shared texture memory DXGI shared handle", "tags": ["dawn", "native"]}, |
| 1876 | {"value": 1106, "name": "shared texture memory D3D11 texture 2D", "tags": ["dawn", "native"]}, |
| 1877 | {"value": 1107, "name": "shared texture memory IO surface", "tags": ["dawn", "native"]}, |
| 1878 | {"value": 1108, "name": "shared texture memory EGL image", "tags": ["dawn", "native"]}, |
| 1879 | {"value": 1200, "name": "shared fence vk semaphore opaque FD", "tags": ["dawn", "native"]}, |
| 1880 | {"value": 1201, "name": "shared fence vk semaphore sync FD", "tags": ["dawn", "native"]}, |
| 1881 | {"value": 1202, "name": "shared fence vk semaphore zircon handle", "tags": ["dawn", "native"]}, |
| 1882 | {"value": 1203, "name": "shared fence DXGI shared handle", "tags": ["dawn", "native"]}, |
| 1883 | {"value": 1204, "name": "shared fence MTL shared event", "tags": ["dawn", "native"]} |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 1884 | ] |
| 1885 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1886 | "filter mode": { |
| 1887 | "category": "enum", |
| 1888 | "values": [ |
Yunchao He | cfea934 | 2019-04-02 14:31:29 +0000 | [diff] [blame] | 1889 | {"value": 0, "name": "nearest"}, |
| 1890 | {"value": 1, "name": "linear"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1891 | ] |
| 1892 | }, |
Austin Eng | fb42653 | 2017-08-01 14:22:52 -0400 | [diff] [blame] | 1893 | "float": { |
| 1894 | "category": "native" |
| 1895 | }, |
Yunchao He | c33a8c1 | 2019-04-11 18:46:54 +0000 | [diff] [blame] | 1896 | "front face": { |
| 1897 | "category": "enum", |
| 1898 | "values": [ |
| 1899 | {"value": 0, "name": "CCW"}, |
| 1900 | {"value": 1, "name": "CW"} |
| 1901 | ] |
| 1902 | }, |
Corentin Wallez | 8091584 | 2021-03-04 18:13:45 +0000 | [diff] [blame] | 1903 | "image copy buffer": { |
| 1904 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 1905 | "extensible": "in", |
Corentin Wallez | 8091584 | 2021-03-04 18:13:45 +0000 | [diff] [blame] | 1906 | "members": [ |
| 1907 | {"name": "layout", "type": "texture data layout"}, |
| 1908 | {"name": "buffer", "type": "buffer"} |
| 1909 | ] |
| 1910 | }, |
| 1911 | "image copy texture": { |
| 1912 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 1913 | "extensible": "in", |
Corentin Wallez | 8091584 | 2021-03-04 18:13:45 +0000 | [diff] [blame] | 1914 | "members": [ |
| 1915 | {"name": "texture", "type": "texture"}, |
| 1916 | {"name": "mip level", "type": "uint32_t", "default": "0"}, |
| 1917 | {"name": "origin", "type": "origin 3D"}, |
| 1918 | {"name": "aspect", "type": "texture aspect", "default": "all"} |
| 1919 | ] |
| 1920 | }, |
Yan,Shaobo | b4d8c80 | 2022-10-26 00:58:46 +0000 | [diff] [blame] | 1921 | "image copy external texture": { |
| 1922 | "category": "structure", |
| 1923 | "extensible": "in", |
| 1924 | "tags": ["dawn"], |
| 1925 | "members": [ |
| 1926 | {"name": "external texture", "type": "external texture"}, |
Yan,Shaobo | 8150d1c | 2023-03-24 03:43:56 +0000 | [diff] [blame] | 1927 | {"name": "origin", "type": "origin 3D"}, |
| 1928 | {"name": "natural size", "type": "extent 2D"} |
Yan,Shaobo | b4d8c80 | 2022-10-26 00:58:46 +0000 | [diff] [blame] | 1929 | ] |
| 1930 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1931 | "index format": { |
| 1932 | "category": "enum", |
| 1933 | "values": [ |
Brandon Jones | 8575cb3 | 2020-08-27 01:13:35 +0000 | [diff] [blame] | 1934 | {"value": 0, "name": "undefined", "jsrepr": "undefined"}, |
| 1935 | {"value": 1, "name": "uint16"}, |
| 1936 | {"value": 2, "name": "uint32"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1937 | ] |
| 1938 | }, |
Corentin Wallez | 5fc2c82 | 2020-01-10 13:06:48 +0000 | [diff] [blame] | 1939 | "instance": { |
Corentin Wallez | 3a1746e | 2020-01-15 13:14:12 +0000 | [diff] [blame] | 1940 | "category": "object", |
Le Hoang Quyen | 7971bfe | 2023-04-05 19:35:07 +0000 | [diff] [blame] | 1941 | "no autolock": true, |
Corentin Wallez | 3a1746e | 2020-01-15 13:14:12 +0000 | [diff] [blame] | 1942 | "methods": [ |
| 1943 | { |
| 1944 | "name": "create surface", |
| 1945 | "returns": "surface", |
| 1946 | "args": [ |
| 1947 | {"name": "descriptor", "type": "surface descriptor", "annotation": "const*"} |
| 1948 | ] |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 1949 | }, |
| 1950 | { |
Le Hoang Quyen | 69e1c4b | 2023-03-14 19:03:10 +0000 | [diff] [blame] | 1951 | "name": "process events" |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 1952 | }, |
| 1953 | { |
| 1954 | "name": "request adapter", |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 1955 | "args": [ |
Corentin Wallez | 1260a53 | 2022-07-26 17:36:44 +0000 | [diff] [blame] | 1956 | {"name": "options", "type": "request adapter options", "annotation": "const*", "optional": true, "no_default": true}, |
Corentin Wallez | e00c6bd | 2021-12-13 17:37:17 +0000 | [diff] [blame] | 1957 | {"name": "callback", "type": "request adapter callback"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 1958 | {"name": "userdata", "type": "void *"} |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 1959 | ] |
Corentin Wallez | 3a1746e | 2020-01-15 13:14:12 +0000 | [diff] [blame] | 1960 | } |
| 1961 | ] |
Corentin Wallez | 5fc2c82 | 2020-01-10 13:06:48 +0000 | [diff] [blame] | 1962 | }, |
| 1963 | "instance descriptor": { |
| 1964 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 1965 | "extensible": "in", |
Corentin Wallez | 5fc2c82 | 2020-01-10 13:06:48 +0000 | [diff] [blame] | 1966 | "members": [] |
| 1967 | }, |
Brandon Jones | 58a471a | 2021-02-08 19:48:06 +0000 | [diff] [blame] | 1968 | "vertex attribute": { |
Yunchao He | b220773 | 2019-02-14 00:35:39 +0000 | [diff] [blame] | 1969 | "category": "structure", |
| 1970 | "extensible": false, |
| 1971 | "members": [ |
Kai Ninomiya | ae1f25f | 2019-11-07 22:23:29 +0000 | [diff] [blame] | 1972 | {"name": "format", "type": "vertex format"}, |
| 1973 | {"name": "offset", "type": "uint64_t"}, |
| 1974 | {"name": "shader location", "type": "uint32_t"} |
Yunchao He | b220773 | 2019-02-14 00:35:39 +0000 | [diff] [blame] | 1975 | ] |
| 1976 | }, |
Brandon Jones | 58a471a | 2021-02-08 19:48:06 +0000 | [diff] [blame] | 1977 | "vertex buffer layout": { |
Yunchao He | 4dec737 | 2019-02-14 23:56:07 +0000 | [diff] [blame] | 1978 | "category": "structure", |
| 1979 | "extensible": false, |
| 1980 | "members": [ |
Kai Ninomiya | ae1f25f | 2019-11-07 22:23:29 +0000 | [diff] [blame] | 1981 | {"name": "array stride", "type": "uint64_t"}, |
Corentin Wallez | ff6c9ca6 | 2021-07-25 18:40:19 +0000 | [diff] [blame] | 1982 | {"name": "step mode", "type": "vertex step mode", "default": "vertex"}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 1983 | {"name": "attribute count", "type": "size_t"}, |
Brandon Jones | 58a471a | 2021-02-08 19:48:06 +0000 | [diff] [blame] | 1984 | {"name": "attributes", "type": "vertex attribute", "annotation": "const*", "length": "attribute count"} |
Yunchao He | 4dec737 | 2019-02-14 23:56:07 +0000 | [diff] [blame] | 1985 | ] |
| 1986 | }, |
Corentin Wallez | ff6c9ca6 | 2021-07-25 18:40:19 +0000 | [diff] [blame] | 1987 | "vertex step mode": { |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1988 | "category": "enum", |
| 1989 | "values": [ |
Takahiro | f3cf19f | 2022-05-31 17:24:49 +0000 | [diff] [blame] | 1990 | {"value": 0, "name": "vertex"}, |
| 1991 | {"value": 1, "name": "instance"}, |
Shrek Shao | 9ec183e | 2022-08-01 23:03:14 +0000 | [diff] [blame] | 1992 | {"value": 2, "name": "vertex buffer not used", "jsrepr": "undefined", "valid": true} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 1993 | ] |
| 1994 | }, |
Kai Ninomiya | b985431 | 2017-08-11 14:36:20 -0700 | [diff] [blame] | 1995 | "load op": { |
| 1996 | "category": "enum", |
| 1997 | "values": [ |
Austin Eng | 74d4e53 | 2022-03-09 18:43:51 +0000 | [diff] [blame] | 1998 | {"value": 0, "name": "undefined", "jsrepr": "undefined"}, |
Brandon Jones | a20ce6f | 2022-02-03 17:59:04 +0000 | [diff] [blame] | 1999 | {"value": 1, "name": "clear"}, |
| 2000 | {"value": 2, "name": "load"} |
Kai Ninomiya | b985431 | 2017-08-11 14:36:20 -0700 | [diff] [blame] | 2001 | ] |
| 2002 | }, |
Corentin Wallez | 0d52f80 | 2020-07-14 12:30:14 +0000 | [diff] [blame] | 2003 | "map mode": { |
| 2004 | "category": "bitmask", |
| 2005 | "values": [ |
| 2006 | {"value": 0, "name": "none"}, |
| 2007 | {"value": 1, "name": "read"}, |
| 2008 | {"value": 2, "name": "write"} |
| 2009 | ] |
| 2010 | }, |
Corentin Wallez | eee3449 | 2022-03-16 18:44:16 +0000 | [diff] [blame] | 2011 | "mipmap filter mode": { |
| 2012 | "category": "enum", |
Corentin Wallez | eee3449 | 2022-03-16 18:44:16 +0000 | [diff] [blame] | 2013 | "values": [ |
| 2014 | {"value": 0, "name": "nearest"}, |
| 2015 | {"value": 1, "name": "linear"} |
| 2016 | ] |
| 2017 | }, |
Jiawei Shao | 5e811ae | 2018-12-19 08:21:13 +0000 | [diff] [blame] | 2018 | "store op": { |
| 2019 | "category": "enum", |
| 2020 | "values": [ |
Austin Eng | 74d4e53 | 2022-03-09 18:43:51 +0000 | [diff] [blame] | 2021 | {"value": 0, "name": "undefined", "jsrepr": "undefined"}, |
Brandon Jones | a20ce6f | 2022-02-03 17:59:04 +0000 | [diff] [blame] | 2022 | {"value": 1, "name": "store"}, |
| 2023 | {"value": 2, "name": "discard"} |
Jiawei Shao | 5e811ae | 2018-12-19 08:21:13 +0000 | [diff] [blame] | 2024 | ] |
| 2025 | }, |
Brandon Jones | ac71e34 | 2018-11-28 17:54:13 +0000 | [diff] [blame] | 2026 | "origin 3D": { |
| 2027 | "category": "structure", |
| 2028 | "members": [ |
Corentin Wallez | 8f93871 | 2019-07-08 19:20:22 +0000 | [diff] [blame] | 2029 | {"name": "x", "type": "uint32_t", "default": "0"}, |
| 2030 | {"name": "y", "type": "uint32_t", "default": "0"}, |
| 2031 | {"name": "z", "type": "uint32_t", "default": "0"} |
Brandon Jones | ac71e34 | 2018-11-28 17:54:13 +0000 | [diff] [blame] | 2032 | ] |
| 2033 | }, |
Yan,Shaobo | e8dd681 | 2022-11-03 09:03:01 +0000 | [diff] [blame] | 2034 | "origin 2D": { |
| 2035 | "category": "structure", |
| 2036 | "tags": ["dawn"], |
| 2037 | "members": [ |
| 2038 | {"name": "x", "type": "uint32_t", "default": "0"}, |
| 2039 | {"name": "y", "type": "uint32_t", "default": "0"} |
| 2040 | ] |
| 2041 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2042 | "pipeline layout": { |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 2043 | "category": "object", |
| 2044 | "methods": [ |
| 2045 | { |
| 2046 | "name": "set label", |
| 2047 | "returns": "void", |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 2048 | "args": [ |
| 2049 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 2050 | ] |
| 2051 | } |
| 2052 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2053 | }, |
Kai Ninomiya | f53f98b | 2018-06-27 16:21:39 -0700 | [diff] [blame] | 2054 | "pipeline layout descriptor": { |
| 2055 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2056 | "extensible": "in", |
Kai Ninomiya | f53f98b | 2018-06-27 16:21:39 -0700 | [diff] [blame] | 2057 | "members": [ |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 2058 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 2059 | {"name": "bind group layout count", "type": "size_t"}, |
Jiawei Shao | 2030166 | 2019-02-21 00:45:19 +0000 | [diff] [blame] | 2060 | {"name": "bind group layouts", "type": "bind group layout", "annotation": "const*", "length": "bind group layout count"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2061 | ] |
| 2062 | }, |
Corentin Wallez | 7d78e3c | 2023-08-15 16:46:12 +0000 | [diff] [blame] | 2063 | "pipeline layout pixel local storage": { |
| 2064 | "category": "structure", |
| 2065 | "tags": ["dawn"], |
| 2066 | "chained": "in", |
| 2067 | "chain roots": ["pipeline layout descriptor"], |
| 2068 | "members": [ |
Corentin Wallez | b4b916a | 2023-09-08 17:14:30 +0000 | [diff] [blame] | 2069 | {"name": "total pixel local storage size", "type": "uint64_t"}, |
Corentin Wallez | 7d78e3c | 2023-08-15 16:46:12 +0000 | [diff] [blame] | 2070 | {"name": "storage attachment count", "type": "size_t", "default": 0}, |
| 2071 | {"name": "storage attachments", "type": "pipeline layout storage attachment", "annotation": "const*", "length": "storage attachment count"} |
| 2072 | ] |
| 2073 | }, |
| 2074 | "pipeline layout storage attachment": { |
| 2075 | "category": "structure", |
| 2076 | "tags": ["dawn"], |
| 2077 | "extensible": "in", |
| 2078 | "members": [ |
| 2079 | {"name": "offset", "type": "uint64_t", "default": 0}, |
| 2080 | {"name": "format", "type": "texture format"} |
| 2081 | ] |
| 2082 | }, |
Kai Ninomiya | 261b05d | 2020-07-13 18:21:03 +0000 | [diff] [blame] | 2083 | "pipeline statistic name": { |
Hao Li | b6eff5a | 2020-06-11 00:34:14 +0000 | [diff] [blame] | 2084 | "category": "enum", |
| 2085 | "values": [ |
| 2086 | {"value": 0, "name": "vertex shader invocations"}, |
| 2087 | {"value": 1, "name": "clipper invocations"}, |
| 2088 | {"value": 2, "name": "clipper primitives out"}, |
| 2089 | {"value": 3, "name": "fragment shader invocations"}, |
| 2090 | {"value": 4, "name": "compute shader invocations"} |
| 2091 | ] |
| 2092 | }, |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 2093 | "power preference": { |
| 2094 | "category": "enum", |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 2095 | "values": [ |
Shrek Shao | ee50bc0 | 2022-02-08 20:21:40 +0000 | [diff] [blame] | 2096 | {"value": 0, "name": "undefined", "jsrepr": "undefined"}, |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 2097 | {"value": 1, "name": "low power"}, |
| 2098 | {"value": 2, "name": "high performance"} |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 2099 | ] |
| 2100 | }, |
Corentin Wallez | d87e676 | 2020-01-23 17:20:38 +0000 | [diff] [blame] | 2101 | "present mode": { |
| 2102 | "category": "enum", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 2103 | "emscripten_no_enum_table": true, |
Corentin Wallez | d87e676 | 2020-01-23 17:20:38 +0000 | [diff] [blame] | 2104 | "values": [ |
dan sinclair | 3ebe5b6 | 2023-08-21 22:57:06 +0000 | [diff] [blame] | 2105 | {"value": 0, "name": "fifo"}, |
| 2106 | {"value": 1, "name": "fifo relaxed", "tags": ["upstream"]}, |
| 2107 | {"value": 2, "name": "immediate"}, |
| 2108 | {"value": 3, "name": "mailbox"} |
Corentin Wallez | d87e676 | 2020-01-23 17:20:38 +0000 | [diff] [blame] | 2109 | ] |
| 2110 | }, |
Jinho Bang | 0b82671 | 2019-10-07 12:23:09 +0000 | [diff] [blame] | 2111 | "programmable stage descriptor": { |
Yan, Shaobo | a492427 | 2018-12-10 19:47:22 +0000 | [diff] [blame] | 2112 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2113 | "extensible": "in", |
Yan, Shaobo | a492427 | 2018-12-10 19:47:22 +0000 | [diff] [blame] | 2114 | "members": [ |
| 2115 | {"name": "module", "type": "shader module"}, |
Kai Ninomiya | 7d174a1 | 2021-09-21 17:36:27 +0000 | [diff] [blame] | 2116 | {"name": "entry point", "type": "char", "annotation": "const*", "length": "strlen"}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 2117 | {"name": "constant count", "type": "size_t", "default": 0}, |
shrekshao | e99ad76 | 2021-09-28 20:15:52 +0000 | [diff] [blame] | 2118 | {"name": "constants", "type": "constant entry", "annotation": "const*", "length": "constant count"} |
Yan, Shaobo | a492427 | 2018-12-10 19:47:22 +0000 | [diff] [blame] | 2119 | ] |
| 2120 | }, |
Austin Eng | 3e9e315 | 2017-07-24 13:54:19 -0400 | [diff] [blame] | 2121 | "primitive topology": { |
| 2122 | "category": "enum", |
| 2123 | "values": [ |
Austin Eng | 439d963 | 2017-07-26 18:10:44 -0400 | [diff] [blame] | 2124 | {"value": 0, "name": "point list"}, |
| 2125 | {"value": 1, "name": "line list"}, |
Austin Eng | 3e9e315 | 2017-07-24 13:54:19 -0400 | [diff] [blame] | 2126 | {"value": 2, "name": "line strip"}, |
Austin Eng | 439d963 | 2017-07-26 18:10:44 -0400 | [diff] [blame] | 2127 | {"value": 3, "name": "triangle list"}, |
Austin Eng | 3e9e315 | 2017-07-24 13:54:19 -0400 | [diff] [blame] | 2128 | {"value": 4, "name": "triangle strip"} |
| 2129 | ] |
| 2130 | }, |
Hao Li | b6eff5a | 2020-06-11 00:34:14 +0000 | [diff] [blame] | 2131 | "query set": { |
| 2132 | "category": "object", |
| 2133 | "methods": [ |
| 2134 | { |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 2135 | "name": "set label", |
| 2136 | "returns": "void", |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 2137 | "args": [ |
| 2138 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 2139 | ] |
| 2140 | }, |
| 2141 | { |
Corentin Wallez | 45820ae | 2022-06-09 10:12:13 +0000 | [diff] [blame] | 2142 | "name": "get type", |
| 2143 | "returns": "query type" |
| 2144 | }, |
| 2145 | { |
| 2146 | "name": "get count", |
| 2147 | "returns": "uint32_t" |
| 2148 | }, |
| 2149 | { |
Hao Li | b6eff5a | 2020-06-11 00:34:14 +0000 | [diff] [blame] | 2150 | "name": "destroy" |
| 2151 | } |
| 2152 | ] |
| 2153 | }, |
| 2154 | "query set descriptor": { |
| 2155 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2156 | "extensible": "in", |
Hao Li | b6eff5a | 2020-06-11 00:34:14 +0000 | [diff] [blame] | 2157 | "members": [ |
| 2158 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
| 2159 | {"name": "type", "type": "query type"}, |
| 2160 | {"name": "count", "type": "uint32_t"}, |
Loko Kung | 44fc9da | 2023-08-16 06:11:11 +0000 | [diff] [blame] | 2161 | {"name": "pipeline statistics", "type": "pipeline statistic name", "annotation": "const*", "length": "pipeline statistic count"}, |
| 2162 | {"name": "pipeline statistic count", "type": "size_t", "default": "0"} |
Hao Li | b6eff5a | 2020-06-11 00:34:14 +0000 | [diff] [blame] | 2163 | ] |
| 2164 | }, |
| 2165 | "query type": { |
| 2166 | "category": "enum", |
| 2167 | "values": [ |
| 2168 | {"value": 0, "name": "occlusion"}, |
| 2169 | {"value": 1, "name": "pipeline statistics"}, |
| 2170 | {"value": 2, "name": "timestamp"} |
| 2171 | ] |
| 2172 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2173 | "queue": { |
| 2174 | "category": "object", |
| 2175 | "methods": [ |
| 2176 | { |
| 2177 | "name": "submit", |
| 2178 | "args": [ |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 2179 | {"name": "command count", "type": "size_t"}, |
Jiawei Shao | 2030166 | 2019-02-21 00:45:19 +0000 | [diff] [blame] | 2180 | {"name": "commands", "type": "command buffer", "annotation": "const*", "length": "command count"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2181 | ] |
Austin Eng | f0b761f | 2018-12-03 16:57:34 +0000 | [diff] [blame] | 2182 | }, |
| 2183 | { |
Corentin Wallez | c093db2 | 2021-02-25 13:17:01 +0000 | [diff] [blame] | 2184 | "name": "on submitted work done", |
Corentin Wallez | eee3449 | 2022-03-16 18:44:16 +0000 | [diff] [blame] | 2185 | "tags": ["dawn", "emscripten"], |
Corentin Wallez | c093db2 | 2021-02-25 13:17:01 +0000 | [diff] [blame] | 2186 | "args": [ |
| 2187 | {"name": "signal value", "type": "uint64_t"}, |
Corentin Wallez | e00c6bd | 2021-12-13 17:37:17 +0000 | [diff] [blame] | 2188 | {"name": "callback", "type": "queue work done callback"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 2189 | {"name": "userdata", "type": "void *"} |
Corentin Wallez | c093db2 | 2021-02-25 13:17:01 +0000 | [diff] [blame] | 2190 | ] |
| 2191 | }, |
| 2192 | { |
Corentin Wallez | eee3449 | 2022-03-16 18:44:16 +0000 | [diff] [blame] | 2193 | "name": "on submitted work done", |
| 2194 | "tags": ["upstream"], |
| 2195 | "args": [ |
| 2196 | {"name": "callback", "type": "queue work done callback"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 2197 | {"name": "userdata", "type": "void *"} |
Corentin Wallez | eee3449 | 2022-03-16 18:44:16 +0000 | [diff] [blame] | 2198 | ] |
| 2199 | }, |
| 2200 | { |
Corentin Wallez | 47a3341 | 2020-06-02 09:24:39 +0000 | [diff] [blame] | 2201 | "name": "write buffer", |
| 2202 | "args": [ |
| 2203 | {"name": "buffer", "type": "buffer"}, |
| 2204 | {"name": "buffer offset", "type": "uint64_t"}, |
| 2205 | {"name": "data", "type": "void", "annotation": "const*", "length": "size"}, |
| 2206 | {"name": "size", "type": "size_t"} |
| 2207 | ] |
Tomek Ponitka | a9c7d64 | 2020-07-08 18:42:30 +0000 | [diff] [blame] | 2208 | }, |
| 2209 | { |
| 2210 | "name": "write texture", |
| 2211 | "args": [ |
Corentin Wallez | 8091584 | 2021-03-04 18:13:45 +0000 | [diff] [blame] | 2212 | {"name": "destination", "type": "image copy texture", "annotation": "const*"}, |
Corentin Wallez | 1b9b53a | 2020-07-16 00:43:08 +0000 | [diff] [blame] | 2213 | {"name": "data", "type": "void", "annotation": "const*", "length": "data size"}, |
Tomek Ponitka | a9c7d64 | 2020-07-08 18:42:30 +0000 | [diff] [blame] | 2214 | {"name": "data size", "type": "size_t"}, |
| 2215 | {"name": "data layout", "type": "texture data layout", "annotation": "const*"}, |
Corentin Wallez | 1b9b53a | 2020-07-16 00:43:08 +0000 | [diff] [blame] | 2216 | {"name": "write size", "type": "extent 3D", "annotation": "const*"} |
Tomek Ponitka | a9c7d64 | 2020-07-08 18:42:30 +0000 | [diff] [blame] | 2217 | ] |
Yan, Shaobo | db8766b | 2020-11-04 02:30:16 +0000 | [diff] [blame] | 2218 | }, |
| 2219 | { |
| 2220 | "name": "copy texture for browser", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2221 | "extensible": "in", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 2222 | "tags": ["dawn"], |
Yan, Shaobo | db8766b | 2020-11-04 02:30:16 +0000 | [diff] [blame] | 2223 | "args": [ |
Corentin Wallez | 8091584 | 2021-03-04 18:13:45 +0000 | [diff] [blame] | 2224 | {"name": "source", "type": "image copy texture", "annotation": "const*"}, |
| 2225 | {"name": "destination", "type": "image copy texture", "annotation": "const*"}, |
Yan, Shaobo | bb913a9 | 2020-12-02 08:13:09 +0000 | [diff] [blame] | 2226 | {"name": "copy size", "type": "extent 3D", "annotation": "const*"}, |
| 2227 | {"name": "options", "type": "copy texture for browser options", "annotation": "const*"} |
Yan, Shaobo | db8766b | 2020-11-04 02:30:16 +0000 | [diff] [blame] | 2228 | ] |
Brandon Jones | 8085367 | 2022-04-12 03:28:40 +0000 | [diff] [blame] | 2229 | }, |
| 2230 | { |
Yan,Shaobo | b4d8c80 | 2022-10-26 00:58:46 +0000 | [diff] [blame] | 2231 | "name": "copy external texture for browser", |
| 2232 | "extensible": "in", |
| 2233 | "tags": ["dawn"], |
| 2234 | "args": [ |
| 2235 | {"name": "source", "type": "image copy external texture", "annotation": "const*"}, |
| 2236 | {"name": "destination", "type": "image copy texture", "annotation": "const*"}, |
| 2237 | {"name": "copy size", "type": "extent 3D", "annotation": "const*"}, |
| 2238 | {"name": "options", "type": "copy texture for browser options", "annotation": "const*"} |
| 2239 | ] |
| 2240 | }, |
| 2241 | { |
Brandon Jones | 8085367 | 2022-04-12 03:28:40 +0000 | [diff] [blame] | 2242 | "name": "set label", |
| 2243 | "returns": "void", |
| 2244 | "args": [ |
| 2245 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 2246 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2247 | } |
| 2248 | ] |
| 2249 | }, |
Corentin Wallez | eee3449 | 2022-03-16 18:44:16 +0000 | [diff] [blame] | 2250 | "queue descriptor": { |
| 2251 | "category": "structure", |
| 2252 | "extensible": "in", |
Corentin Wallez | eee3449 | 2022-03-16 18:44:16 +0000 | [diff] [blame] | 2253 | "members": [ |
| 2254 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true} |
| 2255 | ] |
| 2256 | }, |
Corentin Wallez | c093db2 | 2021-02-25 13:17:01 +0000 | [diff] [blame] | 2257 | "queue work done callback": { |
fujunwei | 23f7162 | 2021-12-02 07:41:21 +0000 | [diff] [blame] | 2258 | "category": "function pointer", |
Corentin Wallez | c093db2 | 2021-02-25 13:17:01 +0000 | [diff] [blame] | 2259 | "args": [ |
| 2260 | {"name": "status", "type": "queue work done status"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 2261 | {"name": "userdata", "type": "void *"} |
Corentin Wallez | c093db2 | 2021-02-25 13:17:01 +0000 | [diff] [blame] | 2262 | ] |
| 2263 | }, |
| 2264 | "queue work done status": { |
| 2265 | "category": "enum", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 2266 | "emscripten_no_enum_table": true, |
Corentin Wallez | c093db2 | 2021-02-25 13:17:01 +0000 | [diff] [blame] | 2267 | "values": [ |
| 2268 | {"value": 0, "name": "success"}, |
| 2269 | {"value": 1, "name": "error"}, |
| 2270 | {"value": 2, "name": "unknown"}, |
| 2271 | {"value": 3, "name": "device lost"} |
| 2272 | ] |
| 2273 | }, |
Jiawei Shao | 5e811ae | 2018-12-19 08:21:13 +0000 | [diff] [blame] | 2274 | |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2275 | "render bundle": { |
Corentin Wallez | 06294ba | 2023-05-25 17:02:50 +0000 | [diff] [blame] | 2276 | "category": "object", |
| 2277 | "methods": [ |
| 2278 | { |
| 2279 | "name": "set label", |
| 2280 | "returns": "void", |
| 2281 | "args": [ |
| 2282 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 2283 | ] |
| 2284 | } |
| 2285 | ] |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2286 | }, |
| 2287 | |
| 2288 | "render bundle encoder": { |
| 2289 | "category": "object", |
Le Hoang Quyen | 7971bfe | 2023-04-05 19:35:07 +0000 | [diff] [blame] | 2290 | "no autolock": true, |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2291 | "methods": [ |
| 2292 | { |
| 2293 | "name": "set pipeline", |
| 2294 | "args": [ |
| 2295 | {"name": "pipeline", "type": "render pipeline"} |
| 2296 | ] |
| 2297 | }, |
| 2298 | { |
| 2299 | "name": "set bind group", |
| 2300 | "args": [ |
| 2301 | {"name": "group index", "type": "uint32_t"}, |
Yunchao He | 6ffe72c | 2023-06-14 19:22:29 +0000 | [diff] [blame] | 2302 | {"name": "group", "type": "bind group", "optional": true}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 2303 | {"name": "dynamic offset count", "type": "size_t", "default": "0"}, |
Corentin Wallez | 75f554d | 2021-06-17 16:04:29 +0000 | [diff] [blame] | 2304 | {"name": "dynamic offsets", "type": "uint32_t", "annotation": "const*", "length": "dynamic offset count", "default": "nullptr"} |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2305 | ] |
| 2306 | }, |
| 2307 | { |
| 2308 | "name": "draw", |
| 2309 | "args": [ |
| 2310 | {"name": "vertex count", "type": "uint32_t"}, |
Corentin Wallez | 67b1ad7 | 2020-03-31 16:21:35 +0000 | [diff] [blame] | 2311 | {"name": "instance count", "type": "uint32_t", "default": "1"}, |
| 2312 | {"name": "first vertex", "type": "uint32_t", "default": "0"}, |
| 2313 | {"name": "first instance", "type": "uint32_t", "default": "0"} |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2314 | ] |
| 2315 | }, |
| 2316 | { |
| 2317 | "name": "draw indexed", |
| 2318 | "args": [ |
| 2319 | {"name": "index count", "type": "uint32_t"}, |
Corentin Wallez | 67b1ad7 | 2020-03-31 16:21:35 +0000 | [diff] [blame] | 2320 | {"name": "instance count", "type": "uint32_t", "default": "1"}, |
| 2321 | {"name": "first index", "type": "uint32_t", "default": "0"}, |
| 2322 | {"name": "base vertex", "type": "int32_t", "default": "0"}, |
| 2323 | {"name": "first instance", "type": "uint32_t", "default": "0"} |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2324 | ] |
| 2325 | }, |
| 2326 | { |
| 2327 | "name": "draw indirect", |
| 2328 | "args": [ |
| 2329 | {"name": "indirect buffer", "type": "buffer"}, |
| 2330 | {"name": "indirect offset", "type": "uint64_t"} |
| 2331 | ] |
| 2332 | }, |
| 2333 | { |
| 2334 | "name": "draw indexed indirect", |
| 2335 | "args": [ |
| 2336 | {"name": "indirect buffer", "type": "buffer"}, |
| 2337 | {"name": "indirect offset", "type": "uint64_t"} |
| 2338 | ] |
| 2339 | }, |
| 2340 | { |
| 2341 | "name": "insert debug marker", |
| 2342 | "args": [ |
Kai Ninomiya | 51bbbef | 2020-07-12 16:01:38 +0000 | [diff] [blame] | 2343 | {"name": "marker label", "type": "char", "annotation": "const*", "length": "strlen"} |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2344 | ] |
| 2345 | }, |
| 2346 | { |
| 2347 | "name": "pop debug group", |
| 2348 | "args": [] |
| 2349 | }, |
| 2350 | { |
| 2351 | "name": "push debug group", |
| 2352 | "args": [ |
| 2353 | {"name": "group label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 2354 | ] |
| 2355 | }, |
| 2356 | { |
François Beaufort | 91b2142 | 2019-10-10 07:29:58 +0000 | [diff] [blame] | 2357 | "name": "set vertex buffer", |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2358 | "args": [ |
François Beaufort | 91b2142 | 2019-10-10 07:29:58 +0000 | [diff] [blame] | 2359 | {"name": "slot", "type": "uint32_t"}, |
Yunchao He | 9924426 | 2023-05-11 19:26:30 +0000 | [diff] [blame] | 2360 | {"name": "buffer", "type": "buffer", "optional": true}, |
Corentin Wallez | c244f53 | 2020-04-24 09:42:03 +0000 | [diff] [blame] | 2361 | {"name": "offset", "type": "uint64_t", "default": "0"}, |
Zhaoming Jiang | 2be4b84 | 2021-09-28 02:05:00 +0000 | [diff] [blame] | 2362 | {"name": "size", "type": "uint64_t", "default": "WGPU_WHOLE_SIZE"} |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2363 | ] |
| 2364 | }, |
| 2365 | { |
| 2366 | "name": "set index buffer", |
| 2367 | "args": [ |
| 2368 | {"name": "buffer", "type": "buffer"}, |
Corentin Wallez | 5fad85b | 2020-11-25 08:54:14 +0000 | [diff] [blame] | 2369 | {"name": "format", "type": "index format"}, |
Corentin Wallez | c244f53 | 2020-04-24 09:42:03 +0000 | [diff] [blame] | 2370 | {"name": "offset", "type": "uint64_t", "default": "0"}, |
Zhaoming Jiang | 2be4b84 | 2021-09-28 02:05:00 +0000 | [diff] [blame] | 2371 | {"name": "size", "type": "uint64_t", "default": "WGPU_WHOLE_SIZE"} |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2372 | ] |
| 2373 | }, |
| 2374 | { |
| 2375 | "name": "finish", |
| 2376 | "returns": "render bundle", |
| 2377 | "args": [ |
| 2378 | {"name": "descriptor", "type": "render bundle descriptor", "annotation": "const*", "optional": true} |
| 2379 | ] |
Brandon Jones | 828f674 | 2021-11-23 00:09:25 +0000 | [diff] [blame] | 2380 | }, |
| 2381 | { |
| 2382 | "name": "set label", |
| 2383 | "returns": "void", |
Brandon Jones | 828f674 | 2021-11-23 00:09:25 +0000 | [diff] [blame] | 2384 | "args": [ |
| 2385 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 2386 | ] |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2387 | } |
| 2388 | ] |
| 2389 | }, |
| 2390 | |
| 2391 | "render bundle descriptor": { |
| 2392 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2393 | "extensible": "in", |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 2394 | "members": [ |
| 2395 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true} |
| 2396 | ] |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2397 | }, |
| 2398 | |
| 2399 | "render bundle encoder descriptor": { |
| 2400 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2401 | "extensible": "in", |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2402 | "members": [ |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 2403 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Loko Kung | 44fc9da | 2023-08-16 06:11:11 +0000 | [diff] [blame] | 2404 | {"name": "color format count", "type": "size_t"}, |
| 2405 | {"name": "color formats", "type": "texture format", "annotation": "const*", "length": "color format count"}, |
Corentin Wallez | d55bd7a | 2019-09-05 09:12:32 +0000 | [diff] [blame] | 2406 | {"name": "depth stencil format", "type": "texture format", "default": "undefined"}, |
Yunchao He | 79d2099 | 2021-10-15 16:56:13 +0000 | [diff] [blame] | 2407 | {"name": "sample count", "type": "uint32_t", "default": "1"}, |
| 2408 | {"name": "depth read only", "type": "bool", "default": "false"}, |
| 2409 | {"name": "stencil read only", "type": "bool", "default": "false"} |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2410 | ] |
| 2411 | }, |
| 2412 | |
Brandon Jones | 5e6a092 | 2021-04-17 01:51:53 +0000 | [diff] [blame] | 2413 | "render pass color attachment": { |
Jiawei Shao | 5e811ae | 2018-12-19 08:21:13 +0000 | [diff] [blame] | 2414 | "category": "structure", |
Le Hoang Quyen | b5879ac | 2023-06-27 08:32:22 +0000 | [diff] [blame] | 2415 | "extensible": "in", |
Jiawei Shao | 5e811ae | 2018-12-19 08:21:13 +0000 | [diff] [blame] | 2416 | "members": [ |
Shrek Shao | 6d205fc | 2022-03-05 01:34:02 +0000 | [diff] [blame] | 2417 | {"name": "view", "type": "texture view", "optional": true}, |
dan sinclair | 1244719 | 2023-08-22 16:44:05 +0000 | [diff] [blame] | 2418 | {"name": "depth slice", "type": "uint32_t", "default": "0", "tags": ["dawn"]}, |
Jiawei Shao | 5e811ae | 2018-12-19 08:21:13 +0000 | [diff] [blame] | 2419 | {"name": "resolve target", "type": "texture view", "optional": true}, |
| 2420 | {"name": "load op", "type": "load op"}, |
| 2421 | {"name": "store op", "type": "store op"}, |
Shrek Shao | b0987d6 | 2022-03-07 19:29:54 +0000 | [diff] [blame] | 2422 | {"name": "clear value", "type": "color"} |
Jiawei Shao | 5e811ae | 2018-12-19 08:21:13 +0000 | [diff] [blame] | 2423 | ] |
| 2424 | }, |
Le Hoang Quyen | b5879ac | 2023-06-27 08:32:22 +0000 | [diff] [blame] | 2425 | "dawn render pass color attachment render to single sampled": { |
| 2426 | "tags": ["dawn"], |
| 2427 | "category": "structure", |
| 2428 | "chained": "in", |
| 2429 | "chain roots": ["render pass color attachment"], |
| 2430 | "members": [ |
| 2431 | {"name": "implicit sample count", "type": "uint32_t", "default": 1} |
| 2432 | ] |
| 2433 | }, |
Brandon Jones | 5e6a092 | 2021-04-17 01:51:53 +0000 | [diff] [blame] | 2434 | "render pass depth stencil attachment": { |
Jiawei Shao | 5e811ae | 2018-12-19 08:21:13 +0000 | [diff] [blame] | 2435 | "category": "structure", |
| 2436 | "members": [ |
Corentin Wallez | 1ac4565 | 2021-09-14 10:42:22 +0000 | [diff] [blame] | 2437 | {"name": "view", "type": "texture view"}, |
Brandon Jones | a20ce6f | 2022-02-03 17:59:04 +0000 | [diff] [blame] | 2438 | {"name": "depth load op", "type": "load op", "default": "undefined"}, |
| 2439 | {"name": "depth store op", "type": "store op", "default": "undefined"}, |
Takahiro | 9754bc4 | 2023-03-01 13:34:59 +0000 | [diff] [blame] | 2440 | {"name": "depth clear value", "type": "float", "default": "NAN"}, |
Brandon Jones | 7695afc | 2020-07-10 23:13:58 +0000 | [diff] [blame] | 2441 | {"name": "depth read only", "type": "bool", "default": "false"}, |
Brandon Jones | a20ce6f | 2022-02-03 17:59:04 +0000 | [diff] [blame] | 2442 | {"name": "stencil load op", "type": "load op", "default": "undefined"}, |
| 2443 | {"name": "stencil store op", "type": "store op", "default": "undefined"}, |
Brandon Jones | 6e8c473 | 2022-02-19 00:44:12 +0000 | [diff] [blame] | 2444 | {"name": "stencil clear value", "type": "uint32_t", "default": "0"}, |
Corentin Wallez | 1ac4565 | 2021-09-14 10:42:22 +0000 | [diff] [blame] | 2445 | {"name": "stencil read only", "type": "bool", "default": "false"} |
Jiawei Shao | 5e811ae | 2018-12-19 08:21:13 +0000 | [diff] [blame] | 2446 | ] |
| 2447 | }, |
| 2448 | |
Corentin Wallez | 8d6b5d2 | 2018-05-11 13:04:44 -0400 | [diff] [blame] | 2449 | "render pass descriptor": { |
Jiawei Shao | b2c5023 | 2019-02-27 09:21:56 +0000 | [diff] [blame] | 2450 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2451 | "extensible": "in", |
Jiawei Shao | b2c5023 | 2019-02-27 09:21:56 +0000 | [diff] [blame] | 2452 | "members": [ |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 2453 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 2454 | {"name": "color attachment count", "type": "size_t"}, |
Brandon Jones | 5e6a092 | 2021-04-17 01:51:53 +0000 | [diff] [blame] | 2455 | {"name": "color attachments", "type": "render pass color attachment", "annotation": "const*", "length": "color attachment count"}, |
| 2456 | {"name": "depth stencil attachment", "type": "render pass depth stencil attachment", "annotation": "const*", "optional": true}, |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 2457 | {"name": "occlusion query set", "type": "query set", "optional": true}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 2458 | {"name": "timestamp write count", "type": "size_t", "default": 0}, |
Li Hao | 131c422 | 2022-03-05 01:22:52 +0000 | [diff] [blame] | 2459 | {"name": "timestamp writes", "type": "render pass timestamp write", "annotation": "const*", "length": "timestamp write count"} |
Jiawei Shao | b2c5023 | 2019-02-27 09:21:56 +0000 | [diff] [blame] | 2460 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2461 | }, |
Takahiro | 831296d | 2022-06-30 04:19:42 +0000 | [diff] [blame] | 2462 | "render pass descriptor max draw count": { |
| 2463 | "category": "structure", |
| 2464 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 2465 | "chain roots": ["render pass descriptor"], |
Takahiro | 831296d | 2022-06-30 04:19:42 +0000 | [diff] [blame] | 2466 | "members": [ |
| 2467 | {"name": "max draw count", "type": "uint64_t", "default": 50000000} |
| 2468 | ] |
| 2469 | }, |
Corentin Wallez | 7d78e3c | 2023-08-15 16:46:12 +0000 | [diff] [blame] | 2470 | "render pass pixel local storage": { |
| 2471 | "category": "structure", |
| 2472 | "tags": ["dawn"], |
| 2473 | "chained": "in", |
| 2474 | "chain roots": ["render pass descriptor"], |
| 2475 | "members": [ |
Corentin Wallez | b4b916a | 2023-09-08 17:14:30 +0000 | [diff] [blame] | 2476 | {"name": "total pixel local storage size", "type": "uint64_t"}, |
Corentin Wallez | 7d78e3c | 2023-08-15 16:46:12 +0000 | [diff] [blame] | 2477 | {"name": "storage attachment count", "type": "size_t", "default": 0}, |
| 2478 | {"name": "storage attachments", "type": "render pass storage attachment", "annotation": "const*", "length": "storage attachment count"} |
| 2479 | ] |
| 2480 | }, |
| 2481 | "render pass storage attachment": { |
| 2482 | "category": "structure", |
| 2483 | "tags": ["dawn"], |
| 2484 | "extensible": "in", |
| 2485 | "members": [ |
| 2486 | {"name": "offset", "type": "uint64_t", "default": 0}, |
| 2487 | {"name": "storage", "type": "texture view"}, |
| 2488 | {"name": "load op", "type": "load op"}, |
| 2489 | {"name": "store op", "type": "store op"}, |
| 2490 | {"name": "clear value", "type": "color"} |
| 2491 | ] |
| 2492 | }, |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2493 | "render pass encoder": { |
| 2494 | "category": "object", |
Le Hoang Quyen | 7971bfe | 2023-04-05 19:35:07 +0000 | [diff] [blame] | 2495 | "no autolock": true, |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2496 | "methods": [ |
| 2497 | { |
Yan, Shaobo | 300eec0 | 2018-12-21 10:40:26 +0000 | [diff] [blame] | 2498 | "name": "set pipeline", |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2499 | "args": [ |
| 2500 | {"name": "pipeline", "type": "render pipeline"} |
| 2501 | ] |
| 2502 | }, |
| 2503 | { |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2504 | "name": "set bind group", |
| 2505 | "args": [ |
| 2506 | {"name": "group index", "type": "uint32_t"}, |
Yunchao He | 6ffe72c | 2023-06-14 19:22:29 +0000 | [diff] [blame] | 2507 | {"name": "group", "type": "bind group", "optional": true}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 2508 | {"name": "dynamic offset count", "type": "size_t", "default": "0"}, |
Corentin Wallez | 75f554d | 2021-06-17 16:04:29 +0000 | [diff] [blame] | 2509 | {"name": "dynamic offsets", "type": "uint32_t", "annotation": "const*", "length": "dynamic offset count", "default": "nullptr"} |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2510 | ] |
| 2511 | }, |
| 2512 | { |
Jiawei Shao | c789b84 | 2018-12-10 05:20:19 +0000 | [diff] [blame] | 2513 | "name": "draw", |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2514 | "args": [ |
| 2515 | {"name": "vertex count", "type": "uint32_t"}, |
Corentin Wallez | 67b1ad7 | 2020-03-31 16:21:35 +0000 | [diff] [blame] | 2516 | {"name": "instance count", "type": "uint32_t", "default": "1"}, |
| 2517 | {"name": "first vertex", "type": "uint32_t", "default": "0"}, |
| 2518 | {"name": "first instance", "type": "uint32_t", "default": "0"} |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2519 | ] |
| 2520 | }, |
| 2521 | { |
Jiawei Shao | c789b84 | 2018-12-10 05:20:19 +0000 | [diff] [blame] | 2522 | "name": "draw indexed", |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2523 | "args": [ |
| 2524 | {"name": "index count", "type": "uint32_t"}, |
Corentin Wallez | 67b1ad7 | 2020-03-31 16:21:35 +0000 | [diff] [blame] | 2525 | {"name": "instance count", "type": "uint32_t", "default": "1"}, |
| 2526 | {"name": "first index", "type": "uint32_t", "default": "0"}, |
| 2527 | {"name": "base vertex", "type": "int32_t", "default": "0"}, |
| 2528 | {"name": "first instance", "type": "uint32_t", "default": "0"} |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2529 | ] |
| 2530 | }, |
| 2531 | { |
Idan Raiter | 05f7ad5 | 2019-06-10 20:56:27 +0000 | [diff] [blame] | 2532 | "name": "draw indirect", |
| 2533 | "args": [ |
| 2534 | {"name": "indirect buffer", "type": "buffer"}, |
| 2535 | {"name": "indirect offset", "type": "uint64_t"} |
| 2536 | ] |
| 2537 | }, |
| 2538 | { |
| 2539 | "name": "draw indexed indirect", |
| 2540 | "args": [ |
| 2541 | {"name": "indirect buffer", "type": "buffer"}, |
| 2542 | {"name": "indirect offset", "type": "uint64_t"} |
| 2543 | ] |
| 2544 | }, |
| 2545 | { |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2546 | "name": "execute bundles", |
| 2547 | "args": [ |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 2548 | {"name": "bundle count", "type": "size_t"}, |
Corentin Wallez | 873df0a | 2022-09-30 20:34:08 +0000 | [diff] [blame] | 2549 | {"name": "bundles", "type": "render bundle", "annotation": "const*", "length": "bundle count"} |
Austin Eng | 8a488c1 | 2019-08-13 22:12:54 +0000 | [diff] [blame] | 2550 | ] |
| 2551 | }, |
| 2552 | { |
Brandon Jones | 11d32c8 | 2019-02-20 20:21:00 +0000 | [diff] [blame] | 2553 | "name": "insert debug marker", |
| 2554 | "args": [ |
Kai Ninomiya | 51bbbef | 2020-07-12 16:01:38 +0000 | [diff] [blame] | 2555 | {"name": "marker label", "type": "char", "annotation": "const*", "length": "strlen"} |
Brandon Jones | 11d32c8 | 2019-02-20 20:21:00 +0000 | [diff] [blame] | 2556 | ] |
| 2557 | }, |
| 2558 | { |
| 2559 | "name": "pop debug group", |
| 2560 | "args": [] |
| 2561 | }, |
| 2562 | { |
| 2563 | "name": "push debug group", |
| 2564 | "args": [ |
| 2565 | {"name": "group label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 2566 | ] |
| 2567 | }, |
| 2568 | { |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2569 | "name": "set stencil reference", |
| 2570 | "args": [ |
| 2571 | {"name": "reference", "type": "uint32_t"} |
| 2572 | ] |
| 2573 | }, |
| 2574 | { |
Brandon Jones | 413dcf8 | 2021-04-15 19:33:58 +0000 | [diff] [blame] | 2575 | "name": "set blend constant", |
| 2576 | "args": [ |
| 2577 | {"name": "color", "type": "color", "annotation": "const*"} |
| 2578 | ] |
| 2579 | }, |
| 2580 | { |
Yunchao He | 050ab49 | 2019-07-04 15:30:59 +0000 | [diff] [blame] | 2581 | "name": "set viewport", |
| 2582 | "args": [ |
| 2583 | {"name": "x", "type": "float"}, |
| 2584 | {"name": "y", "type": "float"}, |
| 2585 | {"name": "width", "type": "float"}, |
| 2586 | {"name": "height", "type": "float"}, |
| 2587 | {"name": "min depth", "type": "float"}, |
| 2588 | {"name": "max depth", "type": "float"} |
| 2589 | ] |
| 2590 | }, |
| 2591 | { |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2592 | "name": "set scissor rect", |
| 2593 | "args": [ |
| 2594 | {"name": "x", "type": "uint32_t"}, |
| 2595 | {"name": "y", "type": "uint32_t"}, |
| 2596 | {"name": "width", "type": "uint32_t"}, |
| 2597 | {"name": "height", "type": "uint32_t"} |
| 2598 | ] |
| 2599 | }, |
| 2600 | { |
François Beaufort | 91b2142 | 2019-10-10 07:29:58 +0000 | [diff] [blame] | 2601 | "name": "set vertex buffer", |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2602 | "args": [ |
François Beaufort | 91b2142 | 2019-10-10 07:29:58 +0000 | [diff] [blame] | 2603 | {"name": "slot", "type": "uint32_t"}, |
Yunchao He | 9924426 | 2023-05-11 19:26:30 +0000 | [diff] [blame] | 2604 | {"name": "buffer", "type": "buffer", "optional": true}, |
Corentin Wallez | c244f53 | 2020-04-24 09:42:03 +0000 | [diff] [blame] | 2605 | {"name": "offset", "type": "uint64_t", "default": "0"}, |
Zhaoming Jiang | 2be4b84 | 2021-09-28 02:05:00 +0000 | [diff] [blame] | 2606 | {"name": "size", "type": "uint64_t", "default": "WGPU_WHOLE_SIZE"} |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2607 | ] |
| 2608 | }, |
| 2609 | { |
| 2610 | "name": "set index buffer", |
| 2611 | "args": [ |
| 2612 | {"name": "buffer", "type": "buffer"}, |
Corentin Wallez | 5fad85b | 2020-11-25 08:54:14 +0000 | [diff] [blame] | 2613 | {"name": "format", "type": "index format"}, |
Corentin Wallez | c244f53 | 2020-04-24 09:42:03 +0000 | [diff] [blame] | 2614 | {"name": "offset", "type": "uint64_t", "default": "0"}, |
Zhaoming Jiang | 2be4b84 | 2021-09-28 02:05:00 +0000 | [diff] [blame] | 2615 | {"name": "size", "type": "uint64_t", "default": "WGPU_WHOLE_SIZE"} |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2616 | ] |
| 2617 | }, |
| 2618 | { |
Hao Li | 01e4450 | 2020-11-18 09:47:52 +0000 | [diff] [blame] | 2619 | "name": "begin occlusion query", |
| 2620 | "args": [ |
| 2621 | {"name": "query index", "type": "uint32_t"} |
| 2622 | ] |
| 2623 | }, |
| 2624 | { |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 2625 | "name": "begin pipeline statistics query", |
Shrek Shao | ee50bc0 | 2022-02-08 20:21:40 +0000 | [diff] [blame] | 2626 | "tags": ["upstream", "emscripten"], |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 2627 | "args": [ |
| 2628 | {"name": "query set", "type": "query set"}, |
| 2629 | {"name": "query index", "type": "uint32_t"} |
| 2630 | ] |
| 2631 | }, |
| 2632 | { |
Hao Li | 01e4450 | 2020-11-18 09:47:52 +0000 | [diff] [blame] | 2633 | "name": "end occlusion query" |
| 2634 | }, |
| 2635 | { |
Hao Li | 5191adc | 2020-07-01 10:48:16 +0000 | [diff] [blame] | 2636 | "name": "write timestamp", |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 2637 | "tags": ["emscripten", "dawn"], |
Hao Li | 5191adc | 2020-07-01 10:48:16 +0000 | [diff] [blame] | 2638 | "args": [ |
| 2639 | {"name": "query set", "type": "query set"}, |
| 2640 | {"name": "query index", "type": "uint32_t"} |
| 2641 | ] |
| 2642 | }, |
| 2643 | { |
Corentin Wallez | 7d78e3c | 2023-08-15 16:46:12 +0000 | [diff] [blame] | 2644 | "name": "pixel local storage barrier", |
| 2645 | "tags": ["dawn"] |
| 2646 | }, |
| 2647 | { |
Brandon Jones | 0fee4c1 | 2022-02-07 19:48:39 +0000 | [diff] [blame] | 2648 | "name": "end" |
| 2649 | }, |
| 2650 | { |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 2651 | "name": "end pipeline statistics query", |
Shrek Shao | ee50bc0 | 2022-02-08 20:21:40 +0000 | [diff] [blame] | 2652 | "tags": ["upstream", "emscripten"] |
Brandon Jones | 828f674 | 2021-11-23 00:09:25 +0000 | [diff] [blame] | 2653 | }, |
| 2654 | { |
| 2655 | "name": "set label", |
| 2656 | "returns": "void", |
Brandon Jones | 828f674 | 2021-11-23 00:09:25 +0000 | [diff] [blame] | 2657 | "args": [ |
| 2658 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 2659 | ] |
Corentin Wallez | 82fbccb | 2018-09-21 00:24:37 +0000 | [diff] [blame] | 2660 | } |
| 2661 | ] |
| 2662 | }, |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 2663 | "render pass timestamp location": { |
| 2664 | "category": "enum", |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 2665 | "values": [ |
| 2666 | {"value": 0, "name": "beginning"}, |
| 2667 | {"value": 1, "name": "end"} |
| 2668 | ] |
| 2669 | }, |
| 2670 | "render pass timestamp write": { |
| 2671 | "category": "structure", |
Corentin Wallez | 6cd1cd9 | 2021-11-17 08:13:24 +0000 | [diff] [blame] | 2672 | "members": [ |
| 2673 | {"name": "query set", "type": "query set"}, |
| 2674 | {"name": "query index", "type": "uint32_t"}, |
| 2675 | {"name": "location", "type": "render pass timestamp location"} |
| 2676 | ] |
| 2677 | }, |
Corentin Wallez | 29ced28 | 2017-07-14 10:58:07 -0400 | [diff] [blame] | 2678 | "render pipeline": { |
Austin Eng | f6eb890 | 2019-11-22 17:02:22 +0000 | [diff] [blame] | 2679 | "category": "object", |
| 2680 | "methods": [ |
| 2681 | { |
| 2682 | "name": "get bind group layout", |
| 2683 | "returns": "bind group layout", |
| 2684 | "args": [ |
Corentin Wallez | 373a3ff | 2020-04-01 18:22:36 +0000 | [diff] [blame] | 2685 | {"name": "group index", "type": "uint32_t"} |
Austin Eng | f6eb890 | 2019-11-22 17:02:22 +0000 | [diff] [blame] | 2686 | ] |
Brandon Jones | c1bcbbf | 2021-09-02 18:39:53 +0000 | [diff] [blame] | 2687 | }, |
| 2688 | { |
| 2689 | "name": "set label", |
| 2690 | "returns": "void", |
| 2691 | "args": [ |
| 2692 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 2693 | ] |
Austin Eng | f6eb890 | 2019-11-22 17:02:22 +0000 | [diff] [blame] | 2694 | } |
Austin Eng | 2092a66 | 2021-09-10 21:07:39 +0000 | [diff] [blame] | 2695 | |
| 2696 | ] |
| 2697 | }, |
| 2698 | |
| 2699 | "request device callback": { |
fujunwei | 23f7162 | 2021-12-02 07:41:21 +0000 | [diff] [blame] | 2700 | "category": "function pointer", |
Austin Eng | 5a54d9e | 2023-08-04 13:49:24 +0000 | [diff] [blame] | 2701 | "_comment": "crbug.com/1234617: Revisit optional status of device once requestDevice can return lost devices", |
Austin Eng | 2092a66 | 2021-09-10 21:07:39 +0000 | [diff] [blame] | 2702 | "args": [ |
| 2703 | {"name": "status", "type": "request device status"}, |
Henry Betts | 5ad86f3 | 2023-07-11 09:48:38 +0000 | [diff] [blame] | 2704 | {"name": "device", "type": "device", "optional": true}, |
Austin Eng | 5397f9f | 2021-12-14 23:22:46 +0000 | [diff] [blame] | 2705 | {"name": "message", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 2706 | {"name": "userdata", "type": "void *"} |
Austin Eng | 2092a66 | 2021-09-10 21:07:39 +0000 | [diff] [blame] | 2707 | ] |
| 2708 | }, |
| 2709 | |
| 2710 | "request device status": { |
| 2711 | "category": "enum", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 2712 | "emscripten_no_enum_table": true, |
Austin Eng | 2092a66 | 2021-09-10 21:07:39 +0000 | [diff] [blame] | 2713 | "values": [ |
| 2714 | {"value": 0, "name": "success"}, |
| 2715 | {"value": 1, "name": "error"}, |
| 2716 | {"value": 2, "name": "unknown"} |
Austin Eng | f6eb890 | 2019-11-22 17:02:22 +0000 | [diff] [blame] | 2717 | ] |
Corentin Wallez | 29ced28 | 2017-07-14 10:58:07 -0400 | [diff] [blame] | 2718 | }, |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2719 | |
| 2720 | "vertex state": { |
| 2721 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2722 | "extensible": "in", |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2723 | "members": [ |
| 2724 | {"name": "module", "type": "shader module"}, |
| 2725 | {"name": "entry point", "type": "char", "annotation": "const*", "length": "strlen"}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 2726 | {"name": "constant count", "type": "size_t", "default": 0}, |
shrekshao | e99ad76 | 2021-09-28 20:15:52 +0000 | [diff] [blame] | 2727 | {"name": "constants", "type": "constant entry", "annotation": "const*", "length": "constant count"}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 2728 | {"name": "buffer count", "type": "size_t", "default": 0}, |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2729 | {"name": "buffers", "type": "vertex buffer layout", "annotation": "const*", "length": "buffer count"} |
| 2730 | ] |
| 2731 | }, |
| 2732 | |
| 2733 | "primitive state": { |
| 2734 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2735 | "extensible": "in", |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2736 | "members": [ |
| 2737 | {"name": "topology", "type": "primitive topology", "default": "triangle list"}, |
| 2738 | {"name": "strip index format", "type": "index format", "default": "undefined"}, |
| 2739 | {"name": "front face", "type": "front face", "default": "CCW"}, |
| 2740 | {"name": "cull mode", "type": "cull mode", "default": "none"} |
| 2741 | ] |
| 2742 | }, |
| 2743 | |
Corentin Wallez | 53db01b | 2021-11-18 23:05:40 +0000 | [diff] [blame] | 2744 | "primitive depth clip control": { |
| 2745 | "category": "structure", |
| 2746 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 2747 | "chain roots": ["primitive state"], |
Corentin Wallez | 53db01b | 2021-11-18 23:05:40 +0000 | [diff] [blame] | 2748 | "members": [ |
| 2749 | {"name": "unclipped depth", "type": "bool", "default": "false"} |
| 2750 | ] |
| 2751 | }, |
| 2752 | |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2753 | "depth stencil state": { |
| 2754 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2755 | "extensible": "in", |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2756 | "members": [ |
| 2757 | {"name": "format", "type": "texture format"}, |
Takahiro | 9754bc4 | 2023-03-01 13:34:59 +0000 | [diff] [blame] | 2758 | {"name": "depth write enabled", "type": "bool"}, |
| 2759 | {"name": "depth compare", "type": "compare function"}, |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2760 | {"name": "stencil front", "type": "stencil face state"}, |
| 2761 | {"name": "stencil back", "type": "stencil face state"}, |
| 2762 | {"name": "stencil read mask", "type": "uint32_t", "default": "0xFFFFFFFF"}, |
| 2763 | {"name": "stencil write mask", "type": "uint32_t", "default": "0xFFFFFFFF"}, |
| 2764 | {"name": "depth bias", "type": "int32_t", "default": "0"}, |
| 2765 | {"name": "depth bias slope scale", "type": "float", "default": "0.0f"}, |
| 2766 | {"name": "depth bias clamp", "type": "float", "default": "0.0f"} |
| 2767 | ] |
| 2768 | }, |
| 2769 | |
| 2770 | "multisample state": { |
| 2771 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2772 | "extensible": "in", |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2773 | "members": [ |
| 2774 | {"name": "count", "type": "uint32_t", "default": "1"}, |
| 2775 | {"name": "mask", "type": "uint32_t", "default": "0xFFFFFFFF"}, |
| 2776 | {"name": "alpha to coverage enabled", "type": "bool", "default": "false"} |
| 2777 | ] |
| 2778 | }, |
| 2779 | |
Le Hoang Quyen | b5879ac | 2023-06-27 08:32:22 +0000 | [diff] [blame] | 2780 | "dawn multisample state render to single sampled": { |
| 2781 | "tags": ["dawn"], |
| 2782 | "category": "structure", |
| 2783 | "chained": "in", |
| 2784 | "chain roots": ["multisample state"], |
| 2785 | "members": [ |
| 2786 | {"name": "enabled", "type": "bool", "default": "false"} |
| 2787 | ] |
| 2788 | }, |
| 2789 | |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2790 | "fragment state": { |
| 2791 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2792 | "extensible": "in", |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2793 | "members": [ |
| 2794 | {"name": "module", "type": "shader module"}, |
| 2795 | {"name": "entry point", "type": "char", "annotation": "const*", "length": "strlen"}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 2796 | {"name": "constant count", "type": "size_t", "default": 0}, |
shrekshao | e99ad76 | 2021-09-28 20:15:52 +0000 | [diff] [blame] | 2797 | {"name": "constants", "type": "constant entry", "annotation": "const*", "length": "constant count"}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 2798 | {"name": "target count", "type": "size_t"}, |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2799 | {"name": "targets", "type": "color target state", "annotation": "const*", "length": "target count"} |
| 2800 | ] |
| 2801 | }, |
| 2802 | "color target state": { |
| 2803 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2804 | "extensible": "in", |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2805 | "members": [ |
| 2806 | {"name": "format", "type": "texture format"}, |
| 2807 | {"name": "blend", "type": "blend state", "annotation": "const*", "optional": true}, |
| 2808 | {"name": "write mask", "type": "color write mask", "default": "all"} |
| 2809 | ] |
| 2810 | }, |
| 2811 | "blend state": { |
| 2812 | "category": "structure", |
| 2813 | "extensible": false, |
| 2814 | "members": [ |
| 2815 | {"name": "color", "type": "blend component"}, |
| 2816 | {"name": "alpha", "type": "blend component"} |
| 2817 | ] |
| 2818 | }, |
| 2819 | |
Yan, Shaobo | a492427 | 2018-12-10 19:47:22 +0000 | [diff] [blame] | 2820 | "render pipeline descriptor": { |
| 2821 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2822 | "extensible": "in", |
Yan, Shaobo | a492427 | 2018-12-10 19:47:22 +0000 | [diff] [blame] | 2823 | "members": [ |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 2824 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Austin Eng | f6eb890 | 2019-11-22 17:02:22 +0000 | [diff] [blame] | 2825 | {"name": "layout", "type": "pipeline layout", "optional": true}, |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2826 | {"name": "vertex", "type": "vertex state"}, |
| 2827 | {"name": "primitive", "type": "primitive state"}, |
| 2828 | {"name": "depth stencil", "type": "depth stencil state", "annotation": "const*", "optional": true}, |
| 2829 | {"name": "multisample", "type": "multisample state"}, |
| 2830 | {"name": "fragment", "type": "fragment state", "annotation": "const*", "optional": true} |
| 2831 | ] |
| 2832 | }, |
| 2833 | |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2834 | "sampler": { |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 2835 | "category": "object", |
| 2836 | "methods": [ |
| 2837 | { |
| 2838 | "name": "set label", |
| 2839 | "returns": "void", |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 2840 | "args": [ |
| 2841 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 2842 | ] |
| 2843 | } |
| 2844 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2845 | }, |
Corentin Wallez | 1ae19e8 | 2018-05-17 17:09:07 -0400 | [diff] [blame] | 2846 | "sampler descriptor": { |
| 2847 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2848 | "extensible": "in", |
Corentin Wallez | 1ae19e8 | 2018-05-17 17:09:07 -0400 | [diff] [blame] | 2849 | "members": [ |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 2850 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Corentin Wallez | 8f93871 | 2019-07-08 19:20:22 +0000 | [diff] [blame] | 2851 | {"name": "address mode u", "type": "address mode", "default": "clamp to edge"}, |
| 2852 | {"name": "address mode v", "type": "address mode", "default": "clamp to edge"}, |
| 2853 | {"name": "address mode w", "type": "address mode", "default": "clamp to edge"}, |
| 2854 | {"name": "mag filter", "type": "filter mode", "default": "nearest"}, |
| 2855 | {"name": "min filter", "type": "filter mode", "default": "nearest"}, |
Loko Kung | abfa45b | 2023-04-26 08:03:20 +0000 | [diff] [blame] | 2856 | {"name": "mipmap filter", "type": "mipmap filter mode", "default": "nearest"}, |
Corentin Wallez | 8f93871 | 2019-07-08 19:20:22 +0000 | [diff] [blame] | 2857 | {"name": "lod min clamp", "type": "float", "default": "0.0f"}, |
Corentin Wallez | 1300592 | 2023-06-13 06:52:56 +0000 | [diff] [blame] | 2858 | {"name": "lod max clamp", "type": "float", "default": "32.0f"}, |
shrekshao | f8c5e4a | 2020-12-24 03:11:17 +0000 | [diff] [blame] | 2859 | {"name": "compare", "type": "compare function", "default": "undefined"}, |
| 2860 | {"name": "max anisotropy", "type": "uint16_t", "default": "1"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2861 | ] |
| 2862 | }, |
| 2863 | "shader module": { |
Brandon Jones | 6f2bbe9 | 2021-04-05 23:34:17 +0000 | [diff] [blame] | 2864 | "category": "object", |
| 2865 | "methods": [ |
| 2866 | { |
| 2867 | "name": "get compilation info", |
| 2868 | "args": [ |
Corentin Wallez | e00c6bd | 2021-12-13 17:37:17 +0000 | [diff] [blame] | 2869 | {"name": "callback", "type": "compilation info callback"}, |
Loko Kung | 670e0bb | 2023-06-10 06:51:37 +0000 | [diff] [blame] | 2870 | {"name": "userdata", "type": "void *"} |
Brandon Jones | 6f2bbe9 | 2021-04-05 23:34:17 +0000 | [diff] [blame] | 2871 | ] |
Brandon Jones | c1bcbbf | 2021-09-02 18:39:53 +0000 | [diff] [blame] | 2872 | }, |
| 2873 | { |
| 2874 | "name": "set label", |
| 2875 | "returns": "void", |
| 2876 | "args": [ |
| 2877 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 2878 | ] |
Brandon Jones | 6f2bbe9 | 2021-04-05 23:34:17 +0000 | [diff] [blame] | 2879 | } |
| 2880 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2881 | }, |
Corentin Wallez | df67103 | 2018-08-20 17:01:20 +0200 | [diff] [blame] | 2882 | "shader module descriptor": { |
| 2883 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2884 | "extensible": "in", |
Corentin Wallez | df67103 | 2018-08-20 17:01:20 +0200 | [diff] [blame] | 2885 | "members": [ |
Corentin Wallez | aa0731d | 2022-03-21 17:11:53 +0000 | [diff] [blame] | 2886 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 2887 | {"name": "hint count", "type": "size_t", "default": 0, "tags": ["upstream"]}, |
Corentin Wallez | aa0731d | 2022-03-21 17:11:53 +0000 | [diff] [blame] | 2888 | {"name": "hints", "type": "shader module compilation hint", "annotation": "const*", "length": "hint count", "tags": ["upstream"]} |
| 2889 | ] |
| 2890 | }, |
| 2891 | "shader module compilation hint": { |
| 2892 | "category": "structure", |
| 2893 | "extensible": "in", |
| 2894 | "tags": ["upstream"], |
| 2895 | "members": [ |
| 2896 | {"name": "entry point", "type": "char", "annotation": "const*", "length": "strlen"}, |
| 2897 | {"name": "layout", "type": "pipeline layout"} |
Corentin Wallez | fee2783 | 2020-04-21 08:04:48 +0000 | [diff] [blame] | 2898 | ] |
| 2899 | }, |
| 2900 | "shader module SPIRV descriptor": { |
| 2901 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2902 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 2903 | "chain roots": ["shader module descriptor"], |
Corentin Wallez | fee2783 | 2020-04-21 08:04:48 +0000 | [diff] [blame] | 2904 | "members": [ |
Corentin Wallez | df67103 | 2018-08-20 17:01:20 +0200 | [diff] [blame] | 2905 | {"name": "code size", "type": "uint32_t"}, |
| 2906 | {"name": "code", "type": "uint32_t", "annotation": "const*", "length": "code size"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2907 | ] |
| 2908 | }, |
Corentin Wallez | fee2783 | 2020-04-21 08:04:48 +0000 | [diff] [blame] | 2909 | "shader module WGSL descriptor": { |
| 2910 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 2911 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 2912 | "chain roots": ["shader module descriptor"], |
Corentin Wallez | fee2783 | 2020-04-21 08:04:48 +0000 | [diff] [blame] | 2913 | "members": [ |
Loko Kung | 687e375 | 2023-06-05 19:26:43 +0000 | [diff] [blame] | 2914 | {"name": "code", "type": "char", "annotation": "const*", "length": "strlen"} |
Corentin Wallez | fee2783 | 2020-04-21 08:04:48 +0000 | [diff] [blame] | 2915 | ] |
| 2916 | }, |
James Price | 132d8c7 | 2023-02-03 19:38:46 +0000 | [diff] [blame] | 2917 | "dawn shader module SPIRV options descriptor": { |
| 2918 | "category": "structure", |
| 2919 | "chained": "in", |
| 2920 | "chain roots": ["shader module descriptor"], |
| 2921 | "tags": ["dawn"], |
| 2922 | "members": [ |
| 2923 | {"name": "allow non uniform derivatives", "type": "bool", "default": "false"} |
| 2924 | ] |
| 2925 | }, |
Corentin Wallez | b9b088f | 2019-08-27 08:42:29 +0000 | [diff] [blame] | 2926 | "shader stage": { |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2927 | "category": "bitmask", |
| 2928 | "values": [ |
Corentin Wallez | be985c1 | 2017-07-20 11:00:39 -0400 | [diff] [blame] | 2929 | {"value": 0, "name": "none"}, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2930 | {"value": 1, "name": "vertex"}, |
| 2931 | {"value": 2, "name": "fragment"}, |
| 2932 | {"value": 4, "name": "compute"} |
| 2933 | ] |
| 2934 | }, |
| 2935 | "stencil operation": { |
| 2936 | "category": "enum", |
| 2937 | "values": [ |
| 2938 | {"value": 0, "name": "keep"}, |
| 2939 | {"value": 1, "name": "zero"}, |
| 2940 | {"value": 2, "name": "replace"}, |
| 2941 | {"value": 3, "name": "invert"}, |
| 2942 | {"value": 4, "name": "increment clamp"}, |
| 2943 | {"value": 5, "name": "decrement clamp"}, |
| 2944 | {"value": 6, "name": "increment wrap"}, |
| 2945 | {"value": 7, "name": "decrement wrap"} |
Austin Eng | 1063439 | 2017-06-01 11:30:03 -0400 | [diff] [blame] | 2946 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 2947 | }, |
Brandon Jones | 0702b70 | 2021-03-11 21:19:00 +0000 | [diff] [blame] | 2948 | "stencil face state": { |
Yunchao He | 48485e3 | 2018-12-15 02:32:34 +0000 | [diff] [blame] | 2949 | "category": "structure", |
| 2950 | "extensible": false, |
| 2951 | "members": [ |
Corentin Wallez | 8f93871 | 2019-07-08 19:20:22 +0000 | [diff] [blame] | 2952 | {"name": "compare", "type": "compare function", "default": "always"}, |
| 2953 | {"name": "fail op", "type": "stencil operation", "default": "keep"}, |
| 2954 | {"name": "depth fail op", "type": "stencil operation", "default": "keep"}, |
| 2955 | {"name": "pass op", "type": "stencil operation", "default": "keep"} |
Yunchao He | 48485e3 | 2018-12-15 02:32:34 +0000 | [diff] [blame] | 2956 | ] |
| 2957 | }, |
Corentin Wallez | 3a1746e | 2020-01-15 13:14:12 +0000 | [diff] [blame] | 2958 | "surface": { |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 2959 | "category": "object", |
Le Hoang Quyen | 7971bfe | 2023-04-05 19:35:07 +0000 | [diff] [blame] | 2960 | "no autolock": true, |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 2961 | "methods": [ |
| 2962 | { |
dan sinclair | 3ebe5b6 | 2023-08-21 22:57:06 +0000 | [diff] [blame] | 2963 | "name": "configure", |
| 2964 | "returns": "void", |
| 2965 | "tags": ["upstream"], |
| 2966 | "args": [ |
| 2967 | {"name": "config", "type": "surface configuration", "annotation": "const*"} |
| 2968 | ] |
| 2969 | }, |
| 2970 | { |
| 2971 | "name": "get capabilities", |
| 2972 | "returns": "void", |
| 2973 | "tags": ["upstream"], |
| 2974 | "args": [ |
| 2975 | {"name": "adapter", "type": "adapter"}, |
| 2976 | {"name": "capabilities", "type": "surface capabilities", "annotation": "*"} |
| 2977 | ] |
| 2978 | }, |
| 2979 | { |
| 2980 | "name": "get current texture", |
| 2981 | "returns": "void", |
| 2982 | "tags": ["upstream"], |
| 2983 | "args": [ |
| 2984 | {"name": "surface texture", "type": "surface texture", "annotation": "*"} |
| 2985 | ] |
| 2986 | }, |
| 2987 | { |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 2988 | "name": "get preferred format", |
| 2989 | "returns": "texture format", |
Shrek Shao | ee50bc0 | 2022-02-08 20:21:40 +0000 | [diff] [blame] | 2990 | "tags": ["upstream", "emscripten"], |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 2991 | "args": [ |
| 2992 | {"name": "adapter", "type": "adapter"} |
| 2993 | ] |
dan sinclair | 3ebe5b6 | 2023-08-21 22:57:06 +0000 | [diff] [blame] | 2994 | }, |
| 2995 | { |
| 2996 | "name": "present", |
| 2997 | "returns": "void", |
| 2998 | "tags": ["upstream"], |
| 2999 | "args": [] |
| 3000 | }, |
| 3001 | { |
| 3002 | "name": "unconfigure", |
| 3003 | "returns": "void", |
| 3004 | "tags": ["upstream"], |
| 3005 | "args": [] |
Kai Ninomiya | 4e37acc | 2021-09-17 21:13:33 +0000 | [diff] [blame] | 3006 | } |
| 3007 | ] |
Corentin Wallez | 3a1746e | 2020-01-15 13:14:12 +0000 | [diff] [blame] | 3008 | }, |
| 3009 | "surface descriptor": { |
| 3010 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 3011 | "extensible": "in", |
Corentin Wallez | 3a1746e | 2020-01-15 13:14:12 +0000 | [diff] [blame] | 3012 | "members": [ |
| 3013 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true} |
| 3014 | ] |
| 3015 | }, |
Shrek Shao | 1554a7d | 2022-03-08 20:56:10 +0000 | [diff] [blame] | 3016 | "surface descriptor from android native window": { |
| 3017 | "category": "structure", |
| 3018 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 3019 | "chain roots": ["surface descriptor"], |
Shrek Shao | 1554a7d | 2022-03-08 20:56:10 +0000 | [diff] [blame] | 3020 | "tags": ["native"], |
| 3021 | "members": [ |
| 3022 | {"name": "window", "type": "void", "annotation": "*"} |
| 3023 | ] |
| 3024 | }, |
Corentin Wallez | 9585c46 | 2020-07-06 18:50:00 +0000 | [diff] [blame] | 3025 | "surface descriptor from canvas HTML selector": { |
Corentin Wallez | c2e1696 | 2020-01-22 21:37:26 +0000 | [diff] [blame] | 3026 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 3027 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 3028 | "chain roots": ["surface descriptor"], |
Corentin Wallez | c2e1696 | 2020-01-22 21:37:26 +0000 | [diff] [blame] | 3029 | "members": [ |
Corentin Wallez | 9585c46 | 2020-07-06 18:50:00 +0000 | [diff] [blame] | 3030 | {"name": "selector", "type": "char", "annotation": "const*", "length": "strlen"} |
Corentin Wallez | c2e1696 | 2020-01-22 21:37:26 +0000 | [diff] [blame] | 3031 | ] |
| 3032 | }, |
Corentin Wallez | 3a1746e | 2020-01-15 13:14:12 +0000 | [diff] [blame] | 3033 | "surface descriptor from metal layer": { |
| 3034 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 3035 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 3036 | "chain roots": ["surface descriptor"], |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 3037 | "tags": ["native"], |
Corentin Wallez | 3a1746e | 2020-01-15 13:14:12 +0000 | [diff] [blame] | 3038 | "members": [ |
| 3039 | {"name": "layer", "type": "void", "annotation": "*"} |
| 3040 | ] |
| 3041 | }, |
| 3042 | "surface descriptor from windows HWND": { |
| 3043 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 3044 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 3045 | "chain roots": ["surface descriptor"], |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 3046 | "tags": ["native"], |
Corentin Wallez | 3a1746e | 2020-01-15 13:14:12 +0000 | [diff] [blame] | 3047 | "members": [ |
| 3048 | {"name": "hinstance", "type": "void", "annotation": "*"}, |
| 3049 | {"name": "hwnd", "type": "void", "annotation": "*"} |
| 3050 | ] |
| 3051 | }, |
Corentin Wallez | aa0731d | 2022-03-21 17:11:53 +0000 | [diff] [blame] | 3052 | "surface descriptor from xcb window": { |
| 3053 | "category": "structure", |
| 3054 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 3055 | "chain roots": ["surface descriptor"], |
Corentin Wallez | aa0731d | 2022-03-21 17:11:53 +0000 | [diff] [blame] | 3056 | "tags": ["upstream"], |
| 3057 | "members": [ |
| 3058 | {"name": "connection", "type": "void", "annotation": "*"}, |
| 3059 | {"name": "window", "type": "uint32_t"} |
| 3060 | ] |
| 3061 | }, |
Shrek Shao | 5b9b986 | 2022-03-09 19:04:21 +0000 | [diff] [blame] | 3062 | "surface descriptor from xlib window": { |
Corentin Wallez | 3a1746e | 2020-01-15 13:14:12 +0000 | [diff] [blame] | 3063 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 3064 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 3065 | "chain roots": ["surface descriptor"], |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 3066 | "tags": ["native"], |
Corentin Wallez | 3a1746e | 2020-01-15 13:14:12 +0000 | [diff] [blame] | 3067 | "members": [ |
| 3068 | {"name": "display", "type": "void", "annotation": "*"}, |
| 3069 | {"name": "window", "type": "uint32_t"} |
| 3070 | ] |
| 3071 | }, |
Shrek Shao | 1554a7d | 2022-03-08 20:56:10 +0000 | [diff] [blame] | 3072 | "surface descriptor from wayland surface": { |
| 3073 | "category": "structure", |
| 3074 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 3075 | "chain roots": ["surface descriptor"], |
Shrek Shao | 1554a7d | 2022-03-08 20:56:10 +0000 | [diff] [blame] | 3076 | "tags": ["native"], |
| 3077 | "members": [ |
| 3078 | {"name": "display", "type": "void", "annotation": "*"}, |
| 3079 | {"name": "surface", "type": "void", "annotation": "*"} |
| 3080 | ] |
| 3081 | }, |
陈俊嘉 | 74326fe | 2021-04-27 16:43:27 +0000 | [diff] [blame] | 3082 | "surface descriptor from windows core window": { |
| 3083 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 3084 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 3085 | "chain roots": ["surface descriptor"], |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 3086 | "tags": ["dawn"], |
陈俊嘉 | 74326fe | 2021-04-27 16:43:27 +0000 | [diff] [blame] | 3087 | "members": [ |
| 3088 | {"name": "core window", "type": "void", "annotation": "*"} |
| 3089 | ] |
| 3090 | }, |
陈俊嘉 | 11379a3 | 2021-06-09 08:44:07 +0000 | [diff] [blame] | 3091 | "surface descriptor from windows swap chain panel": { |
| 3092 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 3093 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 3094 | "chain roots": ["surface descriptor"], |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 3095 | "tags": ["dawn"], |
陈俊嘉 | 11379a3 | 2021-06-09 08:44:07 +0000 | [diff] [blame] | 3096 | "members": [ |
| 3097 | {"name": "swap chain panel", "type": "void", "annotation": "*"} |
| 3098 | ] |
| 3099 | }, |
Kai Ninomiya | 35bf424 | 2017-07-19 15:41:17 -0700 | [diff] [blame] | 3100 | "swap chain": { |
| 3101 | "category": "object", |
dan sinclair | 3ebe5b6 | 2023-08-21 22:57:06 +0000 | [diff] [blame] | 3102 | "tags": ["dawn", "emscripten"], |
Kai Ninomiya | 35bf424 | 2017-07-19 15:41:17 -0700 | [diff] [blame] | 3103 | "methods": [ |
Corentin Wallez | 604072b | 2019-11-12 18:30:11 +0000 | [diff] [blame] | 3104 | {"name": "get current texture view", "returns": "texture view"}, |
Corentin Wallez | 9433a8a | 2023-06-06 12:00:32 +0000 | [diff] [blame] | 3105 | {"name": "get current texture", "returns": "texture", "tags": ["dawn"]}, |
Corentin Wallez | 604072b | 2019-11-12 18:30:11 +0000 | [diff] [blame] | 3106 | {"name": "present"} |
Kai Ninomiya | 35bf424 | 2017-07-19 15:41:17 -0700 | [diff] [blame] | 3107 | ] |
| 3108 | }, |
Corentin Wallez | 7be2a71 | 2019-02-15 11:15:58 +0000 | [diff] [blame] | 3109 | "swap chain descriptor": { |
| 3110 | "category": "structure", |
dan sinclair | 3ebe5b6 | 2023-08-21 22:57:06 +0000 | [diff] [blame] | 3111 | "tags": ["dawn", "emscripten"], |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 3112 | "extensible": "in", |
Corentin Wallez | 7be2a71 | 2019-02-15 11:15:58 +0000 | [diff] [blame] | 3113 | "members": [ |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 3114 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Corentin Wallez | d87e676 | 2020-01-23 17:20:38 +0000 | [diff] [blame] | 3115 | {"name": "usage", "type": "texture usage"}, |
| 3116 | {"name": "format", "type": "texture format"}, |
| 3117 | {"name": "width", "type": "uint32_t"}, |
| 3118 | {"name": "height", "type": "uint32_t"}, |
Corentin Wallez | 087deed | 2023-04-07 14:59:55 +0000 | [diff] [blame] | 3119 | {"name": "present mode", "type": "present mode"} |
Kai Ninomiya | 35bf424 | 2017-07-19 15:41:17 -0700 | [diff] [blame] | 3120 | ] |
| 3121 | }, |
dan sinclair | 3ebe5b6 | 2023-08-21 22:57:06 +0000 | [diff] [blame] | 3122 | "surface texture": { |
| 3123 | "category": "structure", |
| 3124 | "tags": ["upstream"], |
| 3125 | "members": [ |
| 3126 | {"name": "texture", "type": "texture"}, |
| 3127 | {"name": "suboptimal", "type": "bool"}, |
| 3128 | {"name": "status", "type": "surface get current texture status"} |
| 3129 | ] |
| 3130 | }, |
Corentin Wallez | 2b24c3d | 2020-01-15 09:54:42 +0000 | [diff] [blame] | 3131 | "s type": { |
| 3132 | "category": "enum", |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 3133 | "emscripten_no_enum_table": true, |
Corentin Wallez | 2b24c3d | 2020-01-15 09:54:42 +0000 | [diff] [blame] | 3134 | "values": [ |
Austin Eng | 76a8d0b | 2020-04-03 17:37:48 +0000 | [diff] [blame] | 3135 | {"value": 0, "name": "invalid", "valid": false}, |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 3136 | {"value": 1, "name": "surface descriptor from metal layer", "tags": ["native"]}, |
| 3137 | {"value": 2, "name": "surface descriptor from windows HWND", "tags": ["native"]}, |
Shrek Shao | 5b9b986 | 2022-03-09 19:04:21 +0000 | [diff] [blame] | 3138 | {"value": 3, "name": "surface descriptor from xlib window", "tags": ["native"]}, |
Corentin Wallez | 9585c46 | 2020-07-06 18:50:00 +0000 | [diff] [blame] | 3139 | {"value": 4, "name": "surface descriptor from canvas HTML selector"}, |
Corentin Wallez | fee2783 | 2020-04-21 08:04:48 +0000 | [diff] [blame] | 3140 | {"value": 5, "name": "shader module SPIRV descriptor"}, |
| 3141 | {"value": 6, "name": "shader module WGSL descriptor"}, |
Austin Eng | 51d13a4 | 2022-06-13 19:18:55 +0000 | [diff] [blame] | 3142 | {"value": 7, "name": "primitive depth clip control"}, |
Shrek Shao | 1554a7d | 2022-03-08 20:56:10 +0000 | [diff] [blame] | 3143 | {"value": 8, "name": "surface descriptor from wayland surface", "tags": ["native"]}, |
| 3144 | {"value": 9, "name": "surface descriptor from android native window", "tags": ["native"]}, |
Corentin Wallez | aa0731d | 2022-03-21 17:11:53 +0000 | [diff] [blame] | 3145 | {"value": 10, "name": "surface descriptor from xcb window", "tags": ["upstream"]}, |
| 3146 | {"value": 11, "name": "surface descriptor from windows core window", "tags": ["dawn"]}, |
| 3147 | {"value": 12, "name": "external texture binding entry", "tags": ["dawn"]}, |
| 3148 | {"value": 13, "name": "external texture binding layout", "tags": ["dawn"]}, |
| 3149 | {"value": 14, "name": "surface descriptor from windows swap chain panel", "tags": ["dawn"]}, |
Takahiro | 831296d | 2022-06-30 04:19:42 +0000 | [diff] [blame] | 3150 | {"value": 15, "name": "render pass descriptor max draw count"}, |
Corentin Wallez | 53db01b | 2021-11-18 23:05:40 +0000 | [diff] [blame] | 3151 | {"value": 1000, "name": "dawn texture internal usage descriptor", "tags": ["dawn"]}, |
Austin Eng | 2fbc170 | 2022-02-02 21:00:52 +0000 | [diff] [blame] | 3152 | {"value": 1003, "name": "dawn encoder internal usage descriptor", "tags": ["dawn"]}, |
Loko Kung | 44f039d | 2022-03-01 22:59:40 +0000 | [diff] [blame] | 3153 | {"value": 1004, "name": "dawn instance descriptor", "tags": ["dawn", "native"]}, |
Jiawei Shao | 5a0f8d3 | 2022-09-23 00:29:46 +0000 | [diff] [blame] | 3154 | {"value": 1005, "name": "dawn cache device descriptor", "tags": ["dawn", "native"]}, |
Jiawei Shao | 806c583 | 2022-11-23 02:06:11 +0000 | [diff] [blame] | 3155 | {"value": 1006, "name": "dawn adapter properties power preference", "tags": ["dawn", "native"]}, |
Zhaoming Jiang | a12ff9a | 2023-01-30 09:16:51 +0000 | [diff] [blame] | 3156 | {"value": 1007, "name": "dawn buffer descriptor error info from wire client", "tags": ["dawn"]}, |
James Price | 132d8c7 | 2023-02-03 19:38:46 +0000 | [diff] [blame] | 3157 | {"value": 1008, "name": "dawn toggles descriptor", "tags": ["dawn", "native"]}, |
Austin Eng | 0d5e76a | 2023-06-20 02:51:26 +0000 | [diff] [blame] | 3158 | {"value": 1009, "name": "dawn shader module SPIRV options descriptor", "tags": ["dawn"]}, |
Austin Eng | 493de1e | 2023-06-20 22:58:27 +0000 | [diff] [blame] | 3159 | {"value": 1010, "name": "request adapter options LUID", "tags": ["dawn", "native"]}, |
Le Hoang Quyen | b5879ac | 2023-06-27 08:32:22 +0000 | [diff] [blame] | 3160 | {"value": 1011, "name": "request adapter options get GL proc", "tags": ["dawn", "native"]}, |
| 3161 | {"value": 1012, "name": "dawn multisample state render to single sampled", "tags": ["dawn"]}, |
Austin Eng | 5a54d9e | 2023-08-04 13:49:24 +0000 | [diff] [blame] | 3162 | {"value": 1013, "name": "dawn render pass color attachment render to single sampled", "tags": ["dawn"]}, |
Corentin Wallez | 7d78e3c | 2023-08-15 16:46:12 +0000 | [diff] [blame] | 3163 | {"value": 1014, "name": "render pass pixel local storage", "tags": ["dawn"]}, |
| 3164 | {"value": 1015, "name": "pipeline layout pixel local storage", "tags": ["dawn"]}, |
Austin Eng | 5a54d9e | 2023-08-04 13:49:24 +0000 | [diff] [blame] | 3165 | |
| 3166 | {"value": 1100, "name": "shared texture memory vk image descriptor", "tags": ["dawn", "native"]}, |
| 3167 | {"value": 1101, "name": "shared texture memory vk dedicated allocation descriptor", "tags": ["dawn", "native"]}, |
| 3168 | {"value": 1102, "name": "shared texture memory a hardware buffer descriptor", "tags": ["dawn", "native"]}, |
| 3169 | {"value": 1103, "name": "shared texture memory dma buf descriptor", "tags": ["dawn", "native"]}, |
| 3170 | {"value": 1104, "name": "shared texture memory opaque FD descriptor", "tags": ["dawn", "native"]}, |
| 3171 | {"value": 1105, "name": "shared texture memory zircon handle descriptor", "tags": ["dawn", "native"]}, |
| 3172 | {"value": 1106, "name": "shared texture memory DXGI shared handle descriptor", "tags": ["dawn", "native"]}, |
| 3173 | {"value": 1107, "name": "shared texture memory D3D11 texture 2D descriptor", "tags": ["dawn", "native"]}, |
| 3174 | {"value": 1108, "name": "shared texture memory IO surface descriptor", "tags": ["dawn", "native"]}, |
| 3175 | {"value": 1109, "name": "shared texture memory EGL image descriptor", "tags": ["dawn", "native"]}, |
| 3176 | {"value": 1200, "name": "shared texture memory initialized begin state", "tags": ["dawn", "native"]}, |
| 3177 | {"value": 1201, "name": "shared texture memory initialized end state", "tags": ["dawn", "native"]}, |
| 3178 | {"value": 1202, "name": "shared texture memory vk image layout begin state", "tags": ["dawn", "native"]}, |
| 3179 | {"value": 1203, "name": "shared texture memory vk image layout end state", "tags": ["dawn", "native"]}, |
| 3180 | {"value": 1204, "name": "shared fence vk semaphore opaque FD descriptor", "tags": ["dawn", "native"]}, |
| 3181 | {"value": 1205, "name": "shared fence vk semaphore opaque FD export info", "tags": ["dawn", "native"]}, |
| 3182 | {"value": 1206, "name": "shared fence vk semaphore sync FD descriptor", "tags": ["dawn", "native"]}, |
| 3183 | {"value": 1207, "name": "shared fence vk semaphore sync FD export info", "tags": ["dawn", "native"]}, |
| 3184 | {"value": 1208, "name": "shared fence vk semaphore zircon handle descriptor", "tags": ["dawn", "native"]}, |
| 3185 | {"value": 1209, "name": "shared fence vk semaphore zircon handle export info", "tags": ["dawn", "native"]}, |
| 3186 | {"value": 1210, "name": "shared fence DXGI shared handle descriptor", "tags": ["dawn", "native"]}, |
| 3187 | {"value": 1211, "name": "shared fence DXGI shared handle export info", "tags": ["dawn", "native"]}, |
| 3188 | {"value": 1212, "name": "shared fence MTL shared event descriptor", "tags": ["dawn", "native"]}, |
| 3189 | {"value": 1213, "name": "shared fence MTL shared event export info", "tags": ["dawn", "native"]} |
Corentin Wallez | 2b24c3d | 2020-01-15 09:54:42 +0000 | [diff] [blame] | 3190 | ] |
| 3191 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 3192 | "texture": { |
| 3193 | "category": "object", |
| 3194 | "methods": [ |
| 3195 | { |
Austin Eng | b4b3ea0 | 2019-04-09 16:57:00 +0000 | [diff] [blame] | 3196 | "name": "create view", |
Jiawei Shao | 6329e5a | 2018-10-12 08:32:58 +0000 | [diff] [blame] | 3197 | "returns": "texture view", |
| 3198 | "args": [ |
Kai Ninomiya | 93196db | 2019-08-26 22:51:19 +0000 | [diff] [blame] | 3199 | {"name": "descriptor", "type": "texture view descriptor", "annotation": "const*", "optional": true} |
Jiawei Shao | 6329e5a | 2018-10-12 08:32:58 +0000 | [diff] [blame] | 3200 | ] |
Natasha Lee | cae68ff | 2019-03-27 22:04:10 +0000 | [diff] [blame] | 3201 | }, |
| 3202 | { |
Brandon Jones | c95e574 | 2021-08-19 20:47:28 +0000 | [diff] [blame] | 3203 | "name": "set label", |
| 3204 | "returns": "void", |
| 3205 | "args": [ |
| 3206 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 3207 | ] |
| 3208 | }, |
| 3209 | { |
Corentin Wallez | 736e97c | 2022-06-08 18:14:02 +0000 | [diff] [blame] | 3210 | "name": "get width", |
| 3211 | "returns": "uint32_t" |
| 3212 | }, |
| 3213 | { |
| 3214 | "name": "get height", |
| 3215 | "returns": "uint32_t" |
| 3216 | }, |
| 3217 | { |
| 3218 | "name": "get depth or array layers", |
| 3219 | "returns": "uint32_t" |
| 3220 | }, |
| 3221 | { |
| 3222 | "name": "get mip level count", |
| 3223 | "returns": "uint32_t" |
| 3224 | }, |
| 3225 | { |
| 3226 | "name": "get sample count", |
| 3227 | "returns": "uint32_t" |
| 3228 | }, |
| 3229 | { |
| 3230 | "name": "get dimension", |
| 3231 | "returns": "texture dimension" |
| 3232 | }, |
| 3233 | { |
| 3234 | "name": "get format", |
| 3235 | "returns": "texture format" |
| 3236 | }, |
| 3237 | { |
| 3238 | "name": "get usage", |
| 3239 | "returns": "texture usage" |
| 3240 | }, |
| 3241 | { |
Natasha Lee | cae68ff | 2019-03-27 22:04:10 +0000 | [diff] [blame] | 3242 | "name": "destroy" |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 3243 | } |
| 3244 | ] |
| 3245 | }, |
dan sinclair | 3ebe5b6 | 2023-08-21 22:57:06 +0000 | [diff] [blame] | 3246 | "surface get current texture status": { |
| 3247 | "category": "enum", |
| 3248 | "tags": ["upstream"], |
| 3249 | "values": [ |
| 3250 | {"value": 0, "name": "success"}, |
| 3251 | {"value": 1, "name": "timeout"}, |
| 3252 | {"value": 2, "name": "outdated"}, |
| 3253 | {"value": 3, "name": "lost"}, |
| 3254 | {"value": 4, "name": "out of memory"}, |
| 3255 | {"value": 5, "name": "device lost"} |
| 3256 | ] |
| 3257 | }, |
Brandon Jones | ac71e34 | 2018-11-28 17:54:13 +0000 | [diff] [blame] | 3258 | "texture aspect": { |
Corentin Wallez | 5df84ce | 2019-07-08 08:55:21 +0000 | [diff] [blame] | 3259 | "category": "enum", |
Brandon Jones | ac71e34 | 2018-11-28 17:54:13 +0000 | [diff] [blame] | 3260 | "values": [ |
Corentin Wallez | 5df84ce | 2019-07-08 08:55:21 +0000 | [diff] [blame] | 3261 | {"value": 0, "name": "all"}, |
| 3262 | {"value": 1, "name": "stencil only"}, |
Bryan Bernhart | 14a2398 | 2021-02-05 20:11:24 +0000 | [diff] [blame] | 3263 | {"value": 2, "name": "depth only"}, |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 3264 | {"value": 3, "name": "plane 0 only", "tags": ["dawn"]}, |
| 3265 | {"value": 4, "name": "plane 1 only", "tags": ["dawn"]} |
Brandon Jones | ac71e34 | 2018-11-28 17:54:13 +0000 | [diff] [blame] | 3266 | ] |
| 3267 | }, |
Tomek Ponitka | 0f5d496 | 2020-07-07 10:18:51 +0000 | [diff] [blame] | 3268 | "texture data layout": { |
| 3269 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 3270 | "extensible": "in", |
Tomek Ponitka | 0f5d496 | 2020-07-07 10:18:51 +0000 | [diff] [blame] | 3271 | "members": [ |
| 3272 | {"name": "offset", "type": "uint64_t", "default": 0}, |
Kai Ninomiya | cf820d7 | 2020-12-16 07:53:30 +0000 | [diff] [blame] | 3273 | {"name": "bytes per row", "type": "uint32_t", "default": "WGPU_COPY_STRIDE_UNDEFINED"}, |
| 3274 | {"name": "rows per image", "type": "uint32_t", "default": "WGPU_COPY_STRIDE_UNDEFINED"} |
Tomek Ponitka | 0f5d496 | 2020-07-07 10:18:51 +0000 | [diff] [blame] | 3275 | ] |
| 3276 | }, |
Jiawei Shao | 425428f | 2018-08-27 08:44:48 +0800 | [diff] [blame] | 3277 | "texture descriptor": { |
| 3278 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 3279 | "extensible": "in", |
Jiawei Shao | 425428f | 2018-08-27 08:44:48 +0800 | [diff] [blame] | 3280 | "members": [ |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 3281 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Corentin Wallez | 9e9e29f | 2019-08-27 08:21:39 +0000 | [diff] [blame] | 3282 | {"name": "usage", "type": "texture usage"}, |
Corentin Wallez | 8f93871 | 2019-07-08 19:20:22 +0000 | [diff] [blame] | 3283 | {"name": "dimension", "type": "texture dimension", "default": "2D"}, |
Corentin Wallez | 29353d6 | 2018-09-18 12:49:22 +0000 | [diff] [blame] | 3284 | {"name": "size", "type": "extent 3D"}, |
Jiawei Shao | 425428f | 2018-08-27 08:44:48 +0800 | [diff] [blame] | 3285 | {"name": "format", "type": "texture format"}, |
Corentin Wallez | 8f93871 | 2019-07-08 19:20:22 +0000 | [diff] [blame] | 3286 | {"name": "mip level count", "type": "uint32_t", "default": 1}, |
Corentin Wallez | eee3449 | 2022-03-16 18:44:16 +0000 | [diff] [blame] | 3287 | {"name": "sample count", "type": "uint32_t", "default": 1}, |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 3288 | {"name": "view format count", "type": "size_t", "default": 0}, |
Austin Eng | 8e02ebf | 2022-03-31 03:53:04 +0000 | [diff] [blame] | 3289 | {"name": "view formats", "type": "texture format", "annotation": "const*", "length": "view format count"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 3290 | ] |
| 3291 | }, |
| 3292 | "texture dimension": { |
| 3293 | "category": "enum", |
| 3294 | "values": [ |
Corentin Wallez | f07e85c | 2019-07-15 20:47:56 +0000 | [diff] [blame] | 3295 | {"value": 0, "name": "1D"}, |
| 3296 | {"value": 1, "name": "2D"}, |
| 3297 | {"value": 2, "name": "3D"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 3298 | ] |
| 3299 | }, |
Corentin Wallez | a60799f | 2018-09-11 18:16:54 +0000 | [diff] [blame] | 3300 | "texture format": { |
| 3301 | "category": "enum", |
| 3302 | "values": [ |
Kai Ninomiya | 7b6246a | 2020-01-28 23:54:38 +0000 | [diff] [blame] | 3303 | {"value": 0, "name": "undefined", "valid": false, "jsrepr": "undefined"}, |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 3304 | |
Corentin Wallez | d55bd7a | 2019-09-05 09:12:32 +0000 | [diff] [blame] | 3305 | {"value": 1, "name": "R8 unorm"}, |
| 3306 | {"value": 2, "name": "R8 snorm"}, |
| 3307 | {"value": 3, "name": "R8 uint"}, |
| 3308 | {"value": 4, "name": "R8 sint"}, |
Corentin Wallez | 431d618 | 2019-07-01 09:58:07 +0000 | [diff] [blame] | 3309 | |
Corentin Wallez | d55bd7a | 2019-09-05 09:12:32 +0000 | [diff] [blame] | 3310 | {"value": 5, "name": "R16 uint"}, |
| 3311 | {"value": 6, "name": "R16 sint"}, |
| 3312 | {"value": 7, "name": "R16 float"}, |
| 3313 | {"value": 8, "name": "RG8 unorm"}, |
| 3314 | {"value": 9, "name": "RG8 snorm"}, |
| 3315 | {"value": 10, "name": "RG8 uint"}, |
| 3316 | {"value": 11, "name": "RG8 sint"}, |
Corentin Wallez | 431d618 | 2019-07-01 09:58:07 +0000 | [diff] [blame] | 3317 | |
Corentin Wallez | d55bd7a | 2019-09-05 09:12:32 +0000 | [diff] [blame] | 3318 | {"value": 12, "name": "R32 float"}, |
| 3319 | {"value": 13, "name": "R32 uint"}, |
| 3320 | {"value": 14, "name": "R32 sint"}, |
| 3321 | {"value": 15, "name": "RG16 uint"}, |
| 3322 | {"value": 16, "name": "RG16 sint"}, |
| 3323 | {"value": 17, "name": "RG16 float"}, |
| 3324 | {"value": 18, "name": "RGBA8 unorm"}, |
| 3325 | {"value": 19, "name": "RGBA8 unorm srgb"}, |
| 3326 | {"value": 20, "name": "RGBA8 snorm"}, |
| 3327 | {"value": 21, "name": "RGBA8 uint"}, |
| 3328 | {"value": 22, "name": "RGBA8 sint"}, |
| 3329 | {"value": 23, "name": "BGRA8 unorm"}, |
| 3330 | {"value": 24, "name": "BGRA8 unorm srgb"}, |
| 3331 | {"value": 25, "name": "RGB10 A2 unorm"}, |
Corentin Wallez | 2f6e4ec | 2020-08-19 21:51:20 +0000 | [diff] [blame] | 3332 | {"value": 26, "name": "RG11 B10 ufloat"}, |
| 3333 | {"value": 27, "name": "RGB9 E5 ufloat"}, |
Corentin Wallez | 431d618 | 2019-07-01 09:58:07 +0000 | [diff] [blame] | 3334 | |
Corentin Wallez | 2f6e4ec | 2020-08-19 21:51:20 +0000 | [diff] [blame] | 3335 | {"value": 28, "name": "RG32 float"}, |
| 3336 | {"value": 29, "name": "RG32 uint"}, |
| 3337 | {"value": 30, "name": "RG32 sint"}, |
| 3338 | {"value": 31, "name": "RGBA16 uint"}, |
| 3339 | {"value": 32, "name": "RGBA16 sint"}, |
| 3340 | {"value": 33, "name": "RGBA16 float"}, |
Corentin Wallez | 431d618 | 2019-07-01 09:58:07 +0000 | [diff] [blame] | 3341 | |
Corentin Wallez | 2f6e4ec | 2020-08-19 21:51:20 +0000 | [diff] [blame] | 3342 | {"value": 34, "name": "RGBA32 float"}, |
| 3343 | {"value": 35, "name": "RGBA32 uint"}, |
| 3344 | {"value": 36, "name": "RGBA32 sint"}, |
Corentin Wallez | 431d618 | 2019-07-01 09:58:07 +0000 | [diff] [blame] | 3345 | |
Kai Ninomiya | fa9ca44 | 2021-09-17 18:25:53 +0000 | [diff] [blame] | 3346 | {"value": 37, "name": "stencil8"}, |
| 3347 | {"value": 38, "name": "depth16 unorm"}, |
| 3348 | {"value": 39, "name": "depth24 plus"}, |
Bryan Bernhart | 536c7ae | 2021-02-16 19:55:09 +0000 | [diff] [blame] | 3349 | {"value": 40, "name": "depth24 plus stencil8"}, |
Brandon Jones | 6d48f57 | 2022-06-14 22:48:31 +0000 | [diff] [blame] | 3350 | {"value": 41, "name": "depth32 float"}, |
| 3351 | {"value": 42, "name": "depth32 float stencil8"}, |
Corentin Wallez | 431d618 | 2019-07-01 09:58:07 +0000 | [diff] [blame] | 3352 | |
Brandon Jones | 6d48f57 | 2022-06-14 22:48:31 +0000 | [diff] [blame] | 3353 | {"value": 43, "name": "BC1 RGBA unorm", "jsrepr": "'bc1-rgba-unorm'"}, |
| 3354 | {"value": 44, "name": "BC1 RGBA unorm srgb", "jsrepr": "'bc1-rgba-unorm-srgb'"}, |
| 3355 | {"value": 45, "name": "BC2 RGBA unorm", "jsrepr": "'bc2-rgba-unorm'"}, |
| 3356 | {"value": 46, "name": "BC2 RGBA unorm srgb", "jsrepr": "'bc2-rgba-unorm-srgb'"}, |
| 3357 | {"value": 47, "name": "BC3 RGBA unorm", "jsrepr": "'bc3-rgba-unorm'"}, |
| 3358 | {"value": 48, "name": "BC3 RGBA unorm srgb", "jsrepr": "'bc3-rgba-unorm-srgb'"}, |
| 3359 | {"value": 49, "name": "BC4 R unorm", "jsrepr": "'bc4-r-unorm'"}, |
| 3360 | {"value": 50, "name": "BC4 R snorm", "jsrepr": "'bc4-r-snorm'"}, |
| 3361 | {"value": 51, "name": "BC5 RG unorm", "jsrepr": "'bc5-rg-unorm'"}, |
| 3362 | {"value": 52, "name": "BC5 RG snorm", "jsrepr": "'bc5-rg-snorm'"}, |
| 3363 | {"value": 53, "name": "BC6H RGB ufloat", "jsrepr": "'bc6h-rgb-ufloat'"}, |
| 3364 | {"value": 54, "name": "BC6H RGB float", "jsrepr": "'bc6h-rgb-float'"}, |
| 3365 | {"value": 55, "name": "BC7 RGBA unorm", "jsrepr": "'bc7-rgba-unorm'"}, |
| 3366 | {"value": 56, "name": "BC7 RGBA unorm srgb", "jsrepr": "'bc7-rgba-unorm-srgb'"}, |
Loko Kung | c7226a7 | 2021-08-31 00:15:45 +0000 | [diff] [blame] | 3367 | |
Brandon Jones | 6d48f57 | 2022-06-14 22:48:31 +0000 | [diff] [blame] | 3368 | {"value": 57, "name": "ETC2 RGB8 unorm", "jsrepr": "'etc2-rgb8unorm'"}, |
| 3369 | {"value": 58, "name": "ETC2 RGB8 unorm srgb", "jsrepr": "'etc2-rgb8unorm-srgb'"}, |
| 3370 | {"value": 59, "name": "ETC2 RGB8A1 unorm", "jsrepr": "'etc2-rgb8a1unorm'"}, |
| 3371 | {"value": 60, "name": "ETC2 RGB8A1 unorm srgb", "jsrepr": "'etc2-rgb8a1unorm-srgb'"}, |
| 3372 | {"value": 61, "name": "ETC2 RGBA8 unorm", "jsrepr": "'etc2-rgba8unorm'"}, |
| 3373 | {"value": 62, "name": "ETC2 RGBA8 unorm srgb", "jsrepr": "'etc2-rgba8unorm-srgb'"}, |
| 3374 | {"value": 63, "name": "EAC R11 unorm", "jsrepr": "'eac-r11unorm'"}, |
| 3375 | {"value": 64, "name": "EAC R11 snorm", "jsrepr": "'eac-r11snorm'"}, |
| 3376 | {"value": 65, "name": "EAC RG11 unorm", "jsrepr": "'eac-rg11unorm'"}, |
| 3377 | {"value": 66, "name": "EAC RG11 snorm", "jsrepr": "'eac-rg11snorm'"}, |
Loko Kung | 37a8649 | 2021-09-07 18:39:04 +0000 | [diff] [blame] | 3378 | |
Brandon Jones | 6d48f57 | 2022-06-14 22:48:31 +0000 | [diff] [blame] | 3379 | {"value": 67, "name": "ASTC 4x4 unorm", "jsrepr": "'astc-4x4-unorm'"}, |
| 3380 | {"value": 68, "name": "ASTC 4x4 unorm srgb", "jsrepr": "'astc-4x4-unorm-srgb'"}, |
| 3381 | {"value": 69, "name": "ASTC 5x4 unorm", "jsrepr": "'astc-5x4-unorm'"}, |
| 3382 | {"value": 70, "name": "ASTC 5x4 unorm srgb", "jsrepr": "'astc-5x4-unorm-srgb'"}, |
| 3383 | {"value": 71, "name": "ASTC 5x5 unorm", "jsrepr": "'astc-5x5-unorm'"}, |
| 3384 | {"value": 72, "name": "ASTC 5x5 unorm srgb", "jsrepr": "'astc-5x5-unorm-srgb'"}, |
| 3385 | {"value": 73, "name": "ASTC 6x5 unorm", "jsrepr": "'astc-6x5-unorm'"}, |
| 3386 | {"value": 74, "name": "ASTC 6x5 unorm srgb", "jsrepr": "'astc-6x5-unorm-srgb'"}, |
| 3387 | {"value": 75, "name": "ASTC 6x6 unorm", "jsrepr": "'astc-6x6-unorm'"}, |
| 3388 | {"value": 76, "name": "ASTC 6x6 unorm srgb", "jsrepr": "'astc-6x6-unorm-srgb'"}, |
| 3389 | {"value": 77, "name": "ASTC 8x5 unorm", "jsrepr": "'astc-8x5-unorm'"}, |
| 3390 | {"value": 78, "name": "ASTC 8x5 unorm srgb", "jsrepr": "'astc-8x5-unorm-srgb'"}, |
| 3391 | {"value": 79, "name": "ASTC 8x6 unorm", "jsrepr": "'astc-8x6-unorm'"}, |
| 3392 | {"value": 80, "name": "ASTC 8x6 unorm srgb", "jsrepr": "'astc-8x6-unorm-srgb'"}, |
| 3393 | {"value": 81, "name": "ASTC 8x8 unorm", "jsrepr": "'astc-8x8-unorm'"}, |
| 3394 | {"value": 82, "name": "ASTC 8x8 unorm srgb", "jsrepr": "'astc-8x8-unorm-srgb'"}, |
| 3395 | {"value": 83, "name": "ASTC 10x5 unorm", "jsrepr": "'astc-10x5-unorm'"}, |
| 3396 | {"value": 84, "name": "ASTC 10x5 unorm srgb", "jsrepr": "'astc-10x5-unorm-srgb'"}, |
| 3397 | {"value": 85, "name": "ASTC 10x6 unorm", "jsrepr": "'astc-10x6-unorm'"}, |
| 3398 | {"value": 86, "name": "ASTC 10x6 unorm srgb", "jsrepr": "'astc-10x6-unorm-srgb'"}, |
| 3399 | {"value": 87, "name": "ASTC 10x8 unorm", "jsrepr": "'astc-10x8-unorm'"}, |
| 3400 | {"value": 88, "name": "ASTC 10x8 unorm srgb", "jsrepr": "'astc-10x8-unorm-srgb'"}, |
| 3401 | {"value": 89, "name": "ASTC 10x10 unorm", "jsrepr": "'astc-10x10-unorm'"}, |
| 3402 | {"value": 90, "name": "ASTC 10x10 unorm srgb", "jsrepr": "'astc-10x10-unorm-srgb'"}, |
| 3403 | {"value": 91, "name": "ASTC 12x10 unorm", "jsrepr": "'astc-12x10-unorm'"}, |
| 3404 | {"value": 92, "name": "ASTC 12x10 unorm srgb", "jsrepr": "'astc-12x10-unorm-srgb'"}, |
| 3405 | {"value": 93, "name": "ASTC 12x12 unorm", "jsrepr": "'astc-12x12-unorm'"}, |
| 3406 | {"value": 94, "name": "ASTC 12x12 unorm srgb", "jsrepr": "'astc-12x12-unorm-srgb'"}, |
Kai Ninomiya | fa9ca44 | 2021-09-17 18:25:53 +0000 | [diff] [blame] | 3407 | |
Jie Chen | 3bf4482 | 2023-08-21 02:56:57 +0000 | [diff] [blame] | 3408 | {"value": 95, "name": "R16 unorm", "tags": ["dawn"]}, |
| 3409 | {"value": 96, "name": "RG16 unorm", "tags": ["dawn"]}, |
| 3410 | {"value": 97, "name": "RGBA16 unorm", "tags": ["dawn"]}, |
| 3411 | {"value": 98, "name": "R16 snorm", "tags": ["dawn"]}, |
| 3412 | {"value": 99, "name": "RG16 snorm", "tags": ["dawn"]}, |
| 3413 | {"value": 100, "name": "RGBA16 snorm", "tags": ["dawn"]}, |
| 3414 | |
Jie Chen | b2abd13 | 2023-08-29 03:23:25 +0000 | [diff] [blame] | 3415 | {"value": 101, "name": "R8 BG8 Biplanar 420 unorm", "tags": ["dawn"]}, |
| 3416 | {"value": 102, "name": "R10X6 BG10X6 Biplanar 420 unorm", "tags": ["dawn"]} |
Corentin Wallez | a60799f | 2018-09-11 18:16:54 +0000 | [diff] [blame] | 3417 | ] |
| 3418 | }, |
Corentin Wallez | 9e9e29f | 2019-08-27 08:21:39 +0000 | [diff] [blame] | 3419 | "texture usage": { |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 3420 | "category": "bitmask", |
| 3421 | "values": [ |
| 3422 | {"value": 0, "name": "none"}, |
Corentin Wallez | ec05355 | 2019-07-08 10:05:46 +0000 | [diff] [blame] | 3423 | {"value": 1, "name": "copy src"}, |
| 3424 | {"value": 2, "name": "copy dst"}, |
Brandon Jones | 27e17a6 | 2021-08-10 04:07:37 +0000 | [diff] [blame] | 3425 | {"value": 4, "name": "texture binding"}, |
| 3426 | {"value": 8, "name": "storage binding"}, |
Corentin Wallez | 6b08781 | 2020-10-27 15:35:56 +0000 | [diff] [blame] | 3427 | {"value": 16, "name": "render attachment"}, |
Corentin Wallez | 7d78e3c | 2023-08-15 16:46:12 +0000 | [diff] [blame] | 3428 | {"value": 32, "name": "transient attachment", "tags": ["dawn"]}, |
| 3429 | {"value": 64, "name": "storage attachment", "tags": ["dawn"]} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 3430 | ] |
| 3431 | }, |
Jiawei Shao | 6329e5a | 2018-10-12 08:32:58 +0000 | [diff] [blame] | 3432 | "texture view descriptor": { |
| 3433 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 3434 | "extensible": "in", |
Jiawei Shao | 6329e5a | 2018-10-12 08:32:58 +0000 | [diff] [blame] | 3435 | "members": [ |
François Beaufort | 277d2e1 | 2019-10-03 14:56:49 +0000 | [diff] [blame] | 3436 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
Corentin Wallez | d55bd7a | 2019-09-05 09:12:32 +0000 | [diff] [blame] | 3437 | {"name": "format", "type": "texture format", "default": "undefined"}, |
| 3438 | {"name": "dimension", "type": "texture view dimension", "default": "undefined"}, |
Corentin Wallez | 8f93871 | 2019-07-08 19:20:22 +0000 | [diff] [blame] | 3439 | {"name": "base mip level", "type": "uint32_t", "default": "0"}, |
jchen10 | 4935c14 | 2021-09-15 06:27:25 +0000 | [diff] [blame] | 3440 | {"name": "mip level count", "type": "uint32_t", "default": "WGPU_MIP_LEVEL_COUNT_UNDEFINED"}, |
Corentin Wallez | 8f93871 | 2019-07-08 19:20:22 +0000 | [diff] [blame] | 3441 | {"name": "base array layer", "type": "uint32_t", "default": "0"}, |
jchen10 | 96ac969 | 2021-09-14 02:41:49 +0000 | [diff] [blame] | 3442 | {"name": "array layer count", "type": "uint32_t", "default": "WGPU_ARRAY_LAYER_COUNT_UNDEFINED"}, |
Corentin Wallez | dbe74bc | 2019-09-10 08:30:43 +0000 | [diff] [blame] | 3443 | {"name": "aspect", "type": "texture aspect", "default": "all"} |
Jiawei Shao | 6329e5a | 2018-10-12 08:32:58 +0000 | [diff] [blame] | 3444 | ] |
| 3445 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 3446 | "texture view": { |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 3447 | "category": "object", |
| 3448 | "methods": [ |
| 3449 | { |
| 3450 | "name": "set label", |
| 3451 | "returns": "void", |
Brandon Jones | 88aeeae | 2021-11-19 18:26:08 +0000 | [diff] [blame] | 3452 | "args": [ |
| 3453 | {"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
| 3454 | ] |
| 3455 | } |
| 3456 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 3457 | }, |
Jiawei Shao | 6329e5a | 2018-10-12 08:32:58 +0000 | [diff] [blame] | 3458 | "texture view dimension": { |
| 3459 | "category": "enum", |
| 3460 | "values": [ |
Kai Ninomiya | 7b6246a | 2020-01-28 23:54:38 +0000 | [diff] [blame] | 3461 | {"value": 0, "name": "undefined", "valid": false, "jsrepr": "undefined"}, |
Corentin Wallez | d55bd7a | 2019-09-05 09:12:32 +0000 | [diff] [blame] | 3462 | {"value": 1, "name": "1D"}, |
| 3463 | {"value": 2, "name": "2D"}, |
| 3464 | {"value": 3, "name": "2D array"}, |
| 3465 | {"value": 4, "name": "cube"}, |
| 3466 | {"value": 5, "name": "cube array"}, |
| 3467 | {"value": 6, "name": "3D"} |
Jiawei Shao | 6329e5a | 2018-10-12 08:32:58 +0000 | [diff] [blame] | 3468 | ] |
| 3469 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 3470 | "vertex format": { |
| 3471 | "category": "enum", |
| 3472 | "values": [ |
Brandon Jones | e3f10e3 | 2021-02-26 02:20:25 +0000 | [diff] [blame] | 3473 | {"value": 0, "name": "undefined", "valid": false, "jsrepr": "undefined"}, |
| 3474 | {"value": 1, "name": "uint8x2"}, |
| 3475 | {"value": 2, "name": "uint8x4"}, |
| 3476 | {"value": 3, "name": "sint8x2"}, |
| 3477 | {"value": 4, "name": "sint8x4"}, |
| 3478 | {"value": 5, "name": "unorm8x2"}, |
| 3479 | {"value": 6, "name": "unorm8x4"}, |
| 3480 | {"value": 7, "name": "snorm8x2"}, |
| 3481 | {"value": 8, "name": "snorm8x4"}, |
| 3482 | {"value": 9, "name": "uint16x2"}, |
| 3483 | {"value": 10, "name": "uint16x4"}, |
| 3484 | {"value": 11, "name": "sint16x2"}, |
| 3485 | {"value": 12, "name": "sint16x4"}, |
| 3486 | {"value": 13, "name": "unorm16x2"}, |
| 3487 | {"value": 14, "name": "unorm16x4"}, |
| 3488 | {"value": 15, "name": "snorm16x2"}, |
| 3489 | {"value": 16, "name": "snorm16x4"}, |
| 3490 | {"value": 17, "name": "float16x2"}, |
| 3491 | {"value": 18, "name": "float16x4"}, |
| 3492 | {"value": 19, "name": "float32"}, |
| 3493 | {"value": 20, "name": "float32x2"}, |
| 3494 | {"value": 21, "name": "float32x3"}, |
| 3495 | {"value": 22, "name": "float32x4"}, |
| 3496 | {"value": 23, "name": "uint32"}, |
| 3497 | {"value": 24, "name": "uint32x2"}, |
| 3498 | {"value": 25, "name": "uint32x3"}, |
| 3499 | {"value": 26, "name": "uint32x4"}, |
| 3500 | {"value": 27, "name": "sint32"}, |
| 3501 | {"value": 28, "name": "sint32x2"}, |
| 3502 | {"value": 29, "name": "sint32x3"}, |
Brandon Jones | 4139fa5 | 2021-05-21 01:29:17 +0000 | [diff] [blame] | 3503 | {"value": 30, "name": "sint32x4"} |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 3504 | ] |
| 3505 | }, |
fujunwei | 4e87690 | 2021-11-25 08:44:01 +0000 | [diff] [blame] | 3506 | "whole size" : { |
| 3507 | "category": "constant", |
| 3508 | "type": "uint64_t", |
| 3509 | "value": "(0xffffffffffffffffULL)" |
| 3510 | }, |
| 3511 | "whole map size" : { |
| 3512 | "category": "constant", |
| 3513 | "type": "size_t", |
| 3514 | "value": "SIZE_MAX" |
| 3515 | }, |
fujunwei | 4e87690 | 2021-11-25 08:44:01 +0000 | [diff] [blame] | 3516 | "copy stride undefined" : { |
| 3517 | "category": "constant", |
| 3518 | "type": "uint32_t", |
| 3519 | "value": "(0xffffffffUL)" |
| 3520 | }, |
| 3521 | "limit u32 undefined" : { |
| 3522 | "category": "constant", |
| 3523 | "type": "uint32_t", |
| 3524 | "value": "(0xffffffffUL)" |
| 3525 | }, |
| 3526 | "limit u64 undefined" : { |
| 3527 | "category": "constant", |
| 3528 | "type": "uint64_t", |
| 3529 | "value": "(0xffffffffffffffffULL)" |
| 3530 | }, |
| 3531 | "array layer count undefined" : { |
| 3532 | "category": "constant", |
| 3533 | "type": "uint32_t", |
| 3534 | "value": "(0xffffffffUL)" |
| 3535 | }, |
| 3536 | "mip level count undefined" : { |
| 3537 | "category": "constant", |
| 3538 | "type": "uint32_t", |
| 3539 | "value": "(0xffffffffUL)" |
| 3540 | }, |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 3541 | "ObjectType": { |
| 3542 | "_comment": "Only used for the wire", |
| 3543 | "category": "native" |
| 3544 | }, |
| 3545 | "ObjectId": { |
| 3546 | "_comment": "Only used for the wire", |
| 3547 | "category": "native" |
| 3548 | }, |
| 3549 | "ObjectHandle": { |
| 3550 | "_comment": "Only used for the wire", |
| 3551 | "category": "native" |
| 3552 | }, |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 3553 | "void": { |
| 3554 | "category": "native" |
| 3555 | }, |
Corentin Wallez | 1325ab1 | 2020-06-30 11:51:14 +0000 | [diff] [blame] | 3556 | "void *": { |
| 3557 | "category": "native" |
| 3558 | }, |
| 3559 | "void const *": { |
| 3560 | "category": "native" |
| 3561 | }, |
Austin Eng | 5a54d9e | 2023-08-04 13:49:24 +0000 | [diff] [blame] | 3562 | "int": { |
| 3563 | "category": "native" |
| 3564 | }, |
Yunchao He | c33a8c1 | 2019-04-11 18:46:54 +0000 | [diff] [blame] | 3565 | "int32_t": { |
| 3566 | "category": "native" |
| 3567 | }, |
Corentin Wallez | 47a3341 | 2020-06-02 09:24:39 +0000 | [diff] [blame] | 3568 | "size_t": { |
Loko Kung | 837f151 | 2023-06-06 03:01:15 +0000 | [diff] [blame] | 3569 | "category": "native", |
| 3570 | "wire transparent": false |
Corentin Wallez | 47a3341 | 2020-06-02 09:24:39 +0000 | [diff] [blame] | 3571 | }, |
shrekshao | f8c5e4a | 2020-12-24 03:11:17 +0000 | [diff] [blame] | 3572 | "uint16_t": { |
| 3573 | "category": "native" |
| 3574 | }, |
| 3575 | "uint32_t": { |
| 3576 | "category": "native" |
| 3577 | }, |
Kai Ninomiya | 35bf424 | 2017-07-19 15:41:17 -0700 | [diff] [blame] | 3578 | "uint64_t": { |
| 3579 | "category": "native" |
Corentin Wallez | a60799f | 2018-09-11 18:16:54 +0000 | [diff] [blame] | 3580 | }, |
| 3581 | "uint8_t": { |
| 3582 | "category": "native" |
Austin Eng | 0eff598 | 2021-07-27 19:59:58 +0000 | [diff] [blame] | 3583 | }, |
| 3584 | "dawn texture internal usage descriptor": { |
| 3585 | "category": "structure", |
Austin Eng | 0c82405 | 2021-09-20 16:07:25 +0000 | [diff] [blame] | 3586 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 3587 | "chain roots": ["texture descriptor"], |
Kai Ninomiya | 930e918 | 2021-09-17 19:44:43 +0000 | [diff] [blame] | 3588 | "tags": ["dawn"], |
Austin Eng | 0eff598 | 2021-07-27 19:59:58 +0000 | [diff] [blame] | 3589 | "members": [ |
| 3590 | {"name": "internal usage", "type": "texture usage", "default": "none"} |
| 3591 | ] |
Austin Eng | aa9475e | 2022-01-18 21:54:25 +0000 | [diff] [blame] | 3592 | }, |
| 3593 | "dawn encoder internal usage descriptor": { |
| 3594 | "category": "structure", |
| 3595 | "chained": "in", |
Corentin Wallez | a45561b | 2022-07-14 12:58:25 +0000 | [diff] [blame] | 3596 | "chain roots": ["command encoder descriptor"], |
Austin Eng | aa9475e | 2022-01-18 21:54:25 +0000 | [diff] [blame] | 3597 | "tags": ["dawn"], |
| 3598 | "members": [ |
| 3599 | {"name": "use internal usages", "type": "bool", "default": "false"} |
| 3600 | ] |
Jiawei Shao | 5a0f8d3 | 2022-09-23 00:29:46 +0000 | [diff] [blame] | 3601 | }, |
| 3602 | "dawn adapter properties power preference": { |
| 3603 | "category": "structure", |
| 3604 | "chained": "out", |
| 3605 | "chain roots": ["adapter properties"], |
| 3606 | "tags": ["dawn"], |
| 3607 | "members": [ |
| 3608 | {"name": "power preference", "type": "power preference", "default": "undefined"} |
| 3609 | ] |
Jiawei Shao | 806c583 | 2022-11-23 02:06:11 +0000 | [diff] [blame] | 3610 | }, |
| 3611 | "dawn buffer descriptor error info from wire client": { |
| 3612 | "category": "structure", |
| 3613 | "chained": "in", |
| 3614 | "chain roots": ["buffer descriptor"], |
| 3615 | "tags": ["dawn"], |
| 3616 | "members": [ |
| 3617 | {"name": "out of memory", "type": "bool", "default": "false"} |
| 3618 | ] |
Austin Eng | 376f1c6 | 2017-05-30 20:03:44 -0400 | [diff] [blame] | 3619 | } |
| 3620 | } |