2017-05-31 00:03:44 +00:00
|
|
|
{
|
|
|
|
"_comment": [
|
2018-07-18 09:40:26 +00:00
|
|
|
"Copyright 2017 The Dawn Authors",
|
2017-05-31 00:03:44 +00:00
|
|
|
"",
|
|
|
|
"Licensed under the Apache License, Version 2.0 (the \"License\");",
|
|
|
|
"you may not use this file except in compliance with the License.",
|
|
|
|
"You may obtain a copy of the License at",
|
|
|
|
"",
|
|
|
|
" http://www.apache.org/licenses/LICENSE-2.0",
|
|
|
|
"",
|
|
|
|
"Unless required by applicable law or agreed to in writing, software",
|
|
|
|
"distributed under the License is distributed on an \"AS IS\" BASIS,",
|
|
|
|
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
|
|
|
|
"See the License for the specific language governing permissions and",
|
|
|
|
"limitations under the License."
|
|
|
|
],
|
2021-03-24 20:29:42 +00:00
|
|
|
|
2022-01-27 18:33:47 +00:00
|
|
|
"_doc": "See docs/dawn/codegen.md",
|
2021-03-24 20:29:42 +00:00
|
|
|
|
2021-11-23 08:47:35 +00:00
|
|
|
"_metadata": {
|
|
|
|
"api": "WebGPU",
|
|
|
|
"c_prefix": "WGPU",
|
2021-12-02 21:25:58 +00:00
|
|
|
"namespace": "wgpu",
|
2021-12-05 05:29:44 +00:00
|
|
|
"proc_table_prefix": "Dawn",
|
2021-12-16 04:54:38 +00:00
|
|
|
"native_namespace": "dawn native",
|
2021-12-02 21:25:58 +00:00
|
|
|
"copyright_year": "2019"
|
2021-11-23 08:47:35 +00:00
|
|
|
},
|
|
|
|
|
2021-12-02 07:41:21 +00:00
|
|
|
"create instance": {
|
|
|
|
"category": "function",
|
|
|
|
"returns": "instance",
|
|
|
|
"args": [
|
2021-12-07 00:46:35 +00:00
|
|
|
{"name": "descriptor", "type": "instance descriptor", "annotation": "const*", "optional": true}
|
2021-12-02 07:41:21 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"proc": {
|
|
|
|
"category": "function pointer",
|
|
|
|
"returns": "void",
|
|
|
|
"args": []
|
|
|
|
},
|
|
|
|
"get proc address": {
|
|
|
|
"category": "function",
|
|
|
|
"returns": "proc",
|
|
|
|
"args": [
|
|
|
|
{"name": "device", "type": "device"},
|
|
|
|
{"name": "proc name", "type": "char", "annotation": "const*"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2021-09-17 21:13:33 +00:00
|
|
|
"request adapter options": {
|
|
|
|
"category": "structure",
|
2021-09-20 18:19:55 +00:00
|
|
|
"extensible": "in",
|
2021-09-17 21:13:33 +00:00
|
|
|
"members": [
|
2021-12-14 23:22:46 +00:00
|
|
|
{"name": "compatible surface", "type": "surface", "optional": true},
|
|
|
|
{"name": "power preference", "type": "power preference", "default": "undefined"},
|
|
|
|
{"name": "force fallback adapter", "type": "bool", "default": "false"}
|
2021-09-17 21:13:33 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"request adapter status": {
|
|
|
|
"category": "enum",
|
|
|
|
"emscripten_no_enum_table": true,
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "success"},
|
|
|
|
{"value": 1, "name": "unavailable"},
|
|
|
|
{"value": 2, "name": "error"},
|
|
|
|
{"value": 3, "name": "unknown"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"request adapter callback": {
|
2021-12-02 07:41:21 +00:00
|
|
|
"category": "function pointer",
|
2021-09-17 21:13:33 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "status", "type": "request adapter status"},
|
|
|
|
{"name": "adapter", "type": "adapter"},
|
2021-12-14 23:22:46 +00:00
|
|
|
{"name": "message", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2021-09-17 21:13:33 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"adapter": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
2021-09-21 17:36:27 +00:00
|
|
|
{
|
|
|
|
"name": "get limits",
|
|
|
|
"returns": "bool",
|
|
|
|
"args": [
|
|
|
|
{"name": "limits", "type": "supported limits", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2021-09-17 21:13:33 +00:00
|
|
|
{
|
|
|
|
"name": "get properties",
|
|
|
|
"args": [
|
|
|
|
{"name": "properties", "type": "adapter properties", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2021-09-21 17:36:27 +00:00
|
|
|
{
|
|
|
|
"name": "has feature",
|
|
|
|
"returns": "bool",
|
|
|
|
"args": [
|
|
|
|
{"name": "feature", "type": "feature name"}
|
|
|
|
]
|
|
|
|
},
|
2021-12-15 00:12:30 +00:00
|
|
|
{
|
|
|
|
"name": "enumerate features",
|
2022-01-06 22:11:28 +00:00
|
|
|
"returns": "size_t",
|
2021-12-15 00:12:30 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "features", "type": "feature name", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2021-09-17 21:13:33 +00:00
|
|
|
{
|
|
|
|
"name": "request device",
|
|
|
|
"args": [
|
2022-07-26 17:36:44 +00:00
|
|
|
{"name": "descriptor", "type": "device descriptor", "annotation": "const*", "optional": true, "no_default": true},
|
2021-12-13 17:37:17 +00:00
|
|
|
{"name": "callback", "type": "request device callback"},
|
2021-09-17 21:13:33 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
2021-12-22 19:02:23 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "create device",
|
|
|
|
"tags": ["dawn"],
|
|
|
|
"returns": "device",
|
|
|
|
"args": [
|
2022-07-26 17:36:44 +00:00
|
|
|
{"name": "descriptor", "type": "device descriptor", "annotation": "const*", "optional": true}
|
2021-12-22 19:02:23 +00:00
|
|
|
]
|
2021-09-17 21:13:33 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-01-10 13:28:18 +00:00
|
|
|
"adapter properties": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "out",
|
2020-01-10 13:28:18 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "vendor ID", "type": "uint32_t"},
|
2022-05-26 23:47:39 +00:00
|
|
|
{"name": "vendor name", "type": "char", "annotation": "const*", "length": "strlen"},
|
|
|
|
{"name": "architecture", "type": "char", "annotation": "const*", "length": "strlen"},
|
2021-09-17 19:44:43 +00:00
|
|
|
{"name": "device ID", "type": "uint32_t"},
|
2021-12-01 08:13:40 +00:00
|
|
|
{"name": "name", "type": "char", "annotation": "const*", "length": "strlen"},
|
|
|
|
{"name": "driver description", "type": "char", "annotation": "const*", "length": "strlen"},
|
2020-01-10 13:28:18 +00:00
|
|
|
{"name": "adapter type", "type": "adapter type"},
|
|
|
|
{"name": "backend type", "type": "backend type"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"adapter type": {
|
|
|
|
"category": "enum",
|
2021-09-17 19:44:43 +00:00
|
|
|
"emscripten_no_enum_table": true,
|
2020-01-10 13:28:18 +00:00
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "discrete GPU"},
|
|
|
|
{"value": 1, "name": "integrated GPU"},
|
|
|
|
{"value": 2, "name": "CPU"},
|
2020-04-01 12:07:43 +00:00
|
|
|
{"value": 3, "name": "unknown"}
|
2020-01-10 13:28:18 +00:00
|
|
|
]
|
|
|
|
},
|
2021-09-17 21:13:33 +00:00
|
|
|
"device descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 18:19:55 +00:00
|
|
|
"extensible": "in",
|
2021-09-21 17:36:27 +00:00
|
|
|
"members": [
|
2021-11-17 08:13:24 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2021-12-14 23:22:46 +00:00
|
|
|
{"name": "required features count", "type": "uint32_t", "default": 0},
|
|
|
|
{"name": "required features", "type": "feature name", "annotation": "const*", "length": "required features count", "default": "nullptr"},
|
2022-03-16 18:44:16 +00:00
|
|
|
{"name": "required limits", "type": "required limits", "annotation": "const*", "optional": true},
|
2022-04-12 03:28:40 +00:00
|
|
|
{"name": "default queue", "type": "queue descriptor"}
|
2021-09-21 17:36:27 +00:00
|
|
|
]
|
2021-09-17 21:13:33 +00:00
|
|
|
},
|
2021-12-22 19:02:23 +00:00
|
|
|
"dawn toggles device descriptor": {
|
2023-01-30 09:16:51 +00:00
|
|
|
"tags": ["dawn", "native", "deprecated"],
|
2021-12-22 19:02:23 +00:00
|
|
|
"category": "structure",
|
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["device descriptor"],
|
2021-12-22 19:02:23 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "force enabled toggles count", "type": "uint32_t", "default": 0},
|
|
|
|
{"name": "force enabled toggles", "type": "char", "annotation": "const*const*", "length": "force enabled toggles count"},
|
|
|
|
{"name": "force disabled toggles count", "type": "uint32_t", "default": 0},
|
|
|
|
{"name": "force disabled toggles", "type": "char", "annotation": "const*const*", "length": "force disabled toggles count"}
|
|
|
|
]
|
|
|
|
},
|
2023-01-30 09:16:51 +00:00
|
|
|
"dawn toggles descriptor": {
|
|
|
|
"tags": ["dawn", "native"],
|
|
|
|
"category": "structure",
|
|
|
|
"chained": "in",
|
|
|
|
"chain roots": ["device descriptor"],
|
|
|
|
"members": [
|
|
|
|
{"name": "enabled toggles count", "type": "uint32_t", "default": 0},
|
|
|
|
{"name": "enabled toggles", "type": "char", "annotation": "const*const*", "length": "enabled toggles count"},
|
|
|
|
{"name": "disabled toggles count", "type": "uint32_t", "default": 0},
|
|
|
|
{"name": "disabled toggles", "type": "char", "annotation": "const*const*", "length": "disabled toggles count"}
|
|
|
|
]
|
|
|
|
},
|
2022-03-01 22:59:40 +00:00
|
|
|
"dawn cache device descriptor" : {
|
|
|
|
"tags": ["dawn", "native"],
|
|
|
|
"category": "structure",
|
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["device descriptor"],
|
2022-03-01 22:59:40 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "isolation key", "type": "char", "annotation": "const*", "length": "strlen", "default": "\"\""}
|
|
|
|
]
|
|
|
|
},
|
2018-09-11 18:16:54 +00:00
|
|
|
"address mode": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2019-01-04 04:56:08 +00:00
|
|
|
{"value": 0, "name": "repeat"},
|
2019-07-08 09:36:31 +00:00
|
|
|
{"value": 1, "name": "mirror repeat"},
|
2019-04-09 15:12:50 +00:00
|
|
|
{"value": 2, "name": "clamp to edge"}
|
2018-09-11 18:16:54 +00:00
|
|
|
]
|
2017-06-01 15:30:03 +00:00
|
|
|
},
|
2020-01-10 13:28:18 +00:00
|
|
|
"backend type": {
|
|
|
|
"category": "enum",
|
2021-09-17 19:44:43 +00:00
|
|
|
"emscripten_no_enum_table": true,
|
2020-01-10 13:28:18 +00:00
|
|
|
"values": [
|
2020-01-21 08:44:25 +00:00
|
|
|
{"value": 0, "name": "null"},
|
2021-09-17 21:13:33 +00:00
|
|
|
{"value": 1, "name": "WebGPU"},
|
|
|
|
{"value": 2, "name": "D3D11"},
|
|
|
|
{"value": 3, "name": "D3D12"},
|
|
|
|
{"value": 4, "name": "metal"},
|
|
|
|
{"value": 5, "name": "vulkan"},
|
|
|
|
{"value": 6, "name": "openGL"},
|
|
|
|
{"value": 7, "name": "openGLES"}
|
2020-01-10 13:28:18 +00:00
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"bind group": {
|
2021-11-19 18:26:08 +00:00
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
2020-04-07 07:11:12 +00:00
|
|
|
"bind group entry": {
|
2018-12-05 07:18:30 +00:00
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2018-12-05 07:18:30 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "binding", "type": "uint32_t"},
|
2018-12-07 12:31:53 +00:00
|
|
|
{"name": "buffer", "type": "buffer", "optional": true},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "offset", "type": "uint64_t", "default": "0"},
|
2022-09-28 12:49:27 +00:00
|
|
|
{"name": "size", "type": "uint64_t", "default": "WGPU_WHOLE_SIZE"},
|
2018-12-05 07:18:30 +00:00
|
|
|
{"name": "sampler", "type": "sampler", "optional": true},
|
|
|
|
{"name": "texture view", "type": "texture view", "optional": true}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"bind group descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2018-12-05 07:18:30 +00:00
|
|
|
"members": [
|
2019-10-03 14:56:49 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2018-12-05 07:18:30 +00:00
|
|
|
{"name": "layout", "type": "bind group layout"},
|
2020-05-13 17:05:55 +00:00
|
|
|
{"name": "entry count", "type": "uint32_t"},
|
2020-04-21 07:36:30 +00:00
|
|
|
{"name": "entries", "type": "bind group entry", "annotation": "const*", "length": "entry count"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"bind group layout": {
|
2021-11-19 18:26:08 +00:00
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
2020-12-12 02:09:56 +00:00
|
|
|
|
|
|
|
"buffer binding type": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "undefined", "jsrepr": "undefined", "valid": false},
|
|
|
|
{"value": 1, "name": "uniform"},
|
|
|
|
{"value": 2, "name": "storage"},
|
2021-09-17 21:13:33 +00:00
|
|
|
{"value": 3, "name": "read only storage"}
|
2020-12-12 02:09:56 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"buffer binding layout": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2020-12-12 02:09:56 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "type", "type": "buffer binding type", "default": "undefined"},
|
|
|
|
{"name": "has dynamic offset", "type": "bool", "default": "false"},
|
|
|
|
{"name": "min binding size", "type": "uint64_t", "default": "0"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"sampler binding type": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "undefined", "jsrepr": "undefined", "valid": false},
|
|
|
|
{"value": 1, "name": "filtering"},
|
|
|
|
{"value": 2, "name": "non filtering"},
|
|
|
|
{"value": 3, "name": "comparison"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sampler binding layout": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2020-12-12 02:09:56 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "type", "type": "sampler binding type", "default": "undefined"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"texture sample type": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "undefined", "jsrepr": "undefined", "valid": false},
|
|
|
|
{"value": 1, "name": "float"},
|
|
|
|
{"value": 2, "name": "unfilterable float"},
|
|
|
|
{"value": 3, "name": "depth"},
|
|
|
|
{"value": 4, "name": "sint"},
|
|
|
|
{"value": 5, "name": "uint"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"texture binding layout": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2020-12-12 02:09:56 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "sample type", "type": "texture sample type", "default": "undefined"},
|
|
|
|
{"name": "view dimension", "type": "texture view dimension", "default": "undefined"},
|
|
|
|
{"name": "multisampled", "type": "bool", "default": "false"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2021-06-01 19:45:53 +00:00
|
|
|
"external texture binding entry": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["bind group entry"],
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
2021-06-01 19:45:53 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "external texture", "type": "external texture"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"external texture binding layout": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["bind group layout entry"],
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
2021-06-01 19:45:53 +00:00
|
|
|
"members": []
|
|
|
|
},
|
|
|
|
|
2020-12-12 02:09:56 +00:00
|
|
|
"storage texture access": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "undefined", "jsrepr": "undefined", "valid": false},
|
2021-09-17 19:44:43 +00:00
|
|
|
{"value": 1, "name": "write only"}
|
2020-12-12 02:09:56 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"storage texture binding layout": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2020-12-12 02:09:56 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "access", "type": "storage texture access", "default": "undefined"},
|
|
|
|
{"name": "format", "type": "texture format", "default": "undefined"},
|
|
|
|
{"name": "view dimension", "type": "texture view dimension", "default": "undefined"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2020-04-07 07:11:12 +00:00
|
|
|
"bind group layout entry": {
|
2018-07-10 19:23:50 +00:00
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2018-07-10 19:23:50 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "binding", "type": "uint32_t"},
|
2019-08-27 08:42:29 +00:00
|
|
|
{"name": "visibility", "type": "shader stage"},
|
2020-12-12 02:09:56 +00:00
|
|
|
{"name": "buffer", "type": "buffer binding layout"},
|
|
|
|
{"name": "sampler", "type": "sampler binding layout"},
|
|
|
|
{"name": "texture", "type": "texture binding layout"},
|
|
|
|
{"name": "storage texture", "type": "storage texture binding layout"}
|
2018-07-10 19:23:50 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"bind group layout descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2018-07-10 19:23:50 +00:00
|
|
|
"members": [
|
2019-10-03 14:56:49 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2020-05-13 17:05:55 +00:00
|
|
|
{"name": "entry count", "type": "uint32_t"},
|
2020-04-21 07:36:30 +00:00
|
|
|
{"name": "entries", "type": "bind group layout entry", "annotation": "const*", "length": "entry count"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2021-03-11 21:19:00 +00:00
|
|
|
"blend component": {
|
2018-10-29 09:06:55 +00:00
|
|
|
"category": "structure",
|
|
|
|
"extensible": false,
|
|
|
|
"members": [
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "operation", "type": "blend operation", "default": "add"},
|
|
|
|
{"name": "src factor", "type": "blend factor", "default": "one"},
|
|
|
|
{"name": "dst factor", "type": "blend factor", "default": "zero"}
|
2018-10-29 09:06:55 +00:00
|
|
|
]
|
|
|
|
},
|
2017-07-26 20:59:53 +00:00
|
|
|
"blend factor": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "zero"},
|
|
|
|
{"value": 1, "name": "one"},
|
2021-04-15 18:34:29 +00:00
|
|
|
{"value": 2, "name": "src"},
|
|
|
|
{"value": 3, "name": "one minus src"},
|
2017-07-26 20:59:53 +00:00
|
|
|
{"value": 4, "name": "src alpha"},
|
|
|
|
{"value": 5, "name": "one minus src alpha"},
|
2021-04-15 18:34:29 +00:00
|
|
|
{"value": 6, "name": "dst"},
|
|
|
|
{"value": 7, "name": "one minus dst"},
|
2017-07-26 20:59:53 +00:00
|
|
|
{"value": 8, "name": "dst alpha"},
|
|
|
|
{"value": 9, "name": "one minus dst alpha"},
|
|
|
|
{"value": 10, "name": "src alpha saturated"},
|
2021-04-15 18:34:29 +00:00
|
|
|
{"value": 11, "name": "constant"},
|
2021-09-03 16:37:00 +00:00
|
|
|
{"value": 12, "name": "one minus constant"}
|
2017-07-26 20:59:53 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"blend operation": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "add"},
|
|
|
|
{"value": 1, "name": "subtract"},
|
|
|
|
{"value": 2, "name": "reverse subtract"},
|
|
|
|
{"value": 3, "name": "min"},
|
|
|
|
{"value": 4, "name": "max"}
|
|
|
|
]
|
|
|
|
},
|
2018-09-11 18:16:54 +00:00
|
|
|
"bool": {
|
|
|
|
"category": "native"
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"buffer": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
2020-07-14 12:30:14 +00:00
|
|
|
{
|
|
|
|
"name": "map async",
|
|
|
|
"args": [
|
2020-07-20 16:24:20 +00:00
|
|
|
{"name": "mode", "type": "map mode"},
|
2020-07-14 12:30:14 +00:00
|
|
|
{"name": "offset", "type": "size_t"},
|
|
|
|
{"name": "size", "type": "size_t"},
|
2021-12-13 17:37:17 +00:00
|
|
|
{"name": "callback", "type": "buffer map callback"},
|
2020-07-14 12:30:14 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2020-06-30 11:51:14 +00:00
|
|
|
{
|
|
|
|
"name": "get mapped range",
|
2020-07-17 18:50:37 +00:00
|
|
|
"returns": "void *",
|
|
|
|
"args": [
|
|
|
|
{"name": "offset", "type": "size_t", "default": 0},
|
2022-04-29 18:12:17 +00:00
|
|
|
{"name": "size", "type": "size_t", "default": "WGPU_WHOLE_MAP_SIZE"}
|
2020-07-17 18:50:37 +00:00
|
|
|
]
|
2020-06-30 11:51:14 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "get const mapped range",
|
2020-07-17 18:50:37 +00:00
|
|
|
"returns": "void const *",
|
|
|
|
"args": [
|
|
|
|
{"name": "offset", "type": "size_t", "default": 0},
|
2022-04-29 18:12:17 +00:00
|
|
|
{"name": "size", "type": "size_t", "default": "WGPU_WHOLE_MAP_SIZE"}
|
2020-07-17 18:50:37 +00:00
|
|
|
]
|
2020-06-30 11:51:14 +00:00
|
|
|
},
|
2021-08-19 20:47:28 +00:00
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
},
|
2022-06-08 14:46:41 +00:00
|
|
|
{
|
|
|
|
"name": "get usage",
|
|
|
|
"returns": "buffer usage"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "get size",
|
|
|
|
"returns": "uint64_t"
|
|
|
|
},
|
2022-12-19 19:06:51 +00:00
|
|
|
{
|
|
|
|
"name": "get map state",
|
|
|
|
"returns": "buffer map state"
|
|
|
|
},
|
2017-06-09 14:51:29 +00:00
|
|
|
{
|
|
|
|
"name": "unmap"
|
2019-02-13 21:26:48 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "destroy"
|
2017-05-31 00:03:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-08-22 13:37:29 +00:00
|
|
|
"buffer descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2018-08-22 13:37:29 +00:00
|
|
|
"members": [
|
2019-10-03 14:56:49 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2019-08-27 08:21:39 +00:00
|
|
|
{"name": "usage", "type": "buffer usage"},
|
2020-07-07 11:21:51 +00:00
|
|
|
{"name": "size", "type": "uint64_t"},
|
|
|
|
{"name": "mapped at creation", "type": "bool", "default": "false"}
|
2018-08-22 13:37:29 +00:00
|
|
|
]
|
|
|
|
},
|
2020-07-14 12:30:14 +00:00
|
|
|
"buffer map callback": {
|
2021-12-02 07:41:21 +00:00
|
|
|
"category": "function pointer",
|
2020-07-14 12:30:14 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "status", "type": "buffer map async status"},
|
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2018-03-20 23:48:54 +00:00
|
|
|
"buffer map async status": {
|
2017-06-09 14:51:29 +00:00
|
|
|
"category": "enum",
|
2021-09-17 19:44:43 +00:00
|
|
|
"emscripten_no_enum_table": true,
|
2017-06-09 14:51:29 +00:00
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "success"},
|
|
|
|
{"value": 1, "name": "error"},
|
|
|
|
{"value": 2, "name": "unknown"},
|
2020-09-27 02:00:52 +00:00
|
|
|
{"value": 3, "name": "device lost"},
|
|
|
|
{"value": 4, "name": "destroyed before callback"},
|
|
|
|
{"value": 5, "name": "unmapped before callback"}
|
2017-06-09 14:51:29 +00:00
|
|
|
]
|
|
|
|
},
|
2022-12-19 19:06:51 +00:00
|
|
|
"buffer map state": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "unmapped"},
|
|
|
|
{"value": 1, "name": "pending"},
|
|
|
|
{"value": 2, "name": "mapped"}
|
|
|
|
]
|
|
|
|
},
|
2019-08-27 08:21:39 +00:00
|
|
|
"buffer usage": {
|
2017-05-31 00:03:44 +00:00
|
|
|
"category": "bitmask",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "none"},
|
2017-06-05 19:42:14 +00:00
|
|
|
{"value": 1, "name": "map read"},
|
2017-06-16 19:35:12 +00:00
|
|
|
{"value": 2, "name": "map write"},
|
2019-07-08 10:05:46 +00:00
|
|
|
{"value": 4, "name": "copy src"},
|
|
|
|
{"value": 8, "name": "copy dst"},
|
2017-06-16 19:35:12 +00:00
|
|
|
{"value": 16, "name": "index"},
|
|
|
|
{"value": 32, "name": "vertex"},
|
|
|
|
{"value": 64, "name": "uniform"},
|
2019-06-10 20:56:27 +00:00
|
|
|
{"value": 128, "name": "storage"},
|
2020-07-17 09:02:46 +00:00
|
|
|
{"value": 256, "name": "indirect"},
|
|
|
|
{"value": 512, "name": "query resolve"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"char": {
|
|
|
|
"category": "native"
|
|
|
|
},
|
2018-12-19 08:21:13 +00:00
|
|
|
"color": {
|
|
|
|
"category": "structure",
|
|
|
|
"members": [
|
2020-09-22 16:51:36 +00:00
|
|
|
{"name": "r", "type": "double"},
|
|
|
|
{"name": "g", "type": "double"},
|
|
|
|
{"name": "b", "type": "double"},
|
|
|
|
{"name": "a", "type": "double"}
|
2018-12-19 08:21:13 +00:00
|
|
|
]
|
|
|
|
},
|
2017-07-26 20:59:53 +00:00
|
|
|
"color write mask": {
|
|
|
|
"category": "bitmask",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "none"},
|
|
|
|
{"value": 1, "name": "red"},
|
|
|
|
{"value": 2, "name": "green"},
|
|
|
|
{"value": 4, "name": "blue"},
|
|
|
|
{"value": 8, "name": "alpha"},
|
|
|
|
{"value": 15, "name": "all"}
|
|
|
|
]
|
|
|
|
},
|
2021-09-21 17:36:27 +00:00
|
|
|
"constant entry": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": "in",
|
|
|
|
"members": [
|
2021-09-28 20:15:52 +00:00
|
|
|
{"name": "key", "type": "char", "annotation": "const*", "length": "strlen"},
|
2021-09-21 17:36:27 +00:00
|
|
|
{"name": "value", "type": "double"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"command buffer": {
|
2021-11-23 00:09:25 +00:00
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
2019-07-10 20:43:13 +00:00
|
|
|
"command buffer descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2019-09-25 13:56:48 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}
|
|
|
|
]
|
2019-07-10 20:43:13 +00:00
|
|
|
},
|
2019-02-15 12:54:08 +00:00
|
|
|
"command encoder": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "finish",
|
2019-07-10 20:43:13 +00:00
|
|
|
"returns": "command buffer",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "command buffer descriptor", "annotation": "const*", "optional": true}
|
|
|
|
]
|
2019-02-15 12:54:08 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "begin compute pass",
|
2019-07-10 20:43:13 +00:00
|
|
|
"returns": "compute pass encoder",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "compute pass descriptor", "annotation": "const*", "optional": true}
|
|
|
|
]
|
2019-02-15 12:54:08 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "begin render pass",
|
2019-07-10 20:43:13 +00:00
|
|
|
"returns": "render pass encoder",
|
2019-02-15 12:54:08 +00:00
|
|
|
"args": [
|
2019-07-10 20:43:13 +00:00
|
|
|
{"name": "descriptor", "type": "render pass descriptor", "annotation": "const*"}
|
|
|
|
]
|
2019-02-15 12:54:08 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "copy buffer to buffer",
|
|
|
|
"args": [
|
|
|
|
{"name": "source", "type": "buffer"},
|
2019-04-05 20:51:29 +00:00
|
|
|
{"name": "source offset", "type": "uint64_t"},
|
2019-02-15 12:54:08 +00:00
|
|
|
{"name": "destination", "type": "buffer"},
|
2019-04-05 20:51:29 +00:00
|
|
|
{"name": "destination offset", "type": "uint64_t"},
|
|
|
|
{"name": "size", "type": "uint64_t"}
|
2019-02-15 12:54:08 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "copy buffer to texture",
|
|
|
|
"args": [
|
2021-03-04 18:13:45 +00:00
|
|
|
{"name": "source", "type": "image copy buffer", "annotation": "const*"},
|
|
|
|
{"name": "destination", "type": "image copy texture", "annotation": "const*"},
|
2019-02-15 12:54:08 +00:00
|
|
|
{"name": "copy size", "type": "extent 3D", "annotation": "const*"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "copy texture to buffer",
|
|
|
|
"args": [
|
2021-03-04 18:13:45 +00:00
|
|
|
{"name": "source", "type": "image copy texture", "annotation": "const*"},
|
|
|
|
{"name": "destination", "type": "image copy buffer", "annotation": "const*"},
|
2019-02-15 12:54:08 +00:00
|
|
|
{"name": "copy size", "type": "extent 3D", "annotation": "const*"}
|
|
|
|
]
|
2019-03-26 11:06:23 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "copy texture to texture",
|
|
|
|
"args": [
|
2021-08-05 22:55:09 +00:00
|
|
|
{"name": "source", "type": "image copy texture", "annotation": "const*"},
|
|
|
|
{"name": "destination", "type": "image copy texture", "annotation": "const*"},
|
|
|
|
{"name": "copy size", "type": "extent 3D", "annotation": "const*"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "copy texture to texture internal",
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
2021-08-05 22:55:09 +00:00
|
|
|
"args": [
|
2021-03-04 18:13:45 +00:00
|
|
|
{"name": "source", "type": "image copy texture", "annotation": "const*"},
|
|
|
|
{"name": "destination", "type": "image copy texture", "annotation": "const*"},
|
2019-03-26 11:06:23 +00:00
|
|
|
{"name": "copy size", "type": "extent 3D", "annotation": "const*"}
|
|
|
|
]
|
2019-09-10 08:20:40 +00:00
|
|
|
},
|
2021-11-17 08:13:24 +00:00
|
|
|
{
|
2021-12-02 21:43:49 +00:00
|
|
|
"name": "clear buffer",
|
2021-11-17 08:13:24 +00:00
|
|
|
"args": [
|
2021-12-02 21:43:49 +00:00
|
|
|
{"name": "buffer", "type": "buffer"},
|
|
|
|
{"name": "offset", "type": "uint64_t", "default": 0},
|
|
|
|
{"name": "size", "type": "uint64_t", "default": "WGPU_WHOLE_SIZE"}
|
2021-11-17 08:13:24 +00:00
|
|
|
]
|
|
|
|
},
|
2020-11-14 01:24:03 +00:00
|
|
|
{
|
|
|
|
"name": "inject validation error",
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
2020-11-14 01:24:03 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "message", "type": "char", "annotation": "const*", "length": "strlen"}
|
2021-09-17 19:44:43 +00:00
|
|
|
]
|
2020-11-14 01:24:03 +00:00
|
|
|
},
|
2019-09-10 08:20:40 +00:00
|
|
|
{
|
|
|
|
"name": "insert debug marker",
|
|
|
|
"args": [
|
2020-07-12 16:01:38 +00:00
|
|
|
{"name": "marker label", "type": "char", "annotation": "const*", "length": "strlen"}
|
2019-09-10 08:20:40 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "pop debug group",
|
|
|
|
"args": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "push debug group",
|
|
|
|
"args": [
|
|
|
|
{"name": "group label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
2020-07-01 10:48:16 +00:00
|
|
|
},
|
2020-07-17 09:02:46 +00:00
|
|
|
{
|
|
|
|
"name": "resolve query set",
|
|
|
|
"args": [
|
|
|
|
{"name": "query set", "type": "query set"},
|
|
|
|
{"name": "first query", "type": "uint32_t"},
|
|
|
|
{"name": "query count", "type": "uint32_t"},
|
|
|
|
{"name": "destination", "type": "buffer"},
|
|
|
|
{"name": "destination offset", "type": "uint64_t"}
|
|
|
|
]
|
|
|
|
},
|
2021-09-20 19:25:05 +00:00
|
|
|
{
|
|
|
|
"name": "write buffer",
|
2021-09-21 17:36:27 +00:00
|
|
|
"tags": ["dawn"],
|
2021-09-20 19:25:05 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "buffer", "type": "buffer"},
|
|
|
|
{"name": "buffer offset", "type": "uint64_t"},
|
|
|
|
{"name": "data", "type": "uint8_t", "annotation": "const*", "length": "size"},
|
|
|
|
{"name": "size", "type": "uint64_t"}
|
|
|
|
]
|
|
|
|
},
|
2020-07-01 10:48:16 +00:00
|
|
|
{
|
|
|
|
"name": "write timestamp",
|
|
|
|
"args": [
|
|
|
|
{"name": "query set", "type": "query set"},
|
|
|
|
{"name": "query index", "type": "uint32_t"}
|
|
|
|
]
|
2021-11-23 00:09:25 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
2019-02-15 12:54:08 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-07-10 20:43:13 +00:00
|
|
|
"command encoder descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2019-10-03 14:56:49 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}
|
|
|
|
]
|
2019-07-10 20:43:13 +00:00
|
|
|
},
|
2018-09-21 00:24:37 +00:00
|
|
|
"compare function": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2021-04-08 18:42:47 +00:00
|
|
|
{"value": 0, "name": "undefined", "jsrepr": "undefined", "valid": false},
|
2020-04-17 19:32:07 +00:00
|
|
|
{"value": 1, "name": "never"},
|
|
|
|
{"value": 2, "name": "less"},
|
|
|
|
{"value": 3, "name": "less equal"},
|
|
|
|
{"value": 4, "name": "greater"},
|
|
|
|
{"value": 5, "name": "greater equal"},
|
|
|
|
{"value": 6, "name": "equal"},
|
|
|
|
{"value": 7, "name": "not equal"},
|
|
|
|
{"value": 8, "name": "always"}
|
2018-09-21 00:24:37 +00:00
|
|
|
]
|
|
|
|
},
|
2021-04-05 23:34:17 +00:00
|
|
|
"compilation info": {
|
|
|
|
"category": "structure",
|
2021-11-16 09:25:35 +00:00
|
|
|
"extensible": "in",
|
2021-04-05 23:34:17 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "message count", "type": "uint32_t"},
|
|
|
|
{"name": "messages", "type": "compilation message", "annotation": "const*", "length": "message count"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"compilation info callback": {
|
2021-12-02 07:41:21 +00:00
|
|
|
"category": "function pointer",
|
2021-04-05 23:34:17 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "status", "type": "compilation info request status"},
|
|
|
|
{"name": "compilation info", "type": "compilation info", "annotation": "const*"},
|
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"compilation info request status": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "success"},
|
|
|
|
{"value": 1, "name": "error"},
|
|
|
|
{"value": 2, "name": "device lost"},
|
|
|
|
{"value": 3, "name": "unknown"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"compilation message": {
|
|
|
|
"category": "structure",
|
2021-11-16 09:25:35 +00:00
|
|
|
"extensible": "in",
|
2021-04-05 23:34:17 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "message", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
|
|
|
{"name": "type", "type": "compilation message type"},
|
|
|
|
{"name": "line num", "type": "uint64_t"},
|
2021-04-30 20:45:58 +00:00
|
|
|
{"name": "line pos", "type": "uint64_t"},
|
|
|
|
{"name": "offset", "type": "uint64_t"},
|
2023-01-10 00:03:24 +00:00
|
|
|
{"name": "length", "type": "uint64_t"},
|
|
|
|
{"name": "utf16 line pos", "type": "uint64_t"},
|
|
|
|
{"name": "utf16 offset", "type": "uint64_t"},
|
|
|
|
{"name": "utf16 length", "type": "uint64_t"}
|
2021-04-05 23:34:17 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"compilation message type": {
|
|
|
|
"category": "enum",
|
2021-09-17 19:44:43 +00:00
|
|
|
"emscripten_no_enum_table": true,
|
2021-04-05 23:34:17 +00:00
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "error"},
|
|
|
|
{"value": 1, "name": "warning"},
|
|
|
|
{"value": 2, "name": "info"}
|
|
|
|
]
|
|
|
|
},
|
2019-07-10 20:43:13 +00:00
|
|
|
"compute pass descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2019-09-25 13:56:48 +00:00
|
|
|
"members": [
|
2021-11-17 08:13:24 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2022-03-05 01:22:52 +00:00
|
|
|
{"name": "timestamp write count", "type": "uint32_t", "default": 0},
|
|
|
|
{"name": "timestamp writes", "type": "compute pass timestamp write", "annotation": "const*", "length": "timestamp write count"}
|
2019-09-25 13:56:48 +00:00
|
|
|
]
|
2019-07-10 20:43:13 +00:00
|
|
|
},
|
2018-09-21 00:24:37 +00:00
|
|
|
"compute pass encoder": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
2019-02-20 20:21:00 +00:00
|
|
|
{
|
|
|
|
"name": "insert debug marker",
|
|
|
|
"args": [
|
2020-07-12 16:01:38 +00:00
|
|
|
{"name": "marker label", "type": "char", "annotation": "const*", "length": "strlen"}
|
2019-02-20 20:21:00 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "pop debug group",
|
|
|
|
"args": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "push debug group",
|
|
|
|
"args": [
|
|
|
|
{"name": "group label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
{
|
2018-12-21 10:40:26 +00:00
|
|
|
"name": "set pipeline",
|
2017-05-31 00:03:44 +00:00
|
|
|
"args": [
|
2018-09-21 00:24:37 +00:00
|
|
|
{"name": "pipeline", "type": "compute pipeline"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2018-09-21 00:24:37 +00:00
|
|
|
"name": "set bind group",
|
2017-07-14 14:58:07 +00:00
|
|
|
"args": [
|
2018-09-21 00:24:37 +00:00
|
|
|
{"name": "group index", "type": "uint32_t"},
|
2019-03-18 06:01:37 +00:00
|
|
|
{"name": "group", "type": "bind group"},
|
2019-10-09 16:08:42 +00:00
|
|
|
{"name": "dynamic offset count", "type": "uint32_t", "default": "0"},
|
2021-06-17 16:04:29 +00:00
|
|
|
{"name": "dynamic offsets", "type": "uint32_t", "annotation": "const*", "length": "dynamic offset count", "default": "nullptr"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2020-07-01 10:48:16 +00:00
|
|
|
{
|
|
|
|
"name": "write timestamp",
|
2021-11-17 08:13:24 +00:00
|
|
|
"tags": ["emscripten", "dawn"],
|
2020-07-01 10:48:16 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "query set", "type": "query set"},
|
|
|
|
{"name": "query index", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
2021-09-17 21:13:33 +00:00
|
|
|
{
|
|
|
|
"name": "begin pipeline statistics query",
|
2022-02-08 20:21:40 +00:00
|
|
|
"tags": ["upstream", "emscripten"],
|
2021-09-17 21:13:33 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "query set", "type": "query set"},
|
|
|
|
{"name": "query index", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
2018-02-13 19:57:13 +00:00
|
|
|
{
|
2018-09-21 00:24:37 +00:00
|
|
|
"name": "dispatch",
|
2022-04-29 17:51:54 +00:00
|
|
|
"tags": ["deprecated"],
|
|
|
|
"args": [
|
|
|
|
{"name": "workgroupCountX", "type": "uint32_t"},
|
|
|
|
{"name": "workgroupCountY", "type": "uint32_t", "default": "1"},
|
|
|
|
{"name": "workgroupCountZ", "type": "uint32_t", "default": "1"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "dispatch workgroups",
|
2018-02-13 19:57:13 +00:00
|
|
|
"args": [
|
2022-01-27 09:40:02 +00:00
|
|
|
{"name": "workgroupCountX", "type": "uint32_t"},
|
|
|
|
{"name": "workgroupCountY", "type": "uint32_t", "default": "1"},
|
|
|
|
{"name": "workgroupCountZ", "type": "uint32_t", "default": "1"}
|
2018-02-13 19:57:13 +00:00
|
|
|
]
|
|
|
|
},
|
2019-06-10 20:56:27 +00:00
|
|
|
{
|
|
|
|
"name": "dispatch indirect",
|
2022-04-29 17:51:54 +00:00
|
|
|
"tags": ["deprecated"],
|
|
|
|
"args": [
|
|
|
|
{"name": "indirect buffer", "type": "buffer"},
|
|
|
|
{"name": "indirect offset", "type": "uint64_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "dispatch workgroups indirect",
|
2019-06-10 20:56:27 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "indirect buffer", "type": "buffer"},
|
|
|
|
{"name": "indirect offset", "type": "uint64_t"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
{
|
2022-02-07 19:48:39 +00:00
|
|
|
"name": "end"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "end pass",
|
|
|
|
"tags": ["deprecated"]
|
2021-09-17 21:13:33 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "end pipeline statistics query",
|
2022-02-08 20:21:40 +00:00
|
|
|
"tags": ["upstream", "emscripten"]
|
2021-11-23 00:09:25 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-11-17 08:13:24 +00:00
|
|
|
"compute pass timestamp location": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "beginning"},
|
|
|
|
{"value": 1, "name": "end"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"compute pass timestamp write": {
|
|
|
|
"category": "structure",
|
|
|
|
"members": [
|
|
|
|
{"name": "query set", "type": "query set"},
|
|
|
|
{"name": "query index", "type": "uint32_t"},
|
|
|
|
{"name": "location", "type": "compute pass timestamp location"}
|
|
|
|
]
|
|
|
|
},
|
2017-07-14 14:58:07 +00:00
|
|
|
"compute pipeline": {
|
2019-11-22 17:02:22 +00:00
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "get bind group layout",
|
|
|
|
"returns": "bind group layout",
|
|
|
|
"args": [
|
2020-04-01 18:22:36 +00:00
|
|
|
{"name": "group index", "type": "uint32_t"}
|
2019-11-22 17:02:22 +00:00
|
|
|
]
|
2021-09-02 18:39:53 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
2019-11-22 17:02:22 +00:00
|
|
|
}
|
|
|
|
]
|
2017-07-14 14:58:07 +00:00
|
|
|
},
|
2018-08-27 21:12:56 +00:00
|
|
|
"compute pipeline descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2018-08-27 21:12:56 +00:00
|
|
|
"members": [
|
2019-10-03 14:56:49 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2019-11-22 17:02:22 +00:00
|
|
|
{"name": "layout", "type": "pipeline layout", "optional": true},
|
2021-09-14 11:42:27 +00:00
|
|
|
{"name": "compute", "type": "programmable stage descriptor"}
|
2017-07-14 14:58:07 +00:00
|
|
|
]
|
|
|
|
},
|
2021-12-14 04:51:45 +00:00
|
|
|
"alpha mode": {
|
|
|
|
"category": "enum",
|
|
|
|
"tags": ["dawn"],
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "premultiplied"},
|
2022-07-11 18:11:14 +00:00
|
|
|
{"value": 1, "name": "unpremultiplied"},
|
|
|
|
{"value": 2, "name": "opaque"}
|
2021-12-14 04:51:45 +00:00
|
|
|
]
|
|
|
|
},
|
2020-12-02 08:13:09 +00:00
|
|
|
"copy texture for browser options": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
2020-12-02 08:13:09 +00:00
|
|
|
"members": [
|
2021-12-14 04:51:45 +00:00
|
|
|
{"name": "flip y", "type": "bool", "default": "false"},
|
|
|
|
{"name": "needs color space conversion", "type": "bool", "default": "false"},
|
|
|
|
{"name": "src alpha mode", "type": "alpha mode", "default": "unpremultiplied"},
|
|
|
|
{"name": "src transfer function parameters", "type": "float", "annotation": "const*",
|
2021-12-15 04:08:56 +00:00
|
|
|
"length": 7, "optional": true},
|
2021-12-14 04:51:45 +00:00
|
|
|
{"name": "conversion matrix", "type": "float", "annotation": "const*",
|
2021-12-15 04:08:56 +00:00
|
|
|
"length": 9, "optional": true},
|
2021-12-14 04:51:45 +00:00
|
|
|
{"name": "dst transfer function parameters", "type": "float", "annotation": "const*",
|
2021-12-15 04:08:56 +00:00
|
|
|
"length": 7, "optional": true},
|
2022-07-11 18:11:14 +00:00
|
|
|
{"name": "dst alpha mode", "type": "alpha mode", "default": "unpremultiplied"},
|
|
|
|
{"name": "internal usage", "type": "bool", "default": "false"}
|
2020-12-02 08:13:09 +00:00
|
|
|
]
|
|
|
|
},
|
2021-02-22 18:27:36 +00:00
|
|
|
"create compute pipeline async callback": {
|
2021-12-02 07:41:21 +00:00
|
|
|
"category": "function pointer",
|
2020-10-19 01:56:08 +00:00
|
|
|
"args": [
|
2021-02-22 18:27:36 +00:00
|
|
|
{"name": "status", "type": "create pipeline async status"},
|
2020-10-19 01:56:08 +00:00
|
|
|
{"name": "pipeline", "type": "compute pipeline"},
|
|
|
|
{"name": "message", "type": "char", "annotation": "const*", "length": "strlen"},
|
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2021-02-22 18:27:36 +00:00
|
|
|
"create pipeline async status": {
|
2020-10-19 01:56:08 +00:00
|
|
|
"category": "enum",
|
2021-09-17 19:44:43 +00:00
|
|
|
"emscripten_no_enum_table": true,
|
2020-10-19 01:56:08 +00:00
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "success"},
|
2023-02-08 19:36:53 +00:00
|
|
|
{"value": 1, "name": "validation error"},
|
|
|
|
{"value": 2, "name": "internal error"},
|
|
|
|
{"value": 3, "name": "device lost"},
|
|
|
|
{"value": 4, "name": "device destroyed"},
|
|
|
|
{"value": 5, "name": "unknown"},
|
|
|
|
{"value": 6, "name": "error"}
|
2020-10-19 01:56:08 +00:00
|
|
|
]
|
|
|
|
},
|
2021-02-22 18:27:36 +00:00
|
|
|
"create render pipeline async callback": {
|
2021-12-02 07:41:21 +00:00
|
|
|
"category": "function pointer",
|
2020-10-21 04:37:41 +00:00
|
|
|
"args": [
|
2021-02-22 18:27:36 +00:00
|
|
|
{"name": "status", "type": "create pipeline async status"},
|
2020-10-21 04:37:41 +00:00
|
|
|
{"name": "pipeline", "type": "render pipeline"},
|
|
|
|
{"name": "message", "type": "char", "annotation": "const*", "length": "strlen"},
|
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2019-04-11 18:46:54 +00:00
|
|
|
"cull mode": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "none"},
|
|
|
|
{"value": 1, "name": "front"},
|
|
|
|
{"value": 2, "name": "back"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"device": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
2018-12-05 07:18:30 +00:00
|
|
|
"name": "create bind group",
|
|
|
|
"returns": "bind group",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "bind group descriptor", "annotation": "const*"}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
|
|
|
{
|
2018-07-10 19:23:50 +00:00
|
|
|
"name": "create bind group layout",
|
|
|
|
"returns": "bind group layout",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "bind group layout descriptor", "annotation": "const*"}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
|
|
|
{
|
2018-08-22 13:37:29 +00:00
|
|
|
"name": "create buffer",
|
|
|
|
"returns": "buffer",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "buffer descriptor", "annotation": "const*"}
|
|
|
|
]
|
|
|
|
},
|
2020-06-15 23:42:13 +00:00
|
|
|
{
|
|
|
|
"name": "create error buffer",
|
|
|
|
"returns": "buffer",
|
2022-11-23 02:06:11 +00:00
|
|
|
"tags": ["dawn"],
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "buffer descriptor", "annotation": "const*"}
|
|
|
|
]
|
2020-06-15 23:42:13 +00:00
|
|
|
},
|
2019-02-15 12:54:08 +00:00
|
|
|
{
|
|
|
|
"name": "create command encoder",
|
2019-07-10 20:43:13 +00:00
|
|
|
"returns": "command encoder",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "command encoder descriptor", "annotation": "const*", "optional": true}
|
|
|
|
]
|
2019-02-15 12:54:08 +00:00
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
{
|
2018-08-27 21:12:56 +00:00
|
|
|
"name": "create compute pipeline",
|
|
|
|
"returns": "compute pipeline",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "compute pipeline descriptor", "annotation": "const*"}
|
|
|
|
]
|
2017-07-14 14:58:07 +00:00
|
|
|
},
|
2020-10-19 01:56:08 +00:00
|
|
|
{
|
2021-02-22 18:27:36 +00:00
|
|
|
"name": "create compute pipeline async",
|
2020-10-19 01:56:08 +00:00
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "compute pipeline descriptor", "annotation": "const*"},
|
2021-12-13 17:37:17 +00:00
|
|
|
{"name": "callback", "type": "create compute pipeline async callback"},
|
2020-10-19 01:56:08 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2021-09-17 15:36:00 +00:00
|
|
|
{
|
|
|
|
"name": "create external texture",
|
|
|
|
"returns": "external texture",
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
2021-09-17 15:36:00 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "external texture descriptor", "type": "external texture descriptor", "annotation": "const*"}
|
|
|
|
]
|
|
|
|
},
|
2022-06-27 02:57:40 +00:00
|
|
|
{
|
|
|
|
"name": "create error external texture",
|
|
|
|
"returns": "external texture",
|
|
|
|
"tags": ["dawn"]
|
|
|
|
},
|
2017-07-14 14:58:07 +00:00
|
|
|
{
|
2020-07-06 18:50:00 +00:00
|
|
|
"name": "create pipeline layout",
|
|
|
|
"returns": "pipeline layout",
|
2018-12-10 19:47:22 +00:00
|
|
|
"args": [
|
2020-07-06 18:50:00 +00:00
|
|
|
{"name": "descriptor", "type": "pipeline layout descriptor", "annotation": "const*"}
|
2018-12-10 19:47:22 +00:00
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
|
|
|
{
|
2020-07-06 18:50:00 +00:00
|
|
|
"name": "create query set",
|
|
|
|
"returns": "query set",
|
2018-06-27 23:21:39 +00:00
|
|
|
"args": [
|
2020-07-06 18:50:00 +00:00
|
|
|
{"name": "descriptor", "type": "query set descriptor", "annotation": "const*"}
|
2018-06-27 23:21:39 +00:00
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
2020-10-21 04:37:41 +00:00
|
|
|
{
|
2021-02-22 18:27:36 +00:00
|
|
|
"name": "create render pipeline async",
|
2020-10-21 04:37:41 +00:00
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
2021-05-21 05:01:38 +00:00
|
|
|
{"name": "descriptor", "type": "render pipeline descriptor", "annotation": "const*"},
|
2021-12-13 17:37:17 +00:00
|
|
|
{"name": "callback", "type": "create render pipeline async callback"},
|
2020-10-21 04:37:41 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2019-08-13 22:12:54 +00:00
|
|
|
{
|
|
|
|
"name": "create render bundle encoder",
|
|
|
|
"returns": "render bundle encoder",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "render bundle encoder descriptor", "annotation": "const*"}
|
|
|
|
]
|
|
|
|
},
|
2020-07-06 18:50:00 +00:00
|
|
|
{
|
|
|
|
"name": "create render pipeline",
|
|
|
|
"returns": "render pipeline",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "render pipeline descriptor", "annotation": "const*"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
{
|
2018-05-17 21:09:07 +00:00
|
|
|
"name": "create sampler",
|
|
|
|
"returns": "sampler",
|
|
|
|
"args": [
|
2021-01-26 02:22:58 +00:00
|
|
|
{"name": "descriptor", "type": "sampler descriptor", "annotation": "const*", "optional": true}
|
2018-05-17 21:09:07 +00:00
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
|
|
|
{
|
2018-08-20 15:01:20 +00:00
|
|
|
"name": "create shader module",
|
|
|
|
"returns": "shader module",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "shader module descriptor", "annotation": "const*"}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
2017-07-28 01:30:57 +00:00
|
|
|
{
|
2019-02-15 11:15:58 +00:00
|
|
|
"name": "create swap chain",
|
2022-05-23 15:44:29 +00:00
|
|
|
"tags": ["dawn"],
|
2019-02-15 11:15:58 +00:00
|
|
|
"returns": "swap chain",
|
|
|
|
"args": [
|
2020-11-04 10:04:17 +00:00
|
|
|
{"name": "surface", "type": "surface", "optional": true},
|
2019-02-15 11:15:58 +00:00
|
|
|
{"name": "descriptor", "type": "swap chain descriptor", "annotation": "const*"}
|
|
|
|
]
|
2017-07-28 01:30:57 +00:00
|
|
|
},
|
2022-05-23 15:44:29 +00:00
|
|
|
{
|
|
|
|
"name": "create swap chain",
|
|
|
|
"tags": ["upstream", "emscripten"],
|
|
|
|
"returns": "swap chain",
|
|
|
|
"args": [
|
|
|
|
{"name": "surface", "type": "surface"},
|
|
|
|
{"name": "descriptor", "type": "swap chain descriptor", "annotation": "const*"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
{
|
2018-08-27 00:44:48 +00:00
|
|
|
"name": "create texture",
|
|
|
|
"returns": "texture",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "texture descriptor", "annotation": "const*"}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
2022-07-20 16:07:44 +00:00
|
|
|
{
|
|
|
|
"name": "create error texture",
|
|
|
|
"returns": "texture",
|
|
|
|
"tags": ["dawn"],
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "texture descriptor", "annotation": "const*"}
|
|
|
|
]
|
|
|
|
},
|
2021-09-17 21:13:33 +00:00
|
|
|
{
|
2021-12-01 17:55:30 +00:00
|
|
|
"name": "destroy"
|
2021-09-17 21:13:33 +00:00
|
|
|
},
|
2021-02-04 15:33:42 +00:00
|
|
|
{
|
2021-09-17 15:36:00 +00:00
|
|
|
"name": "get limits",
|
|
|
|
"returns": "bool",
|
2021-04-01 20:46:42 +00:00
|
|
|
"args": [
|
2021-09-17 15:36:00 +00:00
|
|
|
{"name": "limits", "type": "supported limits", "annotation": "*"}
|
2021-04-01 20:46:42 +00:00
|
|
|
]
|
|
|
|
},
|
2021-12-15 00:12:30 +00:00
|
|
|
{
|
|
|
|
"name": "has feature",
|
|
|
|
"returns": "bool",
|
|
|
|
"args": [
|
|
|
|
{"name": "feature", "type": "feature name"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "enumerate features",
|
2022-01-06 22:11:28 +00:00
|
|
|
"returns": "size_t",
|
2021-12-15 00:12:30 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "features", "type": "feature name", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2022-08-18 18:02:00 +00:00
|
|
|
{
|
|
|
|
"name": "get adapter",
|
|
|
|
"returns": "adapter",
|
|
|
|
"tags": ["dawn"]
|
|
|
|
},
|
2021-09-17 15:36:00 +00:00
|
|
|
{
|
|
|
|
"name": "get queue",
|
|
|
|
"returns": "queue"
|
|
|
|
},
|
2019-09-30 22:50:59 +00:00
|
|
|
{
|
|
|
|
"name": "inject error",
|
|
|
|
"args": [
|
|
|
|
{"name": "type", "type": "error type"},
|
2019-10-02 06:35:38 +00:00
|
|
|
{"name": "message", "type": "char", "annotation": "const*", "length": "strlen"}
|
2019-09-30 22:50:59 +00:00
|
|
|
],
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"]
|
2019-09-30 22:50:59 +00:00
|
|
|
},
|
2020-01-15 19:02:13 +00:00
|
|
|
{
|
2022-08-29 22:33:50 +00:00
|
|
|
"name": "force loss",
|
|
|
|
"args": [
|
|
|
|
{"name": "type", "type": "device lost reason"},
|
|
|
|
{"name": "message", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
],
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"]
|
2020-01-15 19:02:13 +00:00
|
|
|
},
|
2017-06-14 17:33:45 +00:00
|
|
|
{
|
2021-09-17 19:44:43 +00:00
|
|
|
"name": "tick",
|
|
|
|
"tags": ["dawn"]
|
2017-06-14 17:33:45 +00:00
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
{
|
2019-08-27 21:43:56 +00:00
|
|
|
"name": "set uncaptured error callback",
|
2017-05-31 00:03:44 +00:00
|
|
|
"args": [
|
2021-12-13 17:37:17 +00:00
|
|
|
{"name": "callback", "type": "error callback"},
|
2019-05-29 13:03:50 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
2019-09-04 22:54:03 +00:00
|
|
|
},
|
Add the user-visible logging interface.
Details:
- Add the logging level type WGPULoggingType, including levels verbose,
info, warning, and error,
- Add the API SetLoggingCallback, which bind the callback to deal with
logging string,
- Add the return command DeviceLoggingCallback and related code,
- Add DeviceBase::EmitLog(WGPULoggingType, const char*) , and
DeviceBase::EmitLog(const char*) use WGPULoggingType_info as default,
to post logging from native or server device to bound callback
via CallbackTaskManager.
BUG: dawn:792
Change-Id: I107b9134ff8567a46fa452509799e10b6862b8d3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/52200
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2021-06-04 07:10:56 +00:00
|
|
|
{
|
|
|
|
"name": "set logging callback",
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
Add the user-visible logging interface.
Details:
- Add the logging level type WGPULoggingType, including levels verbose,
info, warning, and error,
- Add the API SetLoggingCallback, which bind the callback to deal with
logging string,
- Add the return command DeviceLoggingCallback and related code,
- Add DeviceBase::EmitLog(WGPULoggingType, const char*) , and
DeviceBase::EmitLog(const char*) use WGPULoggingType_info as default,
to post logging from native or server device to bound callback
via CallbackTaskManager.
BUG: dawn:792
Change-Id: I107b9134ff8567a46fa452509799e10b6862b8d3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/52200
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2021-06-04 07:10:56 +00:00
|
|
|
"args": [
|
2021-12-13 17:37:17 +00:00
|
|
|
{"name": "callback", "type": "logging callback"},
|
Add the user-visible logging interface.
Details:
- Add the logging level type WGPULoggingType, including levels verbose,
info, warning, and error,
- Add the API SetLoggingCallback, which bind the callback to deal with
logging string,
- Add the return command DeviceLoggingCallback and related code,
- Add DeviceBase::EmitLog(WGPULoggingType, const char*) , and
DeviceBase::EmitLog(const char*) use WGPULoggingType_info as default,
to post logging from native or server device to bound callback
via CallbackTaskManager.
BUG: dawn:792
Change-Id: I107b9134ff8567a46fa452509799e10b6862b8d3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/52200
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2021-06-04 07:10:56 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2019-12-18 18:59:20 +00:00
|
|
|
{
|
|
|
|
"name": "set device lost callback",
|
|
|
|
"args": [
|
2021-12-13 17:37:17 +00:00
|
|
|
{"name": "callback", "type": "device lost callback"},
|
2019-12-18 18:59:20 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2019-09-04 22:54:03 +00:00
|
|
|
{
|
|
|
|
"name": "push error scope",
|
|
|
|
"args": [
|
|
|
|
{"name": "filter", "type": "error filter"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "pop error scope",
|
|
|
|
"returns": "bool",
|
|
|
|
"args": [
|
2021-12-13 17:37:17 +00:00
|
|
|
{"name": "callback", "type": "error callback"},
|
2019-09-04 22:54:03 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
2022-04-12 03:28:40 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
2023-01-10 15:17:26 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "validate texture descriptor",
|
|
|
|
"tags": ["dawn"],
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "texture descriptor", "annotation": "const*"}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-12-18 18:59:20 +00:00
|
|
|
"device lost callback": {
|
2021-12-02 07:41:21 +00:00
|
|
|
"category": "function pointer",
|
2020-01-25 09:30:40 +00:00
|
|
|
"args": [
|
2021-09-28 11:52:17 +00:00
|
|
|
{"name": "reason", "type": "device lost reason"},
|
2019-12-18 18:59:20 +00:00
|
|
|
{"name": "message", "type": "char", "annotation": "const*"},
|
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2021-09-17 21:13:33 +00:00
|
|
|
"device lost reason": {
|
|
|
|
"category": "enum",
|
|
|
|
"emscripten_no_enum_table": true,
|
|
|
|
"values": [
|
2021-09-28 11:52:17 +00:00
|
|
|
{"value": 0, "name": "undefined", "jsrepr": "undefined"},
|
|
|
|
{"value": 1, "name": "destroyed"}
|
2021-09-17 21:13:33 +00:00
|
|
|
]
|
|
|
|
},
|
2020-09-22 16:51:36 +00:00
|
|
|
"double": {
|
|
|
|
"category": "native"
|
|
|
|
},
|
2019-08-27 21:41:56 +00:00
|
|
|
"error callback": {
|
2021-12-02 07:41:21 +00:00
|
|
|
"category": "function pointer",
|
2019-11-22 13:18:22 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "type", "type": "error type"},
|
|
|
|
{"name": "message", "type": "char", "annotation": "const*"},
|
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
2021-09-13 18:49:09 +00:00
|
|
|
"limits": {
|
|
|
|
"category": "structure",
|
|
|
|
"members": [
|
|
|
|
{"name": "max texture dimension 1D", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max texture dimension 2D", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max texture dimension 3D", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max texture array layers", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max bind groups", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
2022-09-21 17:42:24 +00:00
|
|
|
{"name": "max bindings per bind group", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
2021-09-13 18:49:09 +00:00
|
|
|
{"name": "max dynamic uniform buffers per pipeline layout", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max dynamic storage buffers per pipeline layout", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max sampled textures per shader stage", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max samplers per shader stage", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max storage buffers per shader stage", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max storage textures per shader stage", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max uniform buffers per shader stage", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max uniform buffer binding size", "type": "uint64_t", "default": "WGPU_LIMIT_U64_UNDEFINED"},
|
|
|
|
{"name": "max storage buffer binding size", "type": "uint64_t", "default": "WGPU_LIMIT_U64_UNDEFINED"},
|
|
|
|
{"name": "min uniform buffer offset alignment", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "min storage buffer offset alignment", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max vertex buffers", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
2022-09-29 19:02:11 +00:00
|
|
|
{"name": "max buffer size", "type": "uint64_t", "default": "WGPU_LIMIT_U64_UNDEFINED"},
|
2021-09-13 18:49:09 +00:00
|
|
|
{"name": "max vertex attributes", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max vertex buffer array stride", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max inter stage shader components", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
2022-06-24 17:30:29 +00:00
|
|
|
{"name": "max inter stage shader variables", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
2022-06-13 16:48:45 +00:00
|
|
|
{"name": "max color attachments", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
2022-12-12 20:55:05 +00:00
|
|
|
{"name": "max color attachment bytes per sample", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
2021-09-13 18:49:09 +00:00
|
|
|
{"name": "max compute workgroup storage size", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max compute invocations per workgroup", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max compute workgroup size x", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max compute workgroup size y", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max compute workgroup size z", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"},
|
|
|
|
{"name": "max compute workgroups per dimension", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}
|
|
|
|
]
|
|
|
|
},
|
2021-09-17 15:36:00 +00:00
|
|
|
"required limits": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2021-09-17 15:36:00 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "limits", "type": "limits"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"supported limits": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "out",
|
2021-09-17 15:36:00 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "limits", "type": "limits"}
|
|
|
|
]
|
|
|
|
},
|
Add the user-visible logging interface.
Details:
- Add the logging level type WGPULoggingType, including levels verbose,
info, warning, and error,
- Add the API SetLoggingCallback, which bind the callback to deal with
logging string,
- Add the return command DeviceLoggingCallback and related code,
- Add DeviceBase::EmitLog(WGPULoggingType, const char*) , and
DeviceBase::EmitLog(const char*) use WGPULoggingType_info as default,
to post logging from native or server device to bound callback
via CallbackTaskManager.
BUG: dawn:792
Change-Id: I107b9134ff8567a46fa452509799e10b6862b8d3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/52200
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2021-06-04 07:10:56 +00:00
|
|
|
"logging callback": {
|
2021-12-02 07:41:21 +00:00
|
|
|
"category": "function pointer",
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
Add the user-visible logging interface.
Details:
- Add the logging level type WGPULoggingType, including levels verbose,
info, warning, and error,
- Add the API SetLoggingCallback, which bind the callback to deal with
logging string,
- Add the return command DeviceLoggingCallback and related code,
- Add DeviceBase::EmitLog(WGPULoggingType, const char*) , and
DeviceBase::EmitLog(const char*) use WGPULoggingType_info as default,
to post logging from native or server device to bound callback
via CallbackTaskManager.
BUG: dawn:792
Change-Id: I107b9134ff8567a46fa452509799e10b6862b8d3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/52200
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2021-06-04 07:10:56 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "type", "type": "logging type"},
|
|
|
|
{"name": "message", "type": "char", "annotation": "const*"},
|
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2019-09-04 22:54:03 +00:00
|
|
|
"error filter": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2021-12-08 02:42:17 +00:00
|
|
|
{"value": 0, "name": "validation"},
|
2022-09-07 14:14:14 +00:00
|
|
|
{"value": 1, "name": "out of memory"},
|
|
|
|
{"value": 2, "name": "internal"}
|
2019-09-04 22:54:03 +00:00
|
|
|
]
|
|
|
|
},
|
2019-08-27 21:41:56 +00:00
|
|
|
"error type": {
|
|
|
|
"category": "enum",
|
2021-09-17 19:44:43 +00:00
|
|
|
"emscripten_no_enum_table": true,
|
2019-08-27 21:41:56 +00:00
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "no error"},
|
|
|
|
{"value": 1, "name": "validation"},
|
|
|
|
{"value": 2, "name": "out of memory"},
|
2022-09-07 14:14:14 +00:00
|
|
|
{"value": 3, "name": "internal"},
|
|
|
|
{"value": 4, "name": "unknown"},
|
|
|
|
{"value": 5, "name": "device lost"}
|
2019-08-27 21:41:56 +00:00
|
|
|
]
|
|
|
|
},
|
Add the user-visible logging interface.
Details:
- Add the logging level type WGPULoggingType, including levels verbose,
info, warning, and error,
- Add the API SetLoggingCallback, which bind the callback to deal with
logging string,
- Add the return command DeviceLoggingCallback and related code,
- Add DeviceBase::EmitLog(WGPULoggingType, const char*) , and
DeviceBase::EmitLog(const char*) use WGPULoggingType_info as default,
to post logging from native or server device to bound callback
via CallbackTaskManager.
BUG: dawn:792
Change-Id: I107b9134ff8567a46fa452509799e10b6862b8d3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/52200
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2021-06-04 07:10:56 +00:00
|
|
|
"logging type": {
|
|
|
|
"category": "enum",
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
Add the user-visible logging interface.
Details:
- Add the logging level type WGPULoggingType, including levels verbose,
info, warning, and error,
- Add the API SetLoggingCallback, which bind the callback to deal with
logging string,
- Add the return command DeviceLoggingCallback and related code,
- Add DeviceBase::EmitLog(WGPULoggingType, const char*) , and
DeviceBase::EmitLog(const char*) use WGPULoggingType_info as default,
to post logging from native or server device to bound callback
via CallbackTaskManager.
BUG: dawn:792
Change-Id: I107b9134ff8567a46fa452509799e10b6862b8d3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/52200
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2021-06-04 07:10:56 +00:00
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "verbose"},
|
|
|
|
{"value": 1, "name": "info"},
|
|
|
|
{"value": 2, "name": "warning"},
|
|
|
|
{"value": 3, "name": "error"}
|
|
|
|
]
|
|
|
|
},
|
2022-10-24 04:19:43 +00:00
|
|
|
"extent 2D": {
|
|
|
|
"category": "structure",
|
2022-11-03 09:03:01 +00:00
|
|
|
"tags": ["dawn"],
|
2022-10-24 04:19:43 +00:00
|
|
|
"_TODO": "crbug.com/1316671: Remove default value of 'width' after chromium side chagnes landed",
|
|
|
|
"members": [
|
|
|
|
{"name": "width", "type": "uint32_t", "default": 0},
|
|
|
|
{"name": "height", "type": "uint32_t", "default": 1}
|
|
|
|
]
|
|
|
|
},
|
2018-09-18 12:49:22 +00:00
|
|
|
"extent 3D": {
|
|
|
|
"category": "structure",
|
|
|
|
"members": [
|
2021-03-04 17:03:15 +00:00
|
|
|
{"name": "width", "type": "uint32_t"},
|
2020-10-16 14:20:06 +00:00
|
|
|
{"name": "height", "type": "uint32_t", "default": 1},
|
2021-05-13 17:51:23 +00:00
|
|
|
{"name": "depth or array layers", "type": "uint32_t", "default": 1}
|
2018-09-18 12:49:22 +00:00
|
|
|
]
|
|
|
|
},
|
2021-04-01 20:46:42 +00:00
|
|
|
"external texture": {
|
|
|
|
"category": "object",
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
2021-04-01 20:46:42 +00:00
|
|
|
"methods": [
|
2021-11-19 18:26:08 +00:00
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
},
|
2021-04-01 20:46:42 +00:00
|
|
|
{
|
|
|
|
"name": "destroy",
|
|
|
|
"returns": "void"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-11-30 21:32:26 +00:00
|
|
|
"external texture rotation":{
|
|
|
|
"category": "enum",
|
|
|
|
"tags": ["dawn"],
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "rotate 0 degrees"},
|
|
|
|
{"value": 1, "name": "rotate 90 degrees"},
|
|
|
|
{"value": 2, "name": "rotate 180 degrees"},
|
|
|
|
{"value": 3, "name": "rotate 270 degrees"}
|
|
|
|
]
|
|
|
|
},
|
2021-04-01 20:46:42 +00:00
|
|
|
"external texture descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
2021-04-01 20:46:42 +00:00
|
|
|
"members": [
|
2021-10-01 15:34:25 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2021-04-01 20:46:42 +00:00
|
|
|
{"name": "plane 0", "type": "texture view"},
|
2022-01-25 18:09:00 +00:00
|
|
|
{"name": "plane 1", "type": "texture view", "optional": true},
|
2022-11-03 09:03:01 +00:00
|
|
|
{"name": "visible origin", "type": "origin 2D"},
|
|
|
|
{"name": "visible size", "type": "extent 2D"},
|
2022-06-22 03:14:26 +00:00
|
|
|
{"name": "do yuv to rgb conversion only", "type": "bool", "default": "false"},
|
2022-05-02 20:37:28 +00:00
|
|
|
{"name": "yuv to rgb conversion matrix", "type": "float", "annotation": "const*",
|
2022-05-24 01:41:43 +00:00
|
|
|
"length": 12, "optional": true},
|
2022-05-02 20:37:28 +00:00
|
|
|
{"name": "src transfer function parameters", "type": "float", "annotation": "const*",
|
2022-05-19 17:44:29 +00:00
|
|
|
"length": 7},
|
2022-05-02 20:37:28 +00:00
|
|
|
{"name": "dst transfer function parameters", "type": "float", "annotation": "const*",
|
2022-05-19 17:44:29 +00:00
|
|
|
"length": 7},
|
2022-05-02 20:37:28 +00:00
|
|
|
{"name": "gamut conversion matrix", "type": "float", "annotation": "const*",
|
2022-11-30 21:32:26 +00:00
|
|
|
"length": 9},
|
|
|
|
{"name": "flip y", "type": "bool", "default": "false"},
|
2023-01-04 21:27:32 +00:00
|
|
|
{"name": "rotation", "type": "external texture rotation", "default": "rotate 0 degrees"}
|
2021-04-01 20:46:42 +00:00
|
|
|
]
|
|
|
|
},
|
2021-09-21 17:36:27 +00:00
|
|
|
"feature name": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "undefined", "jsrepr": "undefined"},
|
2022-06-13 19:18:55 +00:00
|
|
|
{"value": 1, "name": "depth clip control"},
|
2022-06-14 22:48:31 +00:00
|
|
|
{"value": 2, "name": "depth32 float stencil8"},
|
|
|
|
{"value": 3, "name": "timestamp query"},
|
|
|
|
{"value": 4, "name": "pipeline statistics query"},
|
|
|
|
{"value": 5, "name": "texture compression BC"},
|
|
|
|
{"value": 6, "name": "texture compression ETC2"},
|
|
|
|
{"value": 7, "name": "texture compression ASTC"},
|
|
|
|
{"value": 8, "name": "indirect first instance"},
|
2022-09-08 00:11:04 +00:00
|
|
|
{"value": 9, "name": "shader f16"},
|
2022-09-22 16:38:06 +00:00
|
|
|
{"value": 10, "name": "RG11B10 ufloat renderable"},
|
2021-12-15 00:12:30 +00:00
|
|
|
{"value": 1001, "name": "dawn shader float 16", "tags": ["dawn"]},
|
|
|
|
{"value": 1002, "name": "dawn internal usages", "tags": ["dawn"]},
|
2021-12-22 19:02:23 +00:00
|
|
|
{"value": 1003, "name": "dawn multi planar formats", "tags": ["dawn"]},
|
2022-05-20 08:21:00 +00:00
|
|
|
{"value": 1004, "name": "dawn native", "tags": ["dawn", "native"]},
|
2022-10-28 04:51:16 +00:00
|
|
|
{"value": 1005, "name": "chromium experimental dp4a", "tags": ["dawn"]},
|
|
|
|
{"value": 1006, "name": "timestamp query inside passes", "tags": ["dawn"]}
|
2021-09-21 17:36:27 +00:00
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"filter mode": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2019-04-02 14:31:29 +00:00
|
|
|
{"value": 0, "name": "nearest"},
|
|
|
|
{"value": 1, "name": "linear"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2017-08-01 18:22:52 +00:00
|
|
|
"float": {
|
|
|
|
"category": "native"
|
|
|
|
},
|
2019-04-11 18:46:54 +00:00
|
|
|
"front face": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "CCW"},
|
|
|
|
{"value": 1, "name": "CW"}
|
|
|
|
]
|
|
|
|
},
|
2021-03-04 18:13:45 +00:00
|
|
|
"image copy buffer": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2021-03-04 18:13:45 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "layout", "type": "texture data layout"},
|
|
|
|
{"name": "buffer", "type": "buffer"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"image copy texture": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2021-03-04 18:13:45 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "texture", "type": "texture"},
|
|
|
|
{"name": "mip level", "type": "uint32_t", "default": "0"},
|
|
|
|
{"name": "origin", "type": "origin 3D"},
|
|
|
|
{"name": "aspect", "type": "texture aspect", "default": "all"}
|
|
|
|
]
|
|
|
|
},
|
2022-10-26 00:58:46 +00:00
|
|
|
"image copy external texture": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": "in",
|
|
|
|
"tags": ["dawn"],
|
|
|
|
"members": [
|
|
|
|
{"name": "external texture", "type": "external texture"},
|
|
|
|
{"name": "origin", "type": "origin 3D"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"index format": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2020-08-27 01:13:35 +00:00
|
|
|
{"value": 0, "name": "undefined", "jsrepr": "undefined"},
|
|
|
|
{"value": 1, "name": "uint16"},
|
|
|
|
{"value": 2, "name": "uint32"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2020-01-10 13:06:48 +00:00
|
|
|
"instance": {
|
2020-01-15 13:14:12 +00:00
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "create surface",
|
|
|
|
"returns": "surface",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "surface descriptor", "annotation": "const*"}
|
|
|
|
]
|
2021-09-17 21:13:33 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "process events",
|
2022-02-08 20:21:40 +00:00
|
|
|
"tags": ["upstream", "emscripten"]
|
2021-09-17 21:13:33 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "request adapter",
|
|
|
|
"args": [
|
2022-07-26 17:36:44 +00:00
|
|
|
{"name": "options", "type": "request adapter options", "annotation": "const*", "optional": true, "no_default": true},
|
2021-12-13 17:37:17 +00:00
|
|
|
{"name": "callback", "type": "request adapter callback"},
|
2021-09-17 21:13:33 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
2020-01-15 13:14:12 +00:00
|
|
|
}
|
|
|
|
]
|
2020-01-10 13:06:48 +00:00
|
|
|
},
|
|
|
|
"instance descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2020-01-10 13:06:48 +00:00
|
|
|
"members": []
|
|
|
|
},
|
2022-02-02 21:00:52 +00:00
|
|
|
"dawn instance descriptor": {
|
|
|
|
"tags": ["dawn", "native"],
|
|
|
|
"category": "structure",
|
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["instance descriptor"],
|
2022-02-02 21:00:52 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "additional runtime search paths count", "type": "uint32_t", "default": 0},
|
|
|
|
{"name": "additional runtime search paths", "type": "char", "annotation": "const*const*", "length": "additional runtime search paths count"}
|
|
|
|
]
|
|
|
|
},
|
2021-02-08 19:48:06 +00:00
|
|
|
"vertex attribute": {
|
2019-02-14 00:35:39 +00:00
|
|
|
"category": "structure",
|
|
|
|
"extensible": false,
|
|
|
|
"members": [
|
2019-11-07 22:23:29 +00:00
|
|
|
{"name": "format", "type": "vertex format"},
|
|
|
|
{"name": "offset", "type": "uint64_t"},
|
|
|
|
{"name": "shader location", "type": "uint32_t"}
|
2019-02-14 00:35:39 +00:00
|
|
|
]
|
|
|
|
},
|
2021-02-08 19:48:06 +00:00
|
|
|
"vertex buffer layout": {
|
2019-02-14 23:56:07 +00:00
|
|
|
"category": "structure",
|
|
|
|
"extensible": false,
|
|
|
|
"members": [
|
2019-11-07 22:23:29 +00:00
|
|
|
{"name": "array stride", "type": "uint64_t"},
|
2021-07-25 18:40:19 +00:00
|
|
|
{"name": "step mode", "type": "vertex step mode", "default": "vertex"},
|
2019-06-06 17:54:30 +00:00
|
|
|
{"name": "attribute count", "type": "uint32_t"},
|
2021-02-08 19:48:06 +00:00
|
|
|
{"name": "attributes", "type": "vertex attribute", "annotation": "const*", "length": "attribute count"}
|
2019-02-14 23:56:07 +00:00
|
|
|
]
|
|
|
|
},
|
2021-07-25 18:40:19 +00:00
|
|
|
"vertex step mode": {
|
2017-05-31 00:03:44 +00:00
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2022-05-31 17:24:49 +00:00
|
|
|
{"value": 0, "name": "vertex"},
|
|
|
|
{"value": 1, "name": "instance"},
|
2022-08-01 23:03:14 +00:00
|
|
|
{"value": 2, "name": "vertex buffer not used", "jsrepr": "undefined", "valid": true}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2017-08-11 21:36:20 +00:00
|
|
|
"load op": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2022-03-09 18:43:51 +00:00
|
|
|
{"value": 0, "name": "undefined", "jsrepr": "undefined"},
|
2022-02-03 17:59:04 +00:00
|
|
|
{"value": 1, "name": "clear"},
|
|
|
|
{"value": 2, "name": "load"}
|
2017-08-11 21:36:20 +00:00
|
|
|
]
|
|
|
|
},
|
2020-07-14 12:30:14 +00:00
|
|
|
"map mode": {
|
|
|
|
"category": "bitmask",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "none"},
|
|
|
|
{"value": 1, "name": "read"},
|
|
|
|
{"value": 2, "name": "write"}
|
|
|
|
]
|
|
|
|
},
|
2022-03-16 18:44:16 +00:00
|
|
|
"mipmap filter mode": {
|
|
|
|
"category": "enum",
|
|
|
|
"tags": ["upstream"],
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "nearest"},
|
|
|
|
{"value": 1, "name": "linear"}
|
|
|
|
]
|
|
|
|
},
|
2018-12-19 08:21:13 +00:00
|
|
|
"store op": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2022-03-09 18:43:51 +00:00
|
|
|
{"value": 0, "name": "undefined", "jsrepr": "undefined"},
|
2022-02-03 17:59:04 +00:00
|
|
|
{"value": 1, "name": "store"},
|
|
|
|
{"value": 2, "name": "discard"}
|
2018-12-19 08:21:13 +00:00
|
|
|
]
|
|
|
|
},
|
2018-11-28 17:54:13 +00:00
|
|
|
"origin 3D": {
|
|
|
|
"category": "structure",
|
|
|
|
"members": [
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "x", "type": "uint32_t", "default": "0"},
|
|
|
|
{"name": "y", "type": "uint32_t", "default": "0"},
|
|
|
|
{"name": "z", "type": "uint32_t", "default": "0"}
|
2018-11-28 17:54:13 +00:00
|
|
|
]
|
|
|
|
},
|
2022-11-03 09:03:01 +00:00
|
|
|
"origin 2D": {
|
|
|
|
"category": "structure",
|
|
|
|
"tags": ["dawn"],
|
|
|
|
"members": [
|
|
|
|
{"name": "x", "type": "uint32_t", "default": "0"},
|
|
|
|
{"name": "y", "type": "uint32_t", "default": "0"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"pipeline layout": {
|
2021-11-19 18:26:08 +00:00
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
2018-06-27 23:21:39 +00:00
|
|
|
"pipeline layout descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2018-06-27 23:21:39 +00:00
|
|
|
"members": [
|
2019-10-03 14:56:49 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2019-02-21 00:45:19 +00:00
|
|
|
{"name": "bind group layout count", "type": "uint32_t"},
|
|
|
|
{"name": "bind group layouts", "type": "bind group layout", "annotation": "const*", "length": "bind group layout count"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2020-07-13 18:21:03 +00:00
|
|
|
"pipeline statistic name": {
|
2020-06-11 00:34:14 +00:00
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "vertex shader invocations"},
|
|
|
|
{"value": 1, "name": "clipper invocations"},
|
|
|
|
{"value": 2, "name": "clipper primitives out"},
|
|
|
|
{"value": 3, "name": "fragment shader invocations"},
|
|
|
|
{"value": 4, "name": "compute shader invocations"}
|
|
|
|
]
|
|
|
|
},
|
2021-09-21 17:36:27 +00:00
|
|
|
"power preference": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2022-02-08 20:21:40 +00:00
|
|
|
{"value": 0, "name": "undefined", "jsrepr": "undefined"},
|
2021-11-17 08:13:24 +00:00
|
|
|
{"value": 1, "name": "low power"},
|
|
|
|
{"value": 2, "name": "high performance"}
|
2021-09-21 17:36:27 +00:00
|
|
|
]
|
|
|
|
},
|
2020-01-23 17:20:38 +00:00
|
|
|
"present mode": {
|
|
|
|
"category": "enum",
|
2021-09-17 19:44:43 +00:00
|
|
|
"emscripten_no_enum_table": true,
|
2020-01-23 17:20:38 +00:00
|
|
|
"values": [
|
2020-03-20 16:47:50 +00:00
|
|
|
{"value": 0, "name": "immediate"},
|
|
|
|
{"value": 1, "name": "mailbox"},
|
|
|
|
{"value": 2, "name": "fifo"}
|
2020-01-23 17:20:38 +00:00
|
|
|
]
|
|
|
|
},
|
2019-10-07 12:23:09 +00:00
|
|
|
"programmable stage descriptor": {
|
2018-12-10 19:47:22 +00:00
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2018-12-10 19:47:22 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "module", "type": "shader module"},
|
2021-09-21 17:36:27 +00:00
|
|
|
{"name": "entry point", "type": "char", "annotation": "const*", "length": "strlen"},
|
2021-09-28 20:15:52 +00:00
|
|
|
{"name": "constant count", "type": "uint32_t", "default": 0},
|
|
|
|
{"name": "constants", "type": "constant entry", "annotation": "const*", "length": "constant count"}
|
2018-12-10 19:47:22 +00:00
|
|
|
]
|
|
|
|
},
|
2017-07-24 17:54:19 +00:00
|
|
|
"primitive topology": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2017-07-26 22:10:44 +00:00
|
|
|
{"value": 0, "name": "point list"},
|
|
|
|
{"value": 1, "name": "line list"},
|
2017-07-24 17:54:19 +00:00
|
|
|
{"value": 2, "name": "line strip"},
|
2017-07-26 22:10:44 +00:00
|
|
|
{"value": 3, "name": "triangle list"},
|
2017-07-24 17:54:19 +00:00
|
|
|
{"value": 4, "name": "triangle strip"}
|
|
|
|
]
|
|
|
|
},
|
2020-06-11 00:34:14 +00:00
|
|
|
"query set": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
2021-11-19 18:26:08 +00:00
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
},
|
2022-06-09 10:12:13 +00:00
|
|
|
{
|
|
|
|
"name": "get type",
|
|
|
|
"returns": "query type"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "get count",
|
|
|
|
"returns": "uint32_t"
|
|
|
|
},
|
2020-06-11 00:34:14 +00:00
|
|
|
{
|
|
|
|
"name": "destroy"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"query set descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2020-06-11 00:34:14 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
|
|
|
{"name": "type", "type": "query type"},
|
|
|
|
{"name": "count", "type": "uint32_t"},
|
2020-07-13 18:21:03 +00:00
|
|
|
{"name": "pipeline statistics", "type": "pipeline statistic name", "annotation": "const*", "length": "pipeline statistics count"},
|
2020-07-06 18:50:00 +00:00
|
|
|
{"name": "pipeline statistics count", "type": "uint32_t", "default": "0"}
|
2020-06-11 00:34:14 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"query type": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "occlusion"},
|
|
|
|
{"value": 1, "name": "pipeline statistics"},
|
|
|
|
{"value": 2, "name": "timestamp"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"queue": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "submit",
|
|
|
|
"args": [
|
2019-02-21 00:45:19 +00:00
|
|
|
{"name": "command count", "type": "uint32_t"},
|
|
|
|
{"name": "commands", "type": "command buffer", "annotation": "const*", "length": "command count"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
2018-12-03 16:57:34 +00:00
|
|
|
},
|
2021-02-25 13:17:01 +00:00
|
|
|
{
|
|
|
|
"name": "on submitted work done",
|
2022-03-16 18:44:16 +00:00
|
|
|
"tags": ["dawn", "emscripten"],
|
2021-02-25 13:17:01 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "signal value", "type": "uint64_t"},
|
2021-12-13 17:37:17 +00:00
|
|
|
{"name": "callback", "type": "queue work done callback"},
|
2021-02-25 13:17:01 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2022-03-16 18:44:16 +00:00
|
|
|
{
|
|
|
|
"name": "on submitted work done",
|
|
|
|
"tags": ["upstream"],
|
|
|
|
"args": [
|
|
|
|
{"name": "callback", "type": "queue work done callback"},
|
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2020-06-02 09:24:39 +00:00
|
|
|
{
|
|
|
|
"name": "write buffer",
|
|
|
|
"args": [
|
|
|
|
{"name": "buffer", "type": "buffer"},
|
|
|
|
{"name": "buffer offset", "type": "uint64_t"},
|
|
|
|
{"name": "data", "type": "void", "annotation": "const*", "length": "size"},
|
|
|
|
{"name": "size", "type": "size_t"}
|
|
|
|
]
|
2020-07-08 18:42:30 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "write texture",
|
|
|
|
"args": [
|
2021-03-04 18:13:45 +00:00
|
|
|
{"name": "destination", "type": "image copy texture", "annotation": "const*"},
|
2020-07-16 00:43:08 +00:00
|
|
|
{"name": "data", "type": "void", "annotation": "const*", "length": "data size"},
|
2020-07-08 18:42:30 +00:00
|
|
|
{"name": "data size", "type": "size_t"},
|
|
|
|
{"name": "data layout", "type": "texture data layout", "annotation": "const*"},
|
2020-07-16 00:43:08 +00:00
|
|
|
{"name": "write size", "type": "extent 3D", "annotation": "const*"}
|
2020-07-08 18:42:30 +00:00
|
|
|
]
|
2020-11-04 02:30:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "copy texture for browser",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
2020-11-04 02:30:16 +00:00
|
|
|
"args": [
|
2021-03-04 18:13:45 +00:00
|
|
|
{"name": "source", "type": "image copy texture", "annotation": "const*"},
|
|
|
|
{"name": "destination", "type": "image copy texture", "annotation": "const*"},
|
2020-12-02 08:13:09 +00:00
|
|
|
{"name": "copy size", "type": "extent 3D", "annotation": "const*"},
|
|
|
|
{"name": "options", "type": "copy texture for browser options", "annotation": "const*"}
|
2020-11-04 02:30:16 +00:00
|
|
|
]
|
2022-04-12 03:28:40 +00:00
|
|
|
},
|
2022-10-26 00:58:46 +00:00
|
|
|
{
|
|
|
|
"name": "copy external texture for browser",
|
|
|
|
"extensible": "in",
|
|
|
|
"tags": ["dawn"],
|
|
|
|
"args": [
|
|
|
|
{"name": "source", "type": "image copy external texture", "annotation": "const*"},
|
|
|
|
{"name": "destination", "type": "image copy texture", "annotation": "const*"},
|
|
|
|
{"name": "copy size", "type": "extent 3D", "annotation": "const*"},
|
|
|
|
{"name": "options", "type": "copy texture for browser options", "annotation": "const*"}
|
|
|
|
]
|
|
|
|
},
|
2022-04-12 03:28:40 +00:00
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-03-16 18:44:16 +00:00
|
|
|
"queue descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": "in",
|
|
|
|
"members": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}
|
|
|
|
]
|
|
|
|
},
|
2021-02-25 13:17:01 +00:00
|
|
|
"queue work done callback": {
|
2021-12-02 07:41:21 +00:00
|
|
|
"category": "function pointer",
|
2021-02-25 13:17:01 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "status", "type": "queue work done status"},
|
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"queue work done status": {
|
|
|
|
"category": "enum",
|
2021-09-17 19:44:43 +00:00
|
|
|
"emscripten_no_enum_table": true,
|
2021-02-25 13:17:01 +00:00
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "success"},
|
|
|
|
{"value": 1, "name": "error"},
|
|
|
|
{"value": 2, "name": "unknown"},
|
|
|
|
{"value": 3, "name": "device lost"}
|
|
|
|
]
|
|
|
|
},
|
2018-12-19 08:21:13 +00:00
|
|
|
|
2019-08-13 22:12:54 +00:00
|
|
|
"render bundle": {
|
|
|
|
"category": "object"
|
|
|
|
},
|
|
|
|
|
|
|
|
"render bundle encoder": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "set pipeline",
|
|
|
|
"args": [
|
|
|
|
{"name": "pipeline", "type": "render pipeline"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set bind group",
|
|
|
|
"args": [
|
|
|
|
{"name": "group index", "type": "uint32_t"},
|
|
|
|
{"name": "group", "type": "bind group"},
|
2019-10-09 16:08:42 +00:00
|
|
|
{"name": "dynamic offset count", "type": "uint32_t", "default": "0"},
|
2021-06-17 16:04:29 +00:00
|
|
|
{"name": "dynamic offsets", "type": "uint32_t", "annotation": "const*", "length": "dynamic offset count", "default": "nullptr"}
|
2019-08-13 22:12:54 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "draw",
|
|
|
|
"args": [
|
|
|
|
{"name": "vertex count", "type": "uint32_t"},
|
2020-03-31 16:21:35 +00:00
|
|
|
{"name": "instance count", "type": "uint32_t", "default": "1"},
|
|
|
|
{"name": "first vertex", "type": "uint32_t", "default": "0"},
|
|
|
|
{"name": "first instance", "type": "uint32_t", "default": "0"}
|
2019-08-13 22:12:54 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "draw indexed",
|
|
|
|
"args": [
|
|
|
|
{"name": "index count", "type": "uint32_t"},
|
2020-03-31 16:21:35 +00:00
|
|
|
{"name": "instance count", "type": "uint32_t", "default": "1"},
|
|
|
|
{"name": "first index", "type": "uint32_t", "default": "0"},
|
|
|
|
{"name": "base vertex", "type": "int32_t", "default": "0"},
|
|
|
|
{"name": "first instance", "type": "uint32_t", "default": "0"}
|
2019-08-13 22:12:54 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "draw indirect",
|
|
|
|
"args": [
|
|
|
|
{"name": "indirect buffer", "type": "buffer"},
|
|
|
|
{"name": "indirect offset", "type": "uint64_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "draw indexed indirect",
|
|
|
|
"args": [
|
|
|
|
{"name": "indirect buffer", "type": "buffer"},
|
|
|
|
{"name": "indirect offset", "type": "uint64_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "insert debug marker",
|
|
|
|
"args": [
|
2020-07-12 16:01:38 +00:00
|
|
|
{"name": "marker label", "type": "char", "annotation": "const*", "length": "strlen"}
|
2019-08-13 22:12:54 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "pop debug group",
|
|
|
|
"args": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "push debug group",
|
|
|
|
"args": [
|
|
|
|
{"name": "group label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2019-10-10 07:29:58 +00:00
|
|
|
"name": "set vertex buffer",
|
2019-08-13 22:12:54 +00:00
|
|
|
"args": [
|
2019-10-10 07:29:58 +00:00
|
|
|
{"name": "slot", "type": "uint32_t"},
|
|
|
|
{"name": "buffer", "type": "buffer"},
|
2020-04-24 09:42:03 +00:00
|
|
|
{"name": "offset", "type": "uint64_t", "default": "0"},
|
2021-09-28 02:05:00 +00:00
|
|
|
{"name": "size", "type": "uint64_t", "default": "WGPU_WHOLE_SIZE"}
|
2019-08-13 22:12:54 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set index buffer",
|
|
|
|
"args": [
|
|
|
|
{"name": "buffer", "type": "buffer"},
|
2020-11-25 08:54:14 +00:00
|
|
|
{"name": "format", "type": "index format"},
|
2020-04-24 09:42:03 +00:00
|
|
|
{"name": "offset", "type": "uint64_t", "default": "0"},
|
2021-09-28 02:05:00 +00:00
|
|
|
{"name": "size", "type": "uint64_t", "default": "WGPU_WHOLE_SIZE"}
|
2019-08-13 22:12:54 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "finish",
|
|
|
|
"returns": "render bundle",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "render bundle descriptor", "annotation": "const*", "optional": true}
|
|
|
|
]
|
2021-11-23 00:09:25 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
2019-08-13 22:12:54 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"render bundle descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2019-10-03 14:56:49 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}
|
|
|
|
]
|
2019-08-13 22:12:54 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"render bundle encoder descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2019-08-13 22:12:54 +00:00
|
|
|
"members": [
|
2019-10-03 14:56:49 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2019-08-13 22:12:54 +00:00
|
|
|
{"name": "color formats count", "type": "uint32_t"},
|
|
|
|
{"name": "color formats", "type": "texture format", "annotation": "const*", "length": "color formats count"},
|
2019-09-05 09:12:32 +00:00
|
|
|
{"name": "depth stencil format", "type": "texture format", "default": "undefined"},
|
2021-10-15 16:56:13 +00:00
|
|
|
{"name": "sample count", "type": "uint32_t", "default": "1"},
|
|
|
|
{"name": "depth read only", "type": "bool", "default": "false"},
|
|
|
|
{"name": "stencil read only", "type": "bool", "default": "false"}
|
2019-08-13 22:12:54 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2021-04-17 01:51:53 +00:00
|
|
|
"render pass color attachment": {
|
2018-12-19 08:21:13 +00:00
|
|
|
"category": "structure",
|
|
|
|
"members": [
|
2022-03-05 01:34:02 +00:00
|
|
|
{"name": "view", "type": "texture view", "optional": true},
|
2018-12-19 08:21:13 +00:00
|
|
|
{"name": "resolve target", "type": "texture view", "optional": true},
|
|
|
|
{"name": "load op", "type": "load op"},
|
|
|
|
{"name": "store op", "type": "store op"},
|
2022-03-07 19:29:54 +00:00
|
|
|
{"name": "clear color", "type": "color", "default": "{ NAN, NAN, NAN, NAN }", "tags": ["deprecated"]},
|
|
|
|
{"name": "clear value", "type": "color"}
|
2018-12-19 08:21:13 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2021-04-17 01:51:53 +00:00
|
|
|
"render pass depth stencil attachment": {
|
2018-12-19 08:21:13 +00:00
|
|
|
"category": "structure",
|
|
|
|
"members": [
|
2021-09-14 10:42:22 +00:00
|
|
|
{"name": "view", "type": "texture view"},
|
2022-02-03 17:59:04 +00:00
|
|
|
{"name": "depth load op", "type": "load op", "default": "undefined"},
|
|
|
|
{"name": "depth store op", "type": "store op", "default": "undefined"},
|
2022-03-07 19:29:54 +00:00
|
|
|
{"name": "clear depth", "type": "float", "default": "NAN", "tags": ["deprecated"]},
|
2022-02-19 00:44:12 +00:00
|
|
|
{"name": "depth clear value", "type": "float", "default": "0"},
|
2020-07-10 23:13:58 +00:00
|
|
|
{"name": "depth read only", "type": "bool", "default": "false"},
|
2022-02-03 17:59:04 +00:00
|
|
|
{"name": "stencil load op", "type": "load op", "default": "undefined"},
|
|
|
|
{"name": "stencil store op", "type": "store op", "default": "undefined"},
|
2022-03-07 19:29:54 +00:00
|
|
|
{"name": "clear stencil", "type": "uint32_t", "default": "0", "tags": ["deprecated"]},
|
2022-02-19 00:44:12 +00:00
|
|
|
{"name": "stencil clear value", "type": "uint32_t", "default": "0"},
|
2021-09-14 10:42:22 +00:00
|
|
|
{"name": "stencil read only", "type": "bool", "default": "false"}
|
2018-12-19 08:21:13 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2018-05-11 17:04:44 +00:00
|
|
|
"render pass descriptor": {
|
2019-02-27 09:21:56 +00:00
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2019-02-27 09:21:56 +00:00
|
|
|
"members": [
|
2019-10-03 14:56:49 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2019-02-27 09:21:56 +00:00
|
|
|
{"name": "color attachment count", "type": "uint32_t"},
|
2021-04-17 01:51:53 +00:00
|
|
|
{"name": "color attachments", "type": "render pass color attachment", "annotation": "const*", "length": "color attachment count"},
|
|
|
|
{"name": "depth stencil attachment", "type": "render pass depth stencil attachment", "annotation": "const*", "optional": true},
|
2021-11-17 08:13:24 +00:00
|
|
|
{"name": "occlusion query set", "type": "query set", "optional": true},
|
2022-03-05 01:22:52 +00:00
|
|
|
{"name": "timestamp write count", "type": "uint32_t", "default": 0},
|
|
|
|
{"name": "timestamp writes", "type": "render pass timestamp write", "annotation": "const*", "length": "timestamp write count"}
|
2019-02-27 09:21:56 +00:00
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
2022-06-30 04:19:42 +00:00
|
|
|
"render pass descriptor max draw count": {
|
|
|
|
"category": "structure",
|
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["render pass descriptor"],
|
2022-06-30 04:19:42 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "max draw count", "type": "uint64_t", "default": 50000000}
|
|
|
|
]
|
|
|
|
},
|
2018-09-21 00:24:37 +00:00
|
|
|
"render pass encoder": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
2018-12-21 10:40:26 +00:00
|
|
|
"name": "set pipeline",
|
2018-09-21 00:24:37 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "pipeline", "type": "render pipeline"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set bind group",
|
|
|
|
"args": [
|
|
|
|
{"name": "group index", "type": "uint32_t"},
|
2019-03-18 06:01:37 +00:00
|
|
|
{"name": "group", "type": "bind group"},
|
2019-10-09 16:08:42 +00:00
|
|
|
{"name": "dynamic offset count", "type": "uint32_t", "default": "0"},
|
2021-06-17 16:04:29 +00:00
|
|
|
{"name": "dynamic offsets", "type": "uint32_t", "annotation": "const*", "length": "dynamic offset count", "default": "nullptr"}
|
2018-09-21 00:24:37 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2018-12-10 05:20:19 +00:00
|
|
|
"name": "draw",
|
2018-09-21 00:24:37 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "vertex count", "type": "uint32_t"},
|
2020-03-31 16:21:35 +00:00
|
|
|
{"name": "instance count", "type": "uint32_t", "default": "1"},
|
|
|
|
{"name": "first vertex", "type": "uint32_t", "default": "0"},
|
|
|
|
{"name": "first instance", "type": "uint32_t", "default": "0"}
|
2018-09-21 00:24:37 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2018-12-10 05:20:19 +00:00
|
|
|
"name": "draw indexed",
|
2018-09-21 00:24:37 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "index count", "type": "uint32_t"},
|
2020-03-31 16:21:35 +00:00
|
|
|
{"name": "instance count", "type": "uint32_t", "default": "1"},
|
|
|
|
{"name": "first index", "type": "uint32_t", "default": "0"},
|
|
|
|
{"name": "base vertex", "type": "int32_t", "default": "0"},
|
|
|
|
{"name": "first instance", "type": "uint32_t", "default": "0"}
|
2018-09-21 00:24:37 +00:00
|
|
|
]
|
|
|
|
},
|
2019-06-10 20:56:27 +00:00
|
|
|
{
|
|
|
|
"name": "draw indirect",
|
|
|
|
"args": [
|
|
|
|
{"name": "indirect buffer", "type": "buffer"},
|
|
|
|
{"name": "indirect offset", "type": "uint64_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "draw indexed indirect",
|
|
|
|
"args": [
|
|
|
|
{"name": "indirect buffer", "type": "buffer"},
|
|
|
|
{"name": "indirect offset", "type": "uint64_t"}
|
|
|
|
]
|
|
|
|
},
|
2019-08-13 22:12:54 +00:00
|
|
|
{
|
|
|
|
"name": "execute bundles",
|
|
|
|
"args": [
|
2022-09-30 20:34:08 +00:00
|
|
|
{"name": "bundle count", "type": "uint32_t"},
|
|
|
|
{"name": "bundles", "type": "render bundle", "annotation": "const*", "length": "bundle count"}
|
2019-08-13 22:12:54 +00:00
|
|
|
]
|
|
|
|
},
|
2019-02-20 20:21:00 +00:00
|
|
|
{
|
|
|
|
"name": "insert debug marker",
|
|
|
|
"args": [
|
2020-07-12 16:01:38 +00:00
|
|
|
{"name": "marker label", "type": "char", "annotation": "const*", "length": "strlen"}
|
2019-02-20 20:21:00 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "pop debug group",
|
|
|
|
"args": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "push debug group",
|
|
|
|
"args": [
|
|
|
|
{"name": "group label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
},
|
2018-09-21 00:24:37 +00:00
|
|
|
{
|
|
|
|
"name": "set stencil reference",
|
|
|
|
"args": [
|
|
|
|
{"name": "reference", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
2021-04-15 19:33:58 +00:00
|
|
|
{
|
|
|
|
"name": "set blend constant",
|
|
|
|
"args": [
|
|
|
|
{"name": "color", "type": "color", "annotation": "const*"}
|
|
|
|
]
|
|
|
|
},
|
2019-07-04 15:30:59 +00:00
|
|
|
{
|
|
|
|
"name": "set viewport",
|
|
|
|
"args": [
|
|
|
|
{"name": "x", "type": "float"},
|
|
|
|
{"name": "y", "type": "float"},
|
|
|
|
{"name": "width", "type": "float"},
|
|
|
|
{"name": "height", "type": "float"},
|
|
|
|
{"name": "min depth", "type": "float"},
|
|
|
|
{"name": "max depth", "type": "float"}
|
|
|
|
]
|
|
|
|
},
|
2018-09-21 00:24:37 +00:00
|
|
|
{
|
|
|
|
"name": "set scissor rect",
|
|
|
|
"args": [
|
|
|
|
{"name": "x", "type": "uint32_t"},
|
|
|
|
{"name": "y", "type": "uint32_t"},
|
|
|
|
{"name": "width", "type": "uint32_t"},
|
|
|
|
{"name": "height", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2019-10-10 07:29:58 +00:00
|
|
|
"name": "set vertex buffer",
|
2018-09-21 00:24:37 +00:00
|
|
|
"args": [
|
2019-10-10 07:29:58 +00:00
|
|
|
{"name": "slot", "type": "uint32_t"},
|
|
|
|
{"name": "buffer", "type": "buffer"},
|
2020-04-24 09:42:03 +00:00
|
|
|
{"name": "offset", "type": "uint64_t", "default": "0"},
|
2021-09-28 02:05:00 +00:00
|
|
|
{"name": "size", "type": "uint64_t", "default": "WGPU_WHOLE_SIZE"}
|
2018-09-21 00:24:37 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set index buffer",
|
|
|
|
"args": [
|
|
|
|
{"name": "buffer", "type": "buffer"},
|
2020-11-25 08:54:14 +00:00
|
|
|
{"name": "format", "type": "index format"},
|
2020-04-24 09:42:03 +00:00
|
|
|
{"name": "offset", "type": "uint64_t", "default": "0"},
|
2021-09-28 02:05:00 +00:00
|
|
|
{"name": "size", "type": "uint64_t", "default": "WGPU_WHOLE_SIZE"}
|
2018-09-21 00:24:37 +00:00
|
|
|
]
|
|
|
|
},
|
2020-11-18 09:47:52 +00:00
|
|
|
{
|
|
|
|
"name": "begin occlusion query",
|
|
|
|
"args": [
|
|
|
|
{"name": "query index", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
2021-09-17 21:13:33 +00:00
|
|
|
{
|
|
|
|
"name": "begin pipeline statistics query",
|
2022-02-08 20:21:40 +00:00
|
|
|
"tags": ["upstream", "emscripten"],
|
2021-09-17 21:13:33 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "query set", "type": "query set"},
|
|
|
|
{"name": "query index", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
2020-11-18 09:47:52 +00:00
|
|
|
{
|
|
|
|
"name": "end occlusion query"
|
|
|
|
},
|
2020-07-01 10:48:16 +00:00
|
|
|
{
|
|
|
|
"name": "write timestamp",
|
2021-11-17 08:13:24 +00:00
|
|
|
"tags": ["emscripten", "dawn"],
|
2020-07-01 10:48:16 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "query set", "type": "query set"},
|
|
|
|
{"name": "query index", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
2018-09-21 00:24:37 +00:00
|
|
|
{
|
2022-02-07 19:48:39 +00:00
|
|
|
"name": "end"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "end pass",
|
|
|
|
"tags": ["deprecated"]
|
2021-09-17 21:13:33 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "end pipeline statistics query",
|
2022-02-08 20:21:40 +00:00
|
|
|
"tags": ["upstream", "emscripten"]
|
2021-11-23 00:09:25 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
2018-09-21 00:24:37 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-11-17 08:13:24 +00:00
|
|
|
"render pass timestamp location": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "beginning"},
|
|
|
|
{"value": 1, "name": "end"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"render pass timestamp write": {
|
|
|
|
"category": "structure",
|
|
|
|
"members": [
|
|
|
|
{"name": "query set", "type": "query set"},
|
|
|
|
{"name": "query index", "type": "uint32_t"},
|
|
|
|
{"name": "location", "type": "render pass timestamp location"}
|
|
|
|
]
|
|
|
|
},
|
2017-07-14 14:58:07 +00:00
|
|
|
"render pipeline": {
|
2019-11-22 17:02:22 +00:00
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "get bind group layout",
|
|
|
|
"returns": "bind group layout",
|
|
|
|
"args": [
|
2020-04-01 18:22:36 +00:00
|
|
|
{"name": "group index", "type": "uint32_t"}
|
2019-11-22 17:02:22 +00:00
|
|
|
]
|
2021-09-02 18:39:53 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
2019-11-22 17:02:22 +00:00
|
|
|
}
|
2021-09-10 21:07:39 +00:00
|
|
|
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"request device callback": {
|
2021-12-02 07:41:21 +00:00
|
|
|
"category": "function pointer",
|
2021-09-10 21:07:39 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "status", "type": "request device status"},
|
|
|
|
{"name": "device", "type": "device"},
|
2021-12-14 23:22:46 +00:00
|
|
|
{"name": "message", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2021-09-10 21:07:39 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"request device status": {
|
|
|
|
"category": "enum",
|
2021-09-17 19:44:43 +00:00
|
|
|
"emscripten_no_enum_table": true,
|
2021-09-10 21:07:39 +00:00
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "success"},
|
|
|
|
{"value": 1, "name": "error"},
|
|
|
|
{"value": 2, "name": "unknown"}
|
2019-11-22 17:02:22 +00:00
|
|
|
]
|
2017-07-14 14:58:07 +00:00
|
|
|
},
|
2021-03-11 21:19:00 +00:00
|
|
|
|
|
|
|
"vertex state": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2021-03-11 21:19:00 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "module", "type": "shader module"},
|
|
|
|
{"name": "entry point", "type": "char", "annotation": "const*", "length": "strlen"},
|
2021-09-28 20:15:52 +00:00
|
|
|
{"name": "constant count", "type": "uint32_t", "default": 0},
|
|
|
|
{"name": "constants", "type": "constant entry", "annotation": "const*", "length": "constant count"},
|
2021-04-16 07:19:35 +00:00
|
|
|
{"name": "buffer count", "type": "uint32_t", "default": 0},
|
2021-03-11 21:19:00 +00:00
|
|
|
{"name": "buffers", "type": "vertex buffer layout", "annotation": "const*", "length": "buffer count"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"primitive state": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2021-03-11 21:19:00 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "topology", "type": "primitive topology", "default": "triangle list"},
|
|
|
|
{"name": "strip index format", "type": "index format", "default": "undefined"},
|
|
|
|
{"name": "front face", "type": "front face", "default": "CCW"},
|
|
|
|
{"name": "cull mode", "type": "cull mode", "default": "none"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2021-11-18 23:05:40 +00:00
|
|
|
"primitive depth clip control": {
|
|
|
|
"category": "structure",
|
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["primitive state"],
|
2021-11-18 23:05:40 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "unclipped depth", "type": "bool", "default": "false"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2021-03-11 21:19:00 +00:00
|
|
|
"depth stencil state": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2021-03-11 21:19:00 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "format", "type": "texture format"},
|
|
|
|
{"name": "depth write enabled", "type": "bool", "default": "false"},
|
|
|
|
{"name": "depth compare", "type": "compare function", "default": "always"},
|
|
|
|
{"name": "stencil front", "type": "stencil face state"},
|
|
|
|
{"name": "stencil back", "type": "stencil face state"},
|
|
|
|
{"name": "stencil read mask", "type": "uint32_t", "default": "0xFFFFFFFF"},
|
|
|
|
{"name": "stencil write mask", "type": "uint32_t", "default": "0xFFFFFFFF"},
|
|
|
|
{"name": "depth bias", "type": "int32_t", "default": "0"},
|
|
|
|
{"name": "depth bias slope scale", "type": "float", "default": "0.0f"},
|
|
|
|
{"name": "depth bias clamp", "type": "float", "default": "0.0f"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"multisample state": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2021-03-11 21:19:00 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "count", "type": "uint32_t", "default": "1"},
|
|
|
|
{"name": "mask", "type": "uint32_t", "default": "0xFFFFFFFF"},
|
|
|
|
{"name": "alpha to coverage enabled", "type": "bool", "default": "false"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"fragment state": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2021-03-11 21:19:00 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "module", "type": "shader module"},
|
|
|
|
{"name": "entry point", "type": "char", "annotation": "const*", "length": "strlen"},
|
2021-09-28 20:15:52 +00:00
|
|
|
{"name": "constant count", "type": "uint32_t", "default": 0},
|
|
|
|
{"name": "constants", "type": "constant entry", "annotation": "const*", "length": "constant count"},
|
2021-03-11 21:19:00 +00:00
|
|
|
{"name": "target count", "type": "uint32_t"},
|
|
|
|
{"name": "targets", "type": "color target state", "annotation": "const*", "length": "target count"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"color target state": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2021-03-11 21:19:00 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "format", "type": "texture format"},
|
|
|
|
{"name": "blend", "type": "blend state", "annotation": "const*", "optional": true},
|
|
|
|
{"name": "write mask", "type": "color write mask", "default": "all"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"blend state": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": false,
|
|
|
|
"members": [
|
|
|
|
{"name": "color", "type": "blend component"},
|
|
|
|
{"name": "alpha", "type": "blend component"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2018-12-10 19:47:22 +00:00
|
|
|
"render pipeline descriptor": {
|
2021-03-11 21:19:00 +00:00
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2021-03-11 21:19:00 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
|
|
|
{"name": "layout", "type": "pipeline layout", "optional": true},
|
|
|
|
{"name": "vertex", "type": "vertex state"},
|
|
|
|
{"name": "primitive", "type": "primitive state"},
|
|
|
|
{"name": "depth stencil", "type": "depth stencil state", "annotation": "const*", "optional": true},
|
|
|
|
{"name": "multisample", "type": "multisample state"},
|
|
|
|
{"name": "fragment", "type": "fragment state", "annotation": "const*", "optional": true}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2017-05-31 00:03:44 +00:00
|
|
|
"sampler": {
|
2021-11-19 18:26:08 +00:00
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
2018-05-17 21:09:07 +00:00
|
|
|
"sampler descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2018-05-17 21:09:07 +00:00
|
|
|
"members": [
|
2019-10-03 14:56:49 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "address mode u", "type": "address mode", "default": "clamp to edge"},
|
|
|
|
{"name": "address mode v", "type": "address mode", "default": "clamp to edge"},
|
|
|
|
{"name": "address mode w", "type": "address mode", "default": "clamp to edge"},
|
|
|
|
{"name": "mag filter", "type": "filter mode", "default": "nearest"},
|
|
|
|
{"name": "min filter", "type": "filter mode", "default": "nearest"},
|
2022-03-16 18:44:16 +00:00
|
|
|
{"name": "mipmap filter", "type": "filter mode", "default": "nearest", "tags": ["dawn", "emscripten"]},
|
|
|
|
{"name": "mipmap filter", "type": "mipmap filter mode", "default": "nearest", "tags": ["upstream"]},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "lod min clamp", "type": "float", "default": "0.0f"},
|
|
|
|
{"name": "lod max clamp", "type": "float", "default": "1000.0f"},
|
2020-12-24 03:11:17 +00:00
|
|
|
{"name": "compare", "type": "compare function", "default": "undefined"},
|
|
|
|
{"name": "max anisotropy", "type": "uint16_t", "default": "1"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"shader module": {
|
2021-04-05 23:34:17 +00:00
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "get compilation info",
|
|
|
|
"args": [
|
2021-12-13 17:37:17 +00:00
|
|
|
{"name": "callback", "type": "compilation info callback"},
|
2021-04-05 23:34:17 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
2021-09-02 18:39:53 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
2021-04-05 23:34:17 +00:00
|
|
|
}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
2018-08-20 15:01:20 +00:00
|
|
|
"shader module descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2018-08-20 15:01:20 +00:00
|
|
|
"members": [
|
2022-03-21 17:11:53 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
|
|
|
{"name": "hint count", "type": "uint32_t", "default": 0, "tags": ["upstream"]},
|
|
|
|
{"name": "hints", "type": "shader module compilation hint", "annotation": "const*", "length": "hint count", "tags": ["upstream"]}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"shader module compilation hint": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": "in",
|
|
|
|
"tags": ["upstream"],
|
|
|
|
"members": [
|
|
|
|
{"name": "entry point", "type": "char", "annotation": "const*", "length": "strlen"},
|
|
|
|
{"name": "layout", "type": "pipeline layout"}
|
2020-04-21 08:04:48 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"shader module SPIRV descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["shader module descriptor"],
|
2020-04-21 08:04:48 +00:00
|
|
|
"members": [
|
2018-08-20 15:01:20 +00:00
|
|
|
{"name": "code size", "type": "uint32_t"},
|
|
|
|
{"name": "code", "type": "uint32_t", "annotation": "const*", "length": "code size"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2020-04-21 08:04:48 +00:00
|
|
|
"shader module WGSL descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["shader module descriptor"],
|
2020-04-21 08:04:48 +00:00
|
|
|
"members": [
|
2021-11-18 23:05:40 +00:00
|
|
|
{"name": "source", "type": "char", "annotation": "const*", "length": "strlen", "tags": ["dawn", "emscripten"]},
|
|
|
|
{"name": "code", "type": "char", "annotation": "const*", "length": "strlen", "tags": ["upstream"]}
|
2020-04-21 08:04:48 +00:00
|
|
|
]
|
|
|
|
},
|
2023-02-03 19:38:46 +00:00
|
|
|
"dawn shader module SPIRV options descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"chained": "in",
|
|
|
|
"chain roots": ["shader module descriptor"],
|
|
|
|
"tags": ["dawn"],
|
|
|
|
"members": [
|
|
|
|
{"name": "allow non uniform derivatives", "type": "bool", "default": "false"}
|
|
|
|
]
|
|
|
|
},
|
2019-08-27 08:42:29 +00:00
|
|
|
"shader stage": {
|
2017-05-31 00:03:44 +00:00
|
|
|
"category": "bitmask",
|
|
|
|
"values": [
|
2017-07-20 15:00:39 +00:00
|
|
|
{"value": 0, "name": "none"},
|
2017-05-31 00:03:44 +00:00
|
|
|
{"value": 1, "name": "vertex"},
|
|
|
|
{"value": 2, "name": "fragment"},
|
|
|
|
{"value": 4, "name": "compute"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"stencil operation": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "keep"},
|
|
|
|
{"value": 1, "name": "zero"},
|
|
|
|
{"value": 2, "name": "replace"},
|
|
|
|
{"value": 3, "name": "invert"},
|
|
|
|
{"value": 4, "name": "increment clamp"},
|
|
|
|
{"value": 5, "name": "decrement clamp"},
|
|
|
|
{"value": 6, "name": "increment wrap"},
|
|
|
|
{"value": 7, "name": "decrement wrap"}
|
2017-06-01 15:30:03 +00:00
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
2021-03-11 21:19:00 +00:00
|
|
|
"stencil face state": {
|
2018-12-15 02:32:34 +00:00
|
|
|
"category": "structure",
|
|
|
|
"extensible": false,
|
|
|
|
"members": [
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "compare", "type": "compare function", "default": "always"},
|
|
|
|
{"name": "fail op", "type": "stencil operation", "default": "keep"},
|
|
|
|
{"name": "depth fail op", "type": "stencil operation", "default": "keep"},
|
|
|
|
{"name": "pass op", "type": "stencil operation", "default": "keep"}
|
2018-12-15 02:32:34 +00:00
|
|
|
]
|
|
|
|
},
|
2020-01-15 13:14:12 +00:00
|
|
|
"surface": {
|
2021-09-17 21:13:33 +00:00
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "get preferred format",
|
|
|
|
"returns": "texture format",
|
2022-02-08 20:21:40 +00:00
|
|
|
"tags": ["upstream", "emscripten"],
|
2021-09-17 21:13:33 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "adapter", "type": "adapter"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2020-01-15 13:14:12 +00:00
|
|
|
},
|
|
|
|
"surface descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2020-01-15 13:14:12 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}
|
|
|
|
]
|
|
|
|
},
|
2022-03-08 20:56:10 +00:00
|
|
|
"surface descriptor from android native window": {
|
|
|
|
"category": "structure",
|
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["surface descriptor"],
|
2022-03-08 20:56:10 +00:00
|
|
|
"tags": ["native"],
|
|
|
|
"members": [
|
|
|
|
{"name": "window", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2020-07-06 18:50:00 +00:00
|
|
|
"surface descriptor from canvas HTML selector": {
|
2020-01-22 21:37:26 +00:00
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["surface descriptor"],
|
2020-01-22 21:37:26 +00:00
|
|
|
"members": [
|
2020-07-06 18:50:00 +00:00
|
|
|
{"name": "selector", "type": "char", "annotation": "const*", "length": "strlen"}
|
2020-01-22 21:37:26 +00:00
|
|
|
]
|
|
|
|
},
|
2020-01-15 13:14:12 +00:00
|
|
|
"surface descriptor from metal layer": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["surface descriptor"],
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["native"],
|
2020-01-15 13:14:12 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "layer", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"surface descriptor from windows HWND": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["surface descriptor"],
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["native"],
|
2020-01-15 13:14:12 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "hinstance", "type": "void", "annotation": "*"},
|
|
|
|
{"name": "hwnd", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2022-03-21 17:11:53 +00:00
|
|
|
"surface descriptor from xcb window": {
|
|
|
|
"category": "structure",
|
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["surface descriptor"],
|
2022-03-21 17:11:53 +00:00
|
|
|
"tags": ["upstream"],
|
|
|
|
"members": [
|
|
|
|
{"name": "connection", "type": "void", "annotation": "*"},
|
|
|
|
{"name": "window", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
2022-03-09 19:04:21 +00:00
|
|
|
"surface descriptor from xlib window": {
|
2020-01-15 13:14:12 +00:00
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["surface descriptor"],
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["native"],
|
2020-01-15 13:14:12 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "display", "type": "void", "annotation": "*"},
|
|
|
|
{"name": "window", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
2022-03-08 20:56:10 +00:00
|
|
|
"surface descriptor from wayland surface": {
|
|
|
|
"category": "structure",
|
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["surface descriptor"],
|
2022-03-08 20:56:10 +00:00
|
|
|
"tags": ["native"],
|
|
|
|
"members": [
|
|
|
|
{"name": "display", "type": "void", "annotation": "*"},
|
|
|
|
{"name": "surface", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2021-04-27 16:43:27 +00:00
|
|
|
"surface descriptor from windows core window": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["surface descriptor"],
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
2021-04-27 16:43:27 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "core window", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2021-06-09 08:44:07 +00:00
|
|
|
"surface descriptor from windows swap chain panel": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["surface descriptor"],
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
2021-06-09 08:44:07 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "swap chain panel", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
2017-07-19 22:41:17 +00:00
|
|
|
"swap chain": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "configure",
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
2017-07-19 22:41:17 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "format", "type": "texture format"},
|
2019-08-27 08:21:39 +00:00
|
|
|
{"name": "allowed usage", "type": "texture usage"},
|
2017-07-19 22:41:17 +00:00
|
|
|
{"name": "width", "type": "uint32_t"},
|
|
|
|
{"name": "height", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
2019-11-12 18:30:11 +00:00
|
|
|
{"name": "get current texture view", "returns": "texture view"},
|
|
|
|
{"name": "present"}
|
2017-07-19 22:41:17 +00:00
|
|
|
]
|
|
|
|
},
|
2019-02-15 11:15:58 +00:00
|
|
|
"swap chain descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2019-02-15 11:15:58 +00:00
|
|
|
"members": [
|
2019-10-03 14:56:49 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2020-01-23 17:20:38 +00:00
|
|
|
{"name": "usage", "type": "texture usage"},
|
|
|
|
{"name": "format", "type": "texture format"},
|
|
|
|
{"name": "width", "type": "uint32_t"},
|
|
|
|
{"name": "height", "type": "uint32_t"},
|
|
|
|
{"name": "present mode", "type": "present mode"},
|
2021-09-17 19:44:43 +00:00
|
|
|
{"name": "implementation", "type": "uint64_t", "default": 0, "tags": ["deprecated"]}
|
2017-07-19 22:41:17 +00:00
|
|
|
]
|
|
|
|
},
|
2020-01-15 09:54:42 +00:00
|
|
|
"s type": {
|
|
|
|
"category": "enum",
|
2021-09-17 19:44:43 +00:00
|
|
|
"emscripten_no_enum_table": true,
|
2020-01-15 09:54:42 +00:00
|
|
|
"values": [
|
2020-04-03 17:37:48 +00:00
|
|
|
{"value": 0, "name": "invalid", "valid": false},
|
2021-09-17 19:44:43 +00:00
|
|
|
{"value": 1, "name": "surface descriptor from metal layer", "tags": ["native"]},
|
|
|
|
{"value": 2, "name": "surface descriptor from windows HWND", "tags": ["native"]},
|
2022-03-09 19:04:21 +00:00
|
|
|
{"value": 3, "name": "surface descriptor from xlib window", "tags": ["native"]},
|
2020-07-06 18:50:00 +00:00
|
|
|
{"value": 4, "name": "surface descriptor from canvas HTML selector"},
|
2020-04-21 08:04:48 +00:00
|
|
|
{"value": 5, "name": "shader module SPIRV descriptor"},
|
|
|
|
{"value": 6, "name": "shader module WGSL descriptor"},
|
2022-06-13 19:18:55 +00:00
|
|
|
{"value": 7, "name": "primitive depth clip control"},
|
2022-03-08 20:56:10 +00:00
|
|
|
{"value": 8, "name": "surface descriptor from wayland surface", "tags": ["native"]},
|
|
|
|
{"value": 9, "name": "surface descriptor from android native window", "tags": ["native"]},
|
2022-03-21 17:11:53 +00:00
|
|
|
{"value": 10, "name": "surface descriptor from xcb window", "tags": ["upstream"]},
|
|
|
|
{"value": 11, "name": "surface descriptor from windows core window", "tags": ["dawn"]},
|
|
|
|
{"value": 12, "name": "external texture binding entry", "tags": ["dawn"]},
|
|
|
|
{"value": 13, "name": "external texture binding layout", "tags": ["dawn"]},
|
|
|
|
{"value": 14, "name": "surface descriptor from windows swap chain panel", "tags": ["dawn"]},
|
2022-06-30 04:19:42 +00:00
|
|
|
{"value": 15, "name": "render pass descriptor max draw count"},
|
2021-11-18 23:05:40 +00:00
|
|
|
{"value": 1000, "name": "dawn texture internal usage descriptor", "tags": ["dawn"]},
|
2023-01-30 09:16:51 +00:00
|
|
|
{"value": 1002, "name": "dawn toggles device descriptor", "tags": ["dawn", "native", "deprecated"]},
|
2022-02-02 21:00:52 +00:00
|
|
|
{"value": 1003, "name": "dawn encoder internal usage descriptor", "tags": ["dawn"]},
|
2022-03-01 22:59:40 +00:00
|
|
|
{"value": 1004, "name": "dawn instance descriptor", "tags": ["dawn", "native"]},
|
2022-09-23 00:29:46 +00:00
|
|
|
{"value": 1005, "name": "dawn cache device descriptor", "tags": ["dawn", "native"]},
|
2022-11-23 02:06:11 +00:00
|
|
|
{"value": 1006, "name": "dawn adapter properties power preference", "tags": ["dawn", "native"]},
|
2023-01-30 09:16:51 +00:00
|
|
|
{"value": 1007, "name": "dawn buffer descriptor error info from wire client", "tags": ["dawn"]},
|
2023-02-03 19:38:46 +00:00
|
|
|
{"value": 1008, "name": "dawn toggles descriptor", "tags": ["dawn", "native"]},
|
|
|
|
{"value": 1009, "name": "dawn shader module SPIRV options descriptor", "tags": ["dawn"]}
|
2020-01-15 09:54:42 +00:00
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"texture": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
2018-10-12 08:32:58 +00:00
|
|
|
{
|
2019-04-09 16:57:00 +00:00
|
|
|
"name": "create view",
|
2018-10-12 08:32:58 +00:00
|
|
|
"returns": "texture view",
|
|
|
|
"args": [
|
2019-08-26 22:51:19 +00:00
|
|
|
{"name": "descriptor", "type": "texture view descriptor", "annotation": "const*", "optional": true}
|
2018-10-12 08:32:58 +00:00
|
|
|
]
|
2019-03-27 22:04:10 +00:00
|
|
|
},
|
2021-08-19 20:47:28 +00:00
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
},
|
2022-06-08 18:14:02 +00:00
|
|
|
{
|
|
|
|
"name": "get width",
|
|
|
|
"returns": "uint32_t"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "get height",
|
|
|
|
"returns": "uint32_t"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "get depth or array layers",
|
|
|
|
"returns": "uint32_t"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "get mip level count",
|
|
|
|
"returns": "uint32_t"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "get sample count",
|
|
|
|
"returns": "uint32_t"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "get dimension",
|
|
|
|
"returns": "texture dimension"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "get format",
|
|
|
|
"returns": "texture format"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "get usage",
|
|
|
|
"returns": "texture usage"
|
|
|
|
},
|
2019-03-27 22:04:10 +00:00
|
|
|
{
|
|
|
|
"name": "destroy"
|
2017-05-31 00:03:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-11-28 17:54:13 +00:00
|
|
|
"texture aspect": {
|
2019-07-08 08:55:21 +00:00
|
|
|
"category": "enum",
|
2018-11-28 17:54:13 +00:00
|
|
|
"values": [
|
2019-07-08 08:55:21 +00:00
|
|
|
{"value": 0, "name": "all"},
|
|
|
|
{"value": 1, "name": "stencil only"},
|
2021-02-05 20:11:24 +00:00
|
|
|
{"value": 2, "name": "depth only"},
|
2021-09-17 19:44:43 +00:00
|
|
|
{"value": 3, "name": "plane 0 only", "tags": ["dawn"]},
|
|
|
|
{"value": 4, "name": "plane 1 only", "tags": ["dawn"]}
|
2018-11-28 17:54:13 +00:00
|
|
|
]
|
|
|
|
},
|
2019-08-21 12:16:33 +00:00
|
|
|
"texture component type": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "float"},
|
|
|
|
{"value": 1, "name": "sint"},
|
2020-10-16 14:13:16 +00:00
|
|
|
{"value": 2, "name": "uint"},
|
|
|
|
{"value": 3, "name": "depth comparison"}
|
2019-08-21 12:16:33 +00:00
|
|
|
]
|
|
|
|
},
|
2020-07-07 10:18:51 +00:00
|
|
|
"texture data layout": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2020-07-07 10:18:51 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "offset", "type": "uint64_t", "default": 0},
|
2020-12-16 07:53:30 +00:00
|
|
|
{"name": "bytes per row", "type": "uint32_t", "default": "WGPU_COPY_STRIDE_UNDEFINED"},
|
|
|
|
{"name": "rows per image", "type": "uint32_t", "default": "WGPU_COPY_STRIDE_UNDEFINED"}
|
2020-07-07 10:18:51 +00:00
|
|
|
]
|
|
|
|
},
|
2018-08-27 00:44:48 +00:00
|
|
|
"texture descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2018-08-27 00:44:48 +00:00
|
|
|
"members": [
|
2019-10-03 14:56:49 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2019-08-27 08:21:39 +00:00
|
|
|
{"name": "usage", "type": "texture usage"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "dimension", "type": "texture dimension", "default": "2D"},
|
2018-09-18 12:49:22 +00:00
|
|
|
{"name": "size", "type": "extent 3D"},
|
2018-08-27 00:44:48 +00:00
|
|
|
{"name": "format", "type": "texture format"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "mip level count", "type": "uint32_t", "default": 1},
|
2022-03-16 18:44:16 +00:00
|
|
|
{"name": "sample count", "type": "uint32_t", "default": 1},
|
2022-03-31 03:53:04 +00:00
|
|
|
{"name": "view format count", "type": "uint32_t", "default": 0},
|
|
|
|
{"name": "view formats", "type": "texture format", "annotation": "const*", "length": "view format count"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"texture dimension": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2019-07-15 20:47:56 +00:00
|
|
|
{"value": 0, "name": "1D"},
|
|
|
|
{"value": 1, "name": "2D"},
|
|
|
|
{"value": 2, "name": "3D"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2018-09-11 18:16:54 +00:00
|
|
|
"texture format": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2020-01-28 23:54:38 +00:00
|
|
|
{"value": 0, "name": "undefined", "valid": false, "jsrepr": "undefined"},
|
2021-09-17 19:44:43 +00:00
|
|
|
|
2019-09-05 09:12:32 +00:00
|
|
|
{"value": 1, "name": "R8 unorm"},
|
|
|
|
{"value": 2, "name": "R8 snorm"},
|
|
|
|
{"value": 3, "name": "R8 uint"},
|
|
|
|
{"value": 4, "name": "R8 sint"},
|
2019-07-01 09:58:07 +00:00
|
|
|
|
2019-09-05 09:12:32 +00:00
|
|
|
{"value": 5, "name": "R16 uint"},
|
|
|
|
{"value": 6, "name": "R16 sint"},
|
|
|
|
{"value": 7, "name": "R16 float"},
|
|
|
|
{"value": 8, "name": "RG8 unorm"},
|
|
|
|
{"value": 9, "name": "RG8 snorm"},
|
|
|
|
{"value": 10, "name": "RG8 uint"},
|
|
|
|
{"value": 11, "name": "RG8 sint"},
|
2019-07-01 09:58:07 +00:00
|
|
|
|
2019-09-05 09:12:32 +00:00
|
|
|
{"value": 12, "name": "R32 float"},
|
|
|
|
{"value": 13, "name": "R32 uint"},
|
|
|
|
{"value": 14, "name": "R32 sint"},
|
|
|
|
{"value": 15, "name": "RG16 uint"},
|
|
|
|
{"value": 16, "name": "RG16 sint"},
|
|
|
|
{"value": 17, "name": "RG16 float"},
|
|
|
|
{"value": 18, "name": "RGBA8 unorm"},
|
|
|
|
{"value": 19, "name": "RGBA8 unorm srgb"},
|
|
|
|
{"value": 20, "name": "RGBA8 snorm"},
|
|
|
|
{"value": 21, "name": "RGBA8 uint"},
|
|
|
|
{"value": 22, "name": "RGBA8 sint"},
|
|
|
|
{"value": 23, "name": "BGRA8 unorm"},
|
|
|
|
{"value": 24, "name": "BGRA8 unorm srgb"},
|
|
|
|
{"value": 25, "name": "RGB10 A2 unorm"},
|
2020-08-19 21:51:20 +00:00
|
|
|
{"value": 26, "name": "RG11 B10 ufloat"},
|
|
|
|
{"value": 27, "name": "RGB9 E5 ufloat"},
|
2019-07-01 09:58:07 +00:00
|
|
|
|
2020-08-19 21:51:20 +00:00
|
|
|
{"value": 28, "name": "RG32 float"},
|
|
|
|
{"value": 29, "name": "RG32 uint"},
|
|
|
|
{"value": 30, "name": "RG32 sint"},
|
|
|
|
{"value": 31, "name": "RGBA16 uint"},
|
|
|
|
{"value": 32, "name": "RGBA16 sint"},
|
|
|
|
{"value": 33, "name": "RGBA16 float"},
|
2019-07-01 09:58:07 +00:00
|
|
|
|
2020-08-19 21:51:20 +00:00
|
|
|
{"value": 34, "name": "RGBA32 float"},
|
|
|
|
{"value": 35, "name": "RGBA32 uint"},
|
|
|
|
{"value": 36, "name": "RGBA32 sint"},
|
2019-07-01 09:58:07 +00:00
|
|
|
|
2021-09-17 18:25:53 +00:00
|
|
|
{"value": 37, "name": "stencil8"},
|
|
|
|
{"value": 38, "name": "depth16 unorm"},
|
|
|
|
{"value": 39, "name": "depth24 plus"},
|
2021-02-16 19:55:09 +00:00
|
|
|
{"value": 40, "name": "depth24 plus stencil8"},
|
2022-06-14 22:48:31 +00:00
|
|
|
{"value": 41, "name": "depth32 float"},
|
|
|
|
{"value": 42, "name": "depth32 float stencil8"},
|
2019-07-01 09:58:07 +00:00
|
|
|
|
2022-06-14 22:48:31 +00:00
|
|
|
{"value": 43, "name": "BC1 RGBA unorm", "jsrepr": "'bc1-rgba-unorm'"},
|
|
|
|
{"value": 44, "name": "BC1 RGBA unorm srgb", "jsrepr": "'bc1-rgba-unorm-srgb'"},
|
|
|
|
{"value": 45, "name": "BC2 RGBA unorm", "jsrepr": "'bc2-rgba-unorm'"},
|
|
|
|
{"value": 46, "name": "BC2 RGBA unorm srgb", "jsrepr": "'bc2-rgba-unorm-srgb'"},
|
|
|
|
{"value": 47, "name": "BC3 RGBA unorm", "jsrepr": "'bc3-rgba-unorm'"},
|
|
|
|
{"value": 48, "name": "BC3 RGBA unorm srgb", "jsrepr": "'bc3-rgba-unorm-srgb'"},
|
|
|
|
{"value": 49, "name": "BC4 R unorm", "jsrepr": "'bc4-r-unorm'"},
|
|
|
|
{"value": 50, "name": "BC4 R snorm", "jsrepr": "'bc4-r-snorm'"},
|
|
|
|
{"value": 51, "name": "BC5 RG unorm", "jsrepr": "'bc5-rg-unorm'"},
|
|
|
|
{"value": 52, "name": "BC5 RG snorm", "jsrepr": "'bc5-rg-snorm'"},
|
|
|
|
{"value": 53, "name": "BC6H RGB ufloat", "jsrepr": "'bc6h-rgb-ufloat'"},
|
|
|
|
{"value": 54, "name": "BC6H RGB float", "jsrepr": "'bc6h-rgb-float'"},
|
|
|
|
{"value": 55, "name": "BC7 RGBA unorm", "jsrepr": "'bc7-rgba-unorm'"},
|
|
|
|
{"value": 56, "name": "BC7 RGBA unorm srgb", "jsrepr": "'bc7-rgba-unorm-srgb'"},
|
2021-08-31 00:15:45 +00:00
|
|
|
|
2022-06-14 22:48:31 +00:00
|
|
|
{"value": 57, "name": "ETC2 RGB8 unorm", "jsrepr": "'etc2-rgb8unorm'"},
|
|
|
|
{"value": 58, "name": "ETC2 RGB8 unorm srgb", "jsrepr": "'etc2-rgb8unorm-srgb'"},
|
|
|
|
{"value": 59, "name": "ETC2 RGB8A1 unorm", "jsrepr": "'etc2-rgb8a1unorm'"},
|
|
|
|
{"value": 60, "name": "ETC2 RGB8A1 unorm srgb", "jsrepr": "'etc2-rgb8a1unorm-srgb'"},
|
|
|
|
{"value": 61, "name": "ETC2 RGBA8 unorm", "jsrepr": "'etc2-rgba8unorm'"},
|
|
|
|
{"value": 62, "name": "ETC2 RGBA8 unorm srgb", "jsrepr": "'etc2-rgba8unorm-srgb'"},
|
|
|
|
{"value": 63, "name": "EAC R11 unorm", "jsrepr": "'eac-r11unorm'"},
|
|
|
|
{"value": 64, "name": "EAC R11 snorm", "jsrepr": "'eac-r11snorm'"},
|
|
|
|
{"value": 65, "name": "EAC RG11 unorm", "jsrepr": "'eac-rg11unorm'"},
|
|
|
|
{"value": 66, "name": "EAC RG11 snorm", "jsrepr": "'eac-rg11snorm'"},
|
2021-09-07 18:39:04 +00:00
|
|
|
|
2022-06-14 22:48:31 +00:00
|
|
|
{"value": 67, "name": "ASTC 4x4 unorm", "jsrepr": "'astc-4x4-unorm'"},
|
|
|
|
{"value": 68, "name": "ASTC 4x4 unorm srgb", "jsrepr": "'astc-4x4-unorm-srgb'"},
|
|
|
|
{"value": 69, "name": "ASTC 5x4 unorm", "jsrepr": "'astc-5x4-unorm'"},
|
|
|
|
{"value": 70, "name": "ASTC 5x4 unorm srgb", "jsrepr": "'astc-5x4-unorm-srgb'"},
|
|
|
|
{"value": 71, "name": "ASTC 5x5 unorm", "jsrepr": "'astc-5x5-unorm'"},
|
|
|
|
{"value": 72, "name": "ASTC 5x5 unorm srgb", "jsrepr": "'astc-5x5-unorm-srgb'"},
|
|
|
|
{"value": 73, "name": "ASTC 6x5 unorm", "jsrepr": "'astc-6x5-unorm'"},
|
|
|
|
{"value": 74, "name": "ASTC 6x5 unorm srgb", "jsrepr": "'astc-6x5-unorm-srgb'"},
|
|
|
|
{"value": 75, "name": "ASTC 6x6 unorm", "jsrepr": "'astc-6x6-unorm'"},
|
|
|
|
{"value": 76, "name": "ASTC 6x6 unorm srgb", "jsrepr": "'astc-6x6-unorm-srgb'"},
|
|
|
|
{"value": 77, "name": "ASTC 8x5 unorm", "jsrepr": "'astc-8x5-unorm'"},
|
|
|
|
{"value": 78, "name": "ASTC 8x5 unorm srgb", "jsrepr": "'astc-8x5-unorm-srgb'"},
|
|
|
|
{"value": 79, "name": "ASTC 8x6 unorm", "jsrepr": "'astc-8x6-unorm'"},
|
|
|
|
{"value": 80, "name": "ASTC 8x6 unorm srgb", "jsrepr": "'astc-8x6-unorm-srgb'"},
|
|
|
|
{"value": 81, "name": "ASTC 8x8 unorm", "jsrepr": "'astc-8x8-unorm'"},
|
|
|
|
{"value": 82, "name": "ASTC 8x8 unorm srgb", "jsrepr": "'astc-8x8-unorm-srgb'"},
|
|
|
|
{"value": 83, "name": "ASTC 10x5 unorm", "jsrepr": "'astc-10x5-unorm'"},
|
|
|
|
{"value": 84, "name": "ASTC 10x5 unorm srgb", "jsrepr": "'astc-10x5-unorm-srgb'"},
|
|
|
|
{"value": 85, "name": "ASTC 10x6 unorm", "jsrepr": "'astc-10x6-unorm'"},
|
|
|
|
{"value": 86, "name": "ASTC 10x6 unorm srgb", "jsrepr": "'astc-10x6-unorm-srgb'"},
|
|
|
|
{"value": 87, "name": "ASTC 10x8 unorm", "jsrepr": "'astc-10x8-unorm'"},
|
|
|
|
{"value": 88, "name": "ASTC 10x8 unorm srgb", "jsrepr": "'astc-10x8-unorm-srgb'"},
|
|
|
|
{"value": 89, "name": "ASTC 10x10 unorm", "jsrepr": "'astc-10x10-unorm'"},
|
|
|
|
{"value": 90, "name": "ASTC 10x10 unorm srgb", "jsrepr": "'astc-10x10-unorm-srgb'"},
|
|
|
|
{"value": 91, "name": "ASTC 12x10 unorm", "jsrepr": "'astc-12x10-unorm'"},
|
|
|
|
{"value": 92, "name": "ASTC 12x10 unorm srgb", "jsrepr": "'astc-12x10-unorm-srgb'"},
|
|
|
|
{"value": 93, "name": "ASTC 12x12 unorm", "jsrepr": "'astc-12x12-unorm'"},
|
|
|
|
{"value": 94, "name": "ASTC 12x12 unorm srgb", "jsrepr": "'astc-12x12-unorm-srgb'"},
|
2021-09-17 18:25:53 +00:00
|
|
|
|
2022-06-14 22:48:31 +00:00
|
|
|
{"value": 95, "name": "R8 BG8 Biplanar 420 unorm", "tags": ["dawn"]}
|
2018-09-11 18:16:54 +00:00
|
|
|
]
|
|
|
|
},
|
2019-08-27 08:21:39 +00:00
|
|
|
"texture usage": {
|
2017-05-31 00:03:44 +00:00
|
|
|
"category": "bitmask",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "none"},
|
2019-07-08 10:05:46 +00:00
|
|
|
{"value": 1, "name": "copy src"},
|
|
|
|
{"value": 2, "name": "copy dst"},
|
2021-08-10 04:07:37 +00:00
|
|
|
{"value": 4, "name": "texture binding"},
|
|
|
|
{"value": 8, "name": "storage binding"},
|
2020-10-27 15:35:56 +00:00
|
|
|
{"value": 16, "name": "render attachment"},
|
2021-09-17 19:44:43 +00:00
|
|
|
{"value": 32, "name": "present", "tags": ["dawn"]}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2018-10-12 08:32:58 +00:00
|
|
|
"texture view descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"extensible": "in",
|
2018-10-12 08:32:58 +00:00
|
|
|
"members": [
|
2019-10-03 14:56:49 +00:00
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
2019-09-05 09:12:32 +00:00
|
|
|
{"name": "format", "type": "texture format", "default": "undefined"},
|
|
|
|
{"name": "dimension", "type": "texture view dimension", "default": "undefined"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "base mip level", "type": "uint32_t", "default": "0"},
|
2021-09-15 06:27:25 +00:00
|
|
|
{"name": "mip level count", "type": "uint32_t", "default": "WGPU_MIP_LEVEL_COUNT_UNDEFINED"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "base array layer", "type": "uint32_t", "default": "0"},
|
2021-09-14 02:41:49 +00:00
|
|
|
{"name": "array layer count", "type": "uint32_t", "default": "WGPU_ARRAY_LAYER_COUNT_UNDEFINED"},
|
2019-09-10 08:30:43 +00:00
|
|
|
{"name": "aspect", "type": "texture aspect", "default": "all"}
|
2018-10-12 08:32:58 +00:00
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"texture view": {
|
2021-11-19 18:26:08 +00:00
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "set label",
|
|
|
|
"returns": "void",
|
|
|
|
"args": [
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
2018-10-12 08:32:58 +00:00
|
|
|
"texture view dimension": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2020-01-28 23:54:38 +00:00
|
|
|
{"value": 0, "name": "undefined", "valid": false, "jsrepr": "undefined"},
|
2019-09-05 09:12:32 +00:00
|
|
|
{"value": 1, "name": "1D"},
|
|
|
|
{"value": 2, "name": "2D"},
|
|
|
|
{"value": 3, "name": "2D array"},
|
|
|
|
{"value": 4, "name": "cube"},
|
|
|
|
{"value": 5, "name": "cube array"},
|
|
|
|
{"value": 6, "name": "3D"}
|
2018-10-12 08:32:58 +00:00
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"vertex format": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2021-02-26 02:20:25 +00:00
|
|
|
{"value": 0, "name": "undefined", "valid": false, "jsrepr": "undefined"},
|
|
|
|
{"value": 1, "name": "uint8x2"},
|
|
|
|
{"value": 2, "name": "uint8x4"},
|
|
|
|
{"value": 3, "name": "sint8x2"},
|
|
|
|
{"value": 4, "name": "sint8x4"},
|
|
|
|
{"value": 5, "name": "unorm8x2"},
|
|
|
|
{"value": 6, "name": "unorm8x4"},
|
|
|
|
{"value": 7, "name": "snorm8x2"},
|
|
|
|
{"value": 8, "name": "snorm8x4"},
|
|
|
|
{"value": 9, "name": "uint16x2"},
|
|
|
|
{"value": 10, "name": "uint16x4"},
|
|
|
|
{"value": 11, "name": "sint16x2"},
|
|
|
|
{"value": 12, "name": "sint16x4"},
|
|
|
|
{"value": 13, "name": "unorm16x2"},
|
|
|
|
{"value": 14, "name": "unorm16x4"},
|
|
|
|
{"value": 15, "name": "snorm16x2"},
|
|
|
|
{"value": 16, "name": "snorm16x4"},
|
|
|
|
{"value": 17, "name": "float16x2"},
|
|
|
|
{"value": 18, "name": "float16x4"},
|
|
|
|
{"value": 19, "name": "float32"},
|
|
|
|
{"value": 20, "name": "float32x2"},
|
|
|
|
{"value": 21, "name": "float32x3"},
|
|
|
|
{"value": 22, "name": "float32x4"},
|
|
|
|
{"value": 23, "name": "uint32"},
|
|
|
|
{"value": 24, "name": "uint32x2"},
|
|
|
|
{"value": 25, "name": "uint32x3"},
|
|
|
|
{"value": 26, "name": "uint32x4"},
|
|
|
|
{"value": 27, "name": "sint32"},
|
|
|
|
{"value": 28, "name": "sint32x2"},
|
|
|
|
{"value": 29, "name": "sint32x3"},
|
2021-05-21 01:29:17 +00:00
|
|
|
{"value": 30, "name": "sint32x4"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2021-11-25 08:44:01 +00:00
|
|
|
"whole size" : {
|
|
|
|
"category": "constant",
|
|
|
|
"type": "uint64_t",
|
|
|
|
"value": "(0xffffffffffffffffULL)"
|
|
|
|
},
|
|
|
|
"whole map size" : {
|
|
|
|
"category": "constant",
|
|
|
|
"type": "size_t",
|
|
|
|
"value": "SIZE_MAX"
|
|
|
|
},
|
|
|
|
"stride undefined" : {
|
|
|
|
"category": "constant",
|
|
|
|
"tags": ["deprecated"],
|
|
|
|
"_TODO": "crbug.com/dawn/520: Remove WGPU_STRIDE_UNDEFINED in favor of WGPU_COPY_STRIDE_UNDEFINED.",
|
|
|
|
"type": "uint32_t",
|
|
|
|
"value": "(0xffffffffUL)"
|
|
|
|
},
|
|
|
|
"copy stride undefined" : {
|
|
|
|
"category": "constant",
|
|
|
|
"type": "uint32_t",
|
|
|
|
"value": "(0xffffffffUL)"
|
|
|
|
},
|
|
|
|
"limit u32 undefined" : {
|
|
|
|
"category": "constant",
|
|
|
|
"type": "uint32_t",
|
|
|
|
"value": "(0xffffffffUL)"
|
|
|
|
},
|
|
|
|
"limit u64 undefined" : {
|
|
|
|
"category": "constant",
|
|
|
|
"type": "uint64_t",
|
|
|
|
"value": "(0xffffffffffffffffULL)"
|
|
|
|
},
|
|
|
|
"array layer count undefined" : {
|
|
|
|
"category": "constant",
|
|
|
|
"type": "uint32_t",
|
|
|
|
"value": "(0xffffffffUL)"
|
|
|
|
},
|
|
|
|
"mip level count undefined" : {
|
|
|
|
"category": "constant",
|
|
|
|
"type": "uint32_t",
|
|
|
|
"value": "(0xffffffffUL)"
|
|
|
|
},
|
2019-01-15 20:49:53 +00:00
|
|
|
"ObjectType": {
|
|
|
|
"_comment": "Only used for the wire",
|
|
|
|
"category": "native"
|
|
|
|
},
|
|
|
|
"ObjectId": {
|
|
|
|
"_comment": "Only used for the wire",
|
|
|
|
"category": "native"
|
|
|
|
},
|
|
|
|
"ObjectHandle": {
|
|
|
|
"_comment": "Only used for the wire",
|
|
|
|
"category": "native"
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"void": {
|
|
|
|
"category": "native"
|
|
|
|
},
|
2020-06-30 11:51:14 +00:00
|
|
|
"void *": {
|
|
|
|
"category": "native"
|
|
|
|
},
|
|
|
|
"void const *": {
|
|
|
|
"category": "native"
|
|
|
|
},
|
2019-04-11 18:46:54 +00:00
|
|
|
"int32_t": {
|
|
|
|
"category": "native"
|
|
|
|
},
|
2020-06-02 09:24:39 +00:00
|
|
|
"size_t": {
|
|
|
|
"category": "native"
|
|
|
|
},
|
2020-12-24 03:11:17 +00:00
|
|
|
"uint16_t": {
|
|
|
|
"category": "native"
|
|
|
|
},
|
|
|
|
"uint32_t": {
|
|
|
|
"category": "native"
|
|
|
|
},
|
2017-07-19 22:41:17 +00:00
|
|
|
"uint64_t": {
|
|
|
|
"category": "native"
|
2018-09-11 18:16:54 +00:00
|
|
|
},
|
|
|
|
"uint8_t": {
|
|
|
|
"category": "native"
|
2021-07-27 19:59:58 +00:00
|
|
|
},
|
|
|
|
"dawn texture internal usage descriptor": {
|
|
|
|
"category": "structure",
|
2021-09-20 16:07:25 +00:00
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["texture descriptor"],
|
2021-09-17 19:44:43 +00:00
|
|
|
"tags": ["dawn"],
|
2021-07-27 19:59:58 +00:00
|
|
|
"members": [
|
|
|
|
{"name": "internal usage", "type": "texture usage", "default": "none"}
|
|
|
|
]
|
2022-01-18 21:54:25 +00:00
|
|
|
},
|
|
|
|
"dawn encoder internal usage descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"chained": "in",
|
2022-07-14 12:58:25 +00:00
|
|
|
"chain roots": ["command encoder descriptor"],
|
2022-01-18 21:54:25 +00:00
|
|
|
"tags": ["dawn"],
|
|
|
|
"members": [
|
|
|
|
{"name": "use internal usages", "type": "bool", "default": "false"}
|
|
|
|
]
|
2022-09-23 00:29:46 +00:00
|
|
|
},
|
|
|
|
"dawn adapter properties power preference": {
|
|
|
|
"category": "structure",
|
|
|
|
"chained": "out",
|
|
|
|
"chain roots": ["adapter properties"],
|
|
|
|
"tags": ["dawn"],
|
|
|
|
"members": [
|
|
|
|
{"name": "power preference", "type": "power preference", "default": "undefined"}
|
|
|
|
]
|
2022-11-23 02:06:11 +00:00
|
|
|
},
|
|
|
|
"dawn buffer descriptor error info from wire client": {
|
|
|
|
"category": "structure",
|
|
|
|
"chained": "in",
|
|
|
|
"chain roots": ["buffer descriptor"],
|
|
|
|
"tags": ["dawn"],
|
|
|
|
"members": [
|
|
|
|
{"name": "out of memory", "type": "bool", "default": "false"}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
}
|
|
|
|
}
|