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."
|
|
|
|
],
|
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
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"bind group": {
|
|
|
|
"category": "object"
|
|
|
|
},
|
2018-12-05 07:18:30 +00:00
|
|
|
"bind group binding": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": false,
|
|
|
|
"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"},
|
2019-04-05 20:51:29 +00:00
|
|
|
{"name": "size", "type": "uint64_t"},
|
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",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
|
|
|
{"name": "layout", "type": "bind group layout"},
|
2019-02-21 00:45:19 +00:00
|
|
|
{"name": "binding count", "type": "uint32_t"},
|
|
|
|
{"name": "bindings", "type": "bind group binding", "annotation": "const*", "length": "binding count"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"bind group layout": {
|
|
|
|
"category": "object"
|
|
|
|
},
|
2018-12-03 09:58:09 +00:00
|
|
|
"bind group layout binding": {
|
2018-07-10 19:23:50 +00:00
|
|
|
"category": "structure",
|
|
|
|
"extensible": false,
|
|
|
|
"members": [
|
|
|
|
{"name": "binding", "type": "uint32_t"},
|
|
|
|
{"name": "visibility", "type": "shader stage bit"},
|
2019-07-09 07:58:57 +00:00
|
|
|
{"name": "type", "type": "binding type"},
|
2019-07-15 20:47:56 +00:00
|
|
|
{"name": "dynamic", "type": "bool", "default": "false" },
|
|
|
|
{"name": "multisampled", "type": "bool", "default": "false" }
|
2018-07-10 19:23:50 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"bind group layout descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
2019-02-21 00:45:19 +00:00
|
|
|
{"name": "binding count", "type": "uint32_t"},
|
|
|
|
{"name": "bindings", "type": "bind group layout binding", "annotation": "const*", "length": "binding count"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"binding type": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "uniform buffer"},
|
2019-07-09 07:58:57 +00:00
|
|
|
{"value": 1, "name": "storage buffer"},
|
2019-07-15 20:47:56 +00:00
|
|
|
{"value": 2, "name": "readonly storage buffer"},
|
|
|
|
{"value": 3, "name": "sampler"},
|
|
|
|
{"value": 4, "name": "sampled texture"},
|
|
|
|
{"value": 5, "name": "storage texture"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2018-10-29 09:06:55 +00:00
|
|
|
"blend descriptor": {
|
|
|
|
"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"},
|
|
|
|
{"value": 2, "name": "src color"},
|
|
|
|
{"value": 3, "name": "one minus src color"},
|
|
|
|
{"value": 4, "name": "src alpha"},
|
|
|
|
{"value": 5, "name": "one minus src alpha"},
|
|
|
|
{"value": 6, "name": "dst color"},
|
|
|
|
{"value": 7, "name": "one minus dst color"},
|
|
|
|
{"value": 8, "name": "dst alpha"},
|
|
|
|
{"value": 9, "name": "one minus dst alpha"},
|
|
|
|
{"value": 10, "name": "src alpha saturated"},
|
|
|
|
{"value": 11, "name": "blend color"},
|
2017-08-03 20:24:49 +00:00
|
|
|
{"value": 12, "name": "one minus blend color"}
|
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"}
|
|
|
|
]
|
|
|
|
},
|
2019-02-15 02:20:57 +00:00
|
|
|
"color state descriptor": {
|
2018-12-27 06:32:31 +00:00
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
2019-02-15 02:20:57 +00:00
|
|
|
{"name": "format", "type": "texture format"},
|
2018-12-27 06:32:31 +00:00
|
|
|
{"name": "alpha blend", "type": "blend descriptor"},
|
|
|
|
{"name": "color blend", "type": "blend descriptor"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "write mask", "type": "color write mask", "default": "all"}
|
2017-07-26 20:59:53 +00:00
|
|
|
]
|
|
|
|
},
|
2018-09-11 18:16:54 +00:00
|
|
|
"bool": {
|
|
|
|
"category": "native"
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"buffer": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "set sub data",
|
|
|
|
"args": [
|
2019-04-05 20:51:29 +00:00
|
|
|
{"name": "start", "type": "uint64_t"},
|
|
|
|
{"name": "count", "type": "uint64_t"},
|
2019-06-06 16:19:15 +00:00
|
|
|
{"name": "data", "type": "void", "annotation": "const*", "length": "count"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2017-06-09 14:51:29 +00:00
|
|
|
{
|
|
|
|
"name": "map read async",
|
|
|
|
"args": [
|
|
|
|
{"name": "callback", "type": "buffer map read callback"},
|
2019-05-29 13:03:50 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
2017-06-09 14:51:29 +00:00
|
|
|
]
|
|
|
|
},
|
2018-03-21 00:56:39 +00:00
|
|
|
{
|
|
|
|
"name": "map write async",
|
|
|
|
"args": [
|
|
|
|
{"name": "callback", "type": "buffer map write callback"},
|
2019-05-29 13:03:50 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
2018-03-21 00:56:39 +00:00
|
|
|
]
|
|
|
|
},
|
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
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-06-14 17:35:56 +00:00
|
|
|
"buffer create mapped callback": {
|
|
|
|
"category": "natively defined"
|
|
|
|
},
|
2018-11-28 17:54:13 +00:00
|
|
|
"buffer copy view": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
|
|
|
{"name": "buffer", "type": "buffer"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "offset", "type": "uint64_t", "default": 0},
|
2018-11-28 17:54:13 +00:00
|
|
|
{"name": "row pitch", "type": "uint32_t"},
|
|
|
|
{"name": "image height", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
2018-08-22 13:37:29 +00:00
|
|
|
"buffer descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
|
|
|
{"name": "usage", "type": "buffer usage bit"},
|
2019-04-05 20:51:29 +00:00
|
|
|
{"name": "size", "type": "uint64_t"}
|
2018-08-22 13:37:29 +00:00
|
|
|
]
|
|
|
|
},
|
2017-06-09 14:51:29 +00:00
|
|
|
"buffer map read callback": {
|
|
|
|
"category": "natively defined"
|
|
|
|
},
|
2018-03-21 00:56:39 +00:00
|
|
|
"buffer map write callback": {
|
|
|
|
"category": "natively defined"
|
|
|
|
},
|
2018-03-20 23:48:54 +00:00
|
|
|
"buffer map async status": {
|
2017-06-09 14:51:29 +00:00
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "success"},
|
|
|
|
{"value": 1, "name": "error"},
|
|
|
|
{"value": 2, "name": "unknown"},
|
|
|
|
{"value": 3, "name": "context lost"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"buffer usage bit": {
|
|
|
|
"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"},
|
|
|
|
{"value": 256, "name": "indirect"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"char": {
|
|
|
|
"category": "native"
|
|
|
|
},
|
2019-05-15 18:55:22 +00:00
|
|
|
"create buffer mapped result": {
|
|
|
|
"category": "structure",
|
|
|
|
"members": [
|
|
|
|
{"name": "buffer", "type": "buffer"},
|
|
|
|
{"name": "data length", "type": "uint64_t"},
|
2019-06-06 16:19:15 +00:00
|
|
|
{"name": "data", "type": "void", "annotation": "*", "length": "data length"}
|
2019-05-15 18:55:22 +00:00
|
|
|
]
|
|
|
|
},
|
2018-12-19 08:21:13 +00:00
|
|
|
"color": {
|
|
|
|
"category": "structure",
|
|
|
|
"members": [
|
|
|
|
{"name": "r", "type": "float"},
|
|
|
|
{"name": "g", "type": "float"},
|
|
|
|
{"name": "b", "type": "float"},
|
|
|
|
{"name": "a", "type": "float"}
|
|
|
|
]
|
|
|
|
},
|
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"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"command buffer": {
|
|
|
|
"category": "object"
|
|
|
|
},
|
2019-07-10 20:43:13 +00:00
|
|
|
"command buffer descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": []
|
|
|
|
},
|
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
|
|
|
],
|
|
|
|
"TODO": [
|
|
|
|
"Restrictions on the alignment of the copy? Cf Metal on OSX"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "copy buffer to texture",
|
|
|
|
"args": [
|
|
|
|
{"name": "source", "type": "buffer copy view", "annotation": "const*"},
|
|
|
|
{"name": "destination", "type": "texture copy view", "annotation": "const*"},
|
|
|
|
{"name": "copy size", "type": "extent 3D", "annotation": "const*"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "copy texture to buffer",
|
|
|
|
"args": [
|
|
|
|
{"name": "source", "type": "texture copy view", "annotation": "const*"},
|
|
|
|
{"name": "destination", "type": "buffer copy view", "annotation": "const*"},
|
|
|
|
{"name": "copy size", "type": "extent 3D", "annotation": "const*"}
|
|
|
|
]
|
2019-03-26 11:06:23 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "copy texture to texture",
|
|
|
|
"args": [
|
|
|
|
{"name": "source", "type": "texture copy view", "annotation": "const*"},
|
|
|
|
{"name": "destination", "type": "texture copy view", "annotation": "const*"},
|
|
|
|
{"name": "copy size", "type": "extent 3D", "annotation": "const*"}
|
|
|
|
]
|
2019-02-15 12:54:08 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-07-10 20:43:13 +00:00
|
|
|
"command encoder descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": []
|
|
|
|
},
|
2018-09-21 00:24:37 +00:00
|
|
|
"compare function": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "never"},
|
|
|
|
{"value": 1, "name": "less"},
|
|
|
|
{"value": 2, "name": "less equal"},
|
|
|
|
{"value": 3, "name": "greater"},
|
|
|
|
{"value": 4, "name": "greater equal"},
|
|
|
|
{"value": 5, "name": "equal"},
|
|
|
|
{"value": 6, "name": "not equal"},
|
|
|
|
{"value": 7, "name": "always"}
|
|
|
|
]
|
|
|
|
},
|
2019-07-10 20:43:13 +00:00
|
|
|
"compute pass descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": []
|
|
|
|
},
|
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": [
|
|
|
|
{"name": "group label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"},
|
|
|
|
{"name": "dynamic offset count", "type": "uint32_t"},
|
2019-04-05 20:51:29 +00:00
|
|
|
{"name": "dynamic offsets", "type": "uint64_t", "annotation": "const*", "length": "dynamic offset count"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2018-02-13 19:57:13 +00:00
|
|
|
{
|
2018-09-21 00:24:37 +00:00
|
|
|
"name": "dispatch",
|
2018-02-13 19:57:13 +00:00
|
|
|
"args": [
|
|
|
|
{"name": "x", "type": "uint32_t"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "y", "type": "uint32_t", "default": "1"},
|
|
|
|
{"name": "z", "type": "uint32_t", "default": "1"}
|
2018-02-13 19:57:13 +00:00
|
|
|
]
|
|
|
|
},
|
2019-06-10 20:56:27 +00:00
|
|
|
{
|
|
|
|
"name": "dispatch indirect",
|
|
|
|
"args": [
|
|
|
|
{"name": "indirect buffer", "type": "buffer"},
|
|
|
|
{"name": "indirect offset", "type": "uint64_t"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
{
|
2018-09-21 00:24:37 +00:00
|
|
|
"name": "end pass",
|
|
|
|
"TODO": "This returns the top-level encoder in the WebGPU IDL"
|
2017-05-31 00:03:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-07-14 14:58:07 +00:00
|
|
|
"compute pipeline": {
|
|
|
|
"category": "object"
|
|
|
|
},
|
2018-08-27 21:12:56 +00:00
|
|
|
"compute pipeline descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
|
|
|
{"name": "layout", "type": "pipeline layout"},
|
2019-04-09 15:17:30 +00:00
|
|
|
{"name": "compute stage", "type": "pipeline stage descriptor", "annotation": "const*"}
|
2017-07-14 14:58:07 +00:00
|
|
|
]
|
|
|
|
},
|
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*"}
|
|
|
|
]
|
|
|
|
},
|
2019-05-15 18:55:22 +00:00
|
|
|
{
|
|
|
|
"name": "create buffer mapped",
|
|
|
|
"returns": "create buffer mapped result",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "buffer descriptor", "annotation": "const*"}
|
|
|
|
]
|
|
|
|
},
|
2019-06-14 17:35:56 +00:00
|
|
|
{
|
|
|
|
"name": "create buffer mapped async",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "buffer descriptor", "annotation": "const*"},
|
|
|
|
{"name": "callback", "type": "buffer create mapped callback"},
|
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
|
|
|
]
|
|
|
|
},
|
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
|
|
|
},
|
|
|
|
{
|
2018-12-10 19:47:22 +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-06-27 23:21:39 +00:00
|
|
|
"name": "create pipeline layout",
|
|
|
|
"returns": "pipeline layout",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "pipeline layout descriptor", "annotation": "const*"}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
|
|
|
{
|
2018-06-15 00:26:27 +00:00
|
|
|
"name": "create queue",
|
|
|
|
"returns": "queue"
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
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*"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
{
|
2018-05-17 21:09:07 +00:00
|
|
|
"name": "create sampler",
|
|
|
|
"returns": "sampler",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "sampler descriptor", "annotation": "const*"}
|
|
|
|
]
|
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",
|
|
|
|
"returns": "swap chain",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "swap chain descriptor", "annotation": "const*"}
|
|
|
|
]
|
2017-07-28 01:30:57 +00:00
|
|
|
},
|
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
|
|
|
},
|
2017-06-14 17:33:45 +00:00
|
|
|
{
|
|
|
|
"name": "tick"
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
{
|
|
|
|
"name": "set error callback",
|
|
|
|
"args": [
|
|
|
|
{"name": "callback", "type": "device error callback"},
|
2019-05-29 13:03:50 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-01-04 04:28:37 +00:00
|
|
|
"depth stencil state descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
2019-02-15 02:20:57 +00:00
|
|
|
{"name": "format", "type": "texture format"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "depth write enabled", "type": "bool", "default": "false"},
|
|
|
|
{"name": "depth compare", "type": "compare function", "default": "always"},
|
2019-01-30 21:11:43 +00:00
|
|
|
{"name": "stencil front", "type": "stencil state face descriptor"},
|
|
|
|
{"name": "stencil back", "type": "stencil state face descriptor"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "stencil read mask", "type": "uint32_t", "default": "0xFFFFFFFF"},
|
|
|
|
{"name": "stencil write mask", "type": "uint32_t", "default": "0xFFFFFFFF"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"device error callback": {
|
|
|
|
"category": "natively defined"
|
|
|
|
},
|
2018-09-18 12:49:22 +00:00
|
|
|
"extent 3D": {
|
|
|
|
"category": "structure",
|
|
|
|
"members": [
|
|
|
|
{"name": "width", "type": "uint32_t"},
|
|
|
|
{"name": "height", "type": "uint32_t"},
|
|
|
|
{"name": "depth", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
2018-12-03 16:57:34 +00:00
|
|
|
"fence": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "get completed value",
|
|
|
|
"returns": "uint64_t"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "on completion",
|
|
|
|
"args": [
|
|
|
|
{"name": "value", "type": "uint64_t"},
|
|
|
|
{"name": "callback", "type": "fence on completion callback"},
|
2019-05-29 13:03:50 +00:00
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"}
|
2018-12-03 16:57:34 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"fence on completion callback": {
|
|
|
|
"category": "natively defined"
|
|
|
|
},
|
|
|
|
"fence completion status": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "success"},
|
|
|
|
{"value": 1, "name": "error"},
|
|
|
|
{"value": 2, "name": "unknown"},
|
|
|
|
{"value": 3, "name": "context lost"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"fence descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "initial value", "type": "uint64_t", "default": "0"}
|
2018-12-03 16:57:34 +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"}
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"index format": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "uint16"},
|
|
|
|
{"value": 1, "name": "uint32"}
|
|
|
|
]
|
|
|
|
},
|
2019-02-14 00:35:39 +00:00
|
|
|
"vertex attribute descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": false,
|
|
|
|
"members": [
|
|
|
|
{"name": "shader location", "type": "uint32_t"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "offset", "type": "uint64_t", "default": "0"},
|
2019-02-14 00:35:39 +00:00
|
|
|
{"name": "format", "type": "vertex format"}
|
|
|
|
]
|
|
|
|
},
|
2019-05-22 22:46:32 +00:00
|
|
|
"vertex buffer descriptor": {
|
2019-02-14 23:56:07 +00:00
|
|
|
"category": "structure",
|
|
|
|
"extensible": false,
|
|
|
|
"members": [
|
2019-04-05 20:51:29 +00:00
|
|
|
{"name": "stride", "type": "uint64_t"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "step mode", "type": "input step mode", "default": "vertex"},
|
2019-06-06 17:54:30 +00:00
|
|
|
{"name": "attribute count", "type": "uint32_t"},
|
|
|
|
{"name": "attributes", "type": "vertex attribute descriptor", "annotation": "const*", "length": "attribute count"}
|
2019-02-14 23:56:07 +00:00
|
|
|
]
|
|
|
|
},
|
2019-05-22 22:46:32 +00:00
|
|
|
"vertex input descriptor": {
|
2019-03-27 18:08:50 +00:00
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "index format", "type": "index format", "default": "uint32"},
|
2019-06-06 17:54:30 +00:00
|
|
|
{"name": "buffer count", "type": "uint32_t"},
|
|
|
|
{"name": "buffers", "type": "vertex buffer descriptor", "annotation": "const*", "length": "buffer count"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"input step mode": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "vertex"},
|
|
|
|
{"value": 1, "name": "instance"}
|
|
|
|
]
|
|
|
|
},
|
2017-08-11 21:36:20 +00:00
|
|
|
"load op": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "clear"},
|
|
|
|
{"value": 1, "name": "load"}
|
|
|
|
]
|
|
|
|
},
|
2018-12-19 08:21:13 +00:00
|
|
|
"store op": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
|
|
|
{"value": 0, "name": "store"}
|
|
|
|
]
|
|
|
|
},
|
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
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"pipeline layout": {
|
|
|
|
"category": "object"
|
|
|
|
},
|
2018-06-27 23:21:39 +00:00
|
|
|
"pipeline layout descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
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
|
|
|
]
|
|
|
|
},
|
2018-12-10 19:47:22 +00:00
|
|
|
"pipeline stage descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
|
|
|
{"name": "module", "type": "shader module"},
|
|
|
|
{"name": "entry point", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
},
|
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"}
|
|
|
|
]
|
|
|
|
},
|
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
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "signal",
|
|
|
|
"args": [
|
|
|
|
{"name": "fence", "type": "fence"},
|
|
|
|
{"name": "signal value", "type": "uint64_t"}
|
|
|
|
]
|
2019-03-06 22:42:22 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "create fence",
|
|
|
|
"returns": "fence",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "fence descriptor", "annotation": "const*"}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-12-19 08:21:13 +00:00
|
|
|
|
2019-04-11 18:46:54 +00:00
|
|
|
"rasterization state descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "front face", "type": "front face", "default": "CCW"},
|
|
|
|
{"name": "cull mode", "type": "cull mode", "default": "none"},
|
|
|
|
{"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"}
|
2019-04-11 18:46:54 +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"},
|
|
|
|
{"name": "dynamic offset count", "type": "uint32_t"},
|
|
|
|
{"name": "dynamic offsets", "type": "uint64_t", "annotation": "const*", "length": "dynamic offset count"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "draw",
|
|
|
|
"args": [
|
|
|
|
{"name": "vertex count", "type": "uint32_t"},
|
|
|
|
{"name": "instance count", "type": "uint32_t"},
|
|
|
|
{"name": "first vertex", "type": "uint32_t"},
|
|
|
|
{"name": "first instance", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "draw indexed",
|
|
|
|
"args": [
|
|
|
|
{"name": "index count", "type": "uint32_t"},
|
|
|
|
{"name": "instance count", "type": "uint32_t"},
|
|
|
|
{"name": "first index", "type": "uint32_t"},
|
|
|
|
{"name": "base vertex", "type": "int32_t"},
|
|
|
|
{"name": "first instance", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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": [
|
|
|
|
{"name": "group label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "pop debug group",
|
|
|
|
"args": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "push debug group",
|
|
|
|
"args": [
|
|
|
|
{"name": "group label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set vertex buffers",
|
|
|
|
"args": [
|
|
|
|
{"name": "start slot", "type": "uint32_t"},
|
|
|
|
{"name": "count", "type": "uint32_t"},
|
|
|
|
{"name": "buffers", "type": "buffer", "annotation": "const*", "length": "count"},
|
|
|
|
{"name": "offsets", "type": "uint64_t", "annotation": "const*", "length": "count"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set index buffer",
|
|
|
|
"args": [
|
|
|
|
{"name": "buffer", "type": "buffer"},
|
|
|
|
{"name": "offset", "type": "uint64_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "finish",
|
|
|
|
"returns": "render bundle",
|
|
|
|
"args": [
|
|
|
|
{"name": "descriptor", "type": "render bundle descriptor", "annotation": "const*", "optional": true}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"render bundle descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": []
|
|
|
|
},
|
|
|
|
|
|
|
|
"render bundle encoder descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
|
|
|
{"name": "color formats count", "type": "uint32_t"},
|
|
|
|
{"name": "color formats", "type": "texture format", "annotation": "const*", "length": "color formats count"},
|
|
|
|
{"name": "depth stencil format", "type": "texture format", "annotation": "const*", "optional": true},
|
|
|
|
{"name": "sample count", "type": "uint32_t", "default": "1"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2018-12-19 08:21:13 +00:00
|
|
|
"render pass color attachment descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"members": [
|
|
|
|
{"name": "attachment", "type": "texture view"},
|
|
|
|
{"name": "resolve target", "type": "texture view", "optional": true},
|
|
|
|
{"name": "load op", "type": "load op"},
|
|
|
|
{"name": "store op", "type": "store op"},
|
|
|
|
{"name": "clear color", "type": "color"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"render pass depth stencil attachment descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"members": [
|
|
|
|
{"name": "attachment", "type": "texture view"},
|
|
|
|
{"name": "depth load op", "type": "load op"},
|
|
|
|
{"name": "depth store op", "type": "store op"},
|
|
|
|
{"name": "clear depth", "type": "float"},
|
|
|
|
{"name": "stencil load op", "type": "load op"},
|
|
|
|
{"name": "stencil store op", "type": "store op"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "clear stencil", "type": "uint32_t", "default": "0"}
|
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",
|
|
|
|
"members": [
|
|
|
|
{"name": "color attachment count", "type": "uint32_t"},
|
|
|
|
{"name": "color attachments", "type": "render pass color attachment descriptor", "annotation": "const*const*", "length": "color attachment count"},
|
|
|
|
{"name": "depth stencil attachment", "type": "render pass depth stencil attachment descriptor", "annotation": "const*", "optional": true}
|
|
|
|
]
|
2017-05-31 00:03:44 +00:00
|
|
|
},
|
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"},
|
|
|
|
{"name": "dynamic offset count", "type": "uint32_t"},
|
2019-04-05 20:51:29 +00:00
|
|
|
{"name": "dynamic offsets", "type": "uint64_t", "annotation": "const*", "length": "dynamic offset count"}
|
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"},
|
|
|
|
{"name": "instance count", "type": "uint32_t"},
|
|
|
|
{"name": "first vertex", "type": "uint32_t"},
|
|
|
|
{"name": "first instance", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
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"},
|
|
|
|
{"name": "instance count", "type": "uint32_t"},
|
|
|
|
{"name": "first index", "type": "uint32_t"},
|
2019-04-12 07:58:44 +00:00
|
|
|
{"name": "base vertex", "type": "int32_t"},
|
2018-09-21 00:24:37 +00:00
|
|
|
{"name": "first instance", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
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": [
|
|
|
|
{"name": "bundles count", "type": "uint32_t"},
|
|
|
|
{"name": "bundles", "type": "render bundle", "annotation": "const*", "length": "bundles count"}
|
|
|
|
]
|
|
|
|
},
|
2019-02-20 20:21:00 +00:00
|
|
|
{
|
|
|
|
"name": "insert debug marker",
|
|
|
|
"args": [
|
|
|
|
{"name": "group label", "type": "char", "annotation": "const*", "length": "strlen"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set blend color",
|
|
|
|
"args": [
|
2019-02-05 12:13:10 +00:00
|
|
|
{"name": "color", "type": "color", "annotation": "const*"}
|
2018-09-21 00:24:37 +00:00
|
|
|
]
|
|
|
|
},
|
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"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set vertex buffers",
|
|
|
|
"args": [
|
|
|
|
{"name": "start slot", "type": "uint32_t"},
|
|
|
|
{"name": "count", "type": "uint32_t"},
|
|
|
|
{"name": "buffers", "type": "buffer", "annotation": "const*", "length": "count"},
|
2019-04-05 20:51:29 +00:00
|
|
|
{"name": "offsets", "type": "uint64_t", "annotation": "const*", "length": "count"}
|
2018-09-21 00:24:37 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "set index buffer",
|
|
|
|
"args": [
|
|
|
|
{"name": "buffer", "type": "buffer"},
|
2019-04-05 20:51:29 +00:00
|
|
|
{"name": "offset", "type": "uint64_t"}
|
2018-09-21 00:24:37 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "end pass",
|
|
|
|
"TODO": "This returns the top-level encoder in the WebGPU IDL"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-07-14 14:58:07 +00:00
|
|
|
"render pipeline": {
|
|
|
|
"category": "object"
|
|
|
|
},
|
2018-12-10 19:47:22 +00:00
|
|
|
"render pipeline descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
|
|
|
{"name": "layout", "type": "pipeline layout"},
|
|
|
|
{"name": "vertex stage", "type": "pipeline stage descriptor", "annotation": "const*"},
|
2019-08-02 07:46:57 +00:00
|
|
|
{"name": "fragment stage", "type": "pipeline stage descriptor", "annotation": "const*", "optional": true},
|
2019-05-22 22:46:32 +00:00
|
|
|
{"name": "vertex input", "type": "vertex input descriptor", "annotation": "const*"},
|
2018-12-10 19:47:22 +00:00
|
|
|
{"name": "primitive topology", "type": "primitive topology"},
|
2019-07-16 17:01:59 +00:00
|
|
|
{"name": "rasterization state", "type": "rasterization state descriptor", "annotation": "const*", "optional": true},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "sample count", "type": "uint32_t", "default": "1"},
|
2019-02-13 10:15:38 +00:00
|
|
|
{"name": "depth stencil state", "type": "depth stencil state descriptor", "annotation": "const*", "optional": true},
|
2019-02-21 00:45:19 +00:00
|
|
|
{"name": "color state count", "type": "uint32_t"},
|
2019-07-15 20:47:56 +00:00
|
|
|
{"name": "color states", "type": "color state descriptor", "annotation": "const*const*", "length": "color state count"},
|
|
|
|
{"name": "sample mask", "type": "uint32_t", "default": "0xFFFFFFFF"},
|
|
|
|
{"name": "alpha to coverage enabled", "type": "bool", "default": "false"}
|
2017-07-14 14:58:07 +00:00
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"sampler": {
|
|
|
|
"category": "object"
|
|
|
|
},
|
2018-05-17 21:09:07 +00:00
|
|
|
"sampler descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
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"},
|
|
|
|
{"name": "mipmap filter", "type": "filter mode", "default": "nearest"},
|
|
|
|
{"name": "lod min clamp", "type": "float", "default": "0.0f"},
|
|
|
|
{"name": "lod max clamp", "type": "float", "default": "1000.0f"},
|
|
|
|
{"name": "compare", "type": "compare function", "default": "never"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"shader module": {
|
|
|
|
"category": "object"
|
|
|
|
},
|
2018-08-20 15:01:20 +00:00
|
|
|
"shader module descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
|
|
|
{"name": "code size", "type": "uint32_t"},
|
|
|
|
{"name": "code", "type": "uint32_t", "annotation": "const*", "length": "code size"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"shader stage bit": {
|
|
|
|
"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
|
|
|
},
|
2018-12-15 02:32:34 +00:00
|
|
|
"stencil state face descriptor": {
|
|
|
|
"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
|
|
|
]
|
|
|
|
},
|
2017-07-19 22:41:17 +00:00
|
|
|
"swap chain": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "configure",
|
|
|
|
"args": [
|
|
|
|
{"name": "format", "type": "texture format"},
|
2018-10-26 06:35:48 +00:00
|
|
|
{"name": "allowed usage", "type": "texture usage bit"},
|
2017-07-19 22:41:17 +00:00
|
|
|
{"name": "width", "type": "uint32_t"},
|
|
|
|
{"name": "height", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "get next texture",
|
|
|
|
"returns": "texture"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "present",
|
|
|
|
"args": [
|
|
|
|
{"name": "texture", "type": "texture"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-02-15 11:15:58 +00:00
|
|
|
"swap chain descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
|
|
|
{"name": "implementation", "type": "uint64_t"}
|
2017-07-19 22:41:17 +00:00
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"texture": {
|
|
|
|
"category": "object",
|
|
|
|
"methods": [
|
|
|
|
{
|
2019-04-09 16:57:00 +00:00
|
|
|
"name": "create default view",
|
2018-09-18 00:31:57 +00:00
|
|
|
"returns": "texture view"
|
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": [
|
|
|
|
{"name": "descriptor", "type": "texture view descriptor", "annotation": "const*"}
|
|
|
|
]
|
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"},
|
|
|
|
{"value": 2, "name": "depth only"}
|
2018-11-28 17:54:13 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"texture copy view": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
|
|
|
{"name": "texture", "type": "texture"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "mip level", "type": "uint32_t", "default": "0"},
|
|
|
|
{"name": "array layer", "type": "uint32_t", "default": "0"},
|
2018-12-12 09:27:46 +00:00
|
|
|
{"name": "origin", "type": "origin 3D"}
|
2018-11-28 17:54:13 +00:00
|
|
|
]
|
|
|
|
},
|
2018-08-27 00:44:48 +00:00
|
|
|
"texture descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
|
|
|
{"name": "usage", "type": "texture usage bit"},
|
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"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "array layer count", "type": "uint32_t", "default": "1"},
|
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},
|
|
|
|
{"name": "sample count", "type": "uint32_t", "default": 1}
|
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": [
|
2019-07-01 09:58:07 +00:00
|
|
|
{"value": 0, "name": "R8 unorm"},
|
|
|
|
{"value": 1, "name": "R8 snorm"},
|
|
|
|
{"value": 2, "name": "R8 uint"},
|
|
|
|
{"value": 3, "name": "R8 sint"},
|
|
|
|
|
|
|
|
{"value": 4, "name": "R16 unorm"},
|
|
|
|
{"value": 5, "name": "R16 snorm"},
|
|
|
|
{"value": 6, "name": "R16 uint"},
|
|
|
|
{"value": 7, "name": "R16 sint"},
|
|
|
|
{"value": 8, "name": "R16 float"},
|
|
|
|
{"value": 9, "name": "RG8 unorm"},
|
|
|
|
{"value": 10, "name": "RG8 snorm"},
|
|
|
|
{"value": 11, "name": "RG8 uint"},
|
|
|
|
{"value": 12, "name": "RG8 sint"},
|
|
|
|
|
2019-07-08 09:28:51 +00:00
|
|
|
{"value": 13, "name": "R32 float"},
|
|
|
|
{"value": 14, "name": "R32 uint"},
|
|
|
|
{"value": 15, "name": "R32 sint"},
|
|
|
|
{"value": 16, "name": "RG16 unorm"},
|
|
|
|
{"value": 17, "name": "RG16 snorm"},
|
|
|
|
{"value": 18, "name": "RG16 uint"},
|
|
|
|
{"value": 19, "name": "RG16 sint"},
|
|
|
|
{"value": 20, "name": "RG16 float"},
|
|
|
|
{"value": 21, "name": "RGBA8 unorm"},
|
|
|
|
{"value": 22, "name": "RGBA8 unorm srgb"},
|
|
|
|
{"value": 23, "name": "RGBA8 snorm"},
|
|
|
|
{"value": 24, "name": "RGBA8 uint"},
|
|
|
|
{"value": 25, "name": "RGBA8 sint"},
|
|
|
|
{"value": 26, "name": "BGRA8 unorm"},
|
|
|
|
{"value": 27, "name": "BGRA8 unorm srgb"},
|
2019-07-08 10:12:16 +00:00
|
|
|
{"value": 28, "name": "RGB10 A2 unorm"},
|
|
|
|
{"value": 29, "name": "RG11 B10 float"},
|
2019-07-01 09:58:07 +00:00
|
|
|
|
2019-07-08 09:28:51 +00:00
|
|
|
{"value": 30, "name": "RG32 float"},
|
|
|
|
{"value": 31, "name": "RG32 uint"},
|
|
|
|
{"value": 32, "name": "RG32 sint"},
|
|
|
|
{"value": 33, "name": "RGBA16 unorm"},
|
|
|
|
{"value": 34, "name": "RGBA16 snorm"},
|
|
|
|
{"value": 35, "name": "RGBA16 uint"},
|
|
|
|
{"value": 36, "name": "RGBA16 sint"},
|
|
|
|
{"value": 37, "name": "RGBA16 float"},
|
2019-07-01 09:58:07 +00:00
|
|
|
|
2019-07-08 09:28:51 +00:00
|
|
|
{"value": 38, "name": "RGBA32 float"},
|
|
|
|
{"value": 39, "name": "RGBA32 uint"},
|
|
|
|
{"value": 40, "name": "RGBA32 sint"},
|
2019-07-01 09:58:07 +00:00
|
|
|
|
2019-07-08 09:28:51 +00:00
|
|
|
{"value": 41, "name": "depth32 float"},
|
|
|
|
{"value": 42, "name": "depth24 plus"},
|
|
|
|
{"value": 43, "name": "depth24 plus stencil8"},
|
2019-07-01 09:58:07 +00:00
|
|
|
|
2019-07-08 09:28:51 +00:00
|
|
|
{"value": 44, "name": "BC1 RGBA unorm"},
|
|
|
|
{"value": 45, "name": "BC1 RGBA unorm srgb"},
|
|
|
|
{"value": 46, "name": "BC2 RGBA unorm"},
|
|
|
|
{"value": 47, "name": "BC2 RGBA unorm srgb"},
|
|
|
|
{"value": 48, "name": "BC3 RGBA unorm"},
|
|
|
|
{"value": 49, "name": "BC3 RGBA unorm srgb"},
|
|
|
|
{"value": 50, "name": "BC4 R unorm"},
|
|
|
|
{"value": 51, "name": "BC4 R snorm"},
|
|
|
|
{"value": 52, "name": "BC5 RG unorm"},
|
|
|
|
{"value": 53, "name": "BC5 RG snorm"},
|
|
|
|
{"value": 54, "name": "BC6H RGB ufloat"},
|
|
|
|
{"value": 55, "name": "BC6H RGB sfloat"},
|
|
|
|
{"value": 56, "name": "BC7 RGBA unorm"},
|
|
|
|
{"value": 57, "name": "BC7 RGBA unorm srgb"}
|
2019-06-01 02:30:51 +00:00
|
|
|
],
|
|
|
|
"TODO": [
|
|
|
|
"jiawei.shao@intel.com: support BC formats as extension"
|
2018-09-11 18:16:54 +00:00
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"texture usage bit": {
|
|
|
|
"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"},
|
2017-05-31 00:03:44 +00:00
|
|
|
{"value": 4, "name": "sampled"},
|
|
|
|
{"value": 8, "name": "storage"},
|
2017-07-19 22:41:17 +00:00
|
|
|
{"value": 16, "name": "output attachment"},
|
|
|
|
{"value": 32, "name": "present"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
2018-10-12 08:32:58 +00:00
|
|
|
"texture view descriptor": {
|
|
|
|
"category": "structure",
|
|
|
|
"extensible": true,
|
|
|
|
"members": [
|
|
|
|
{"name": "format", "type": "texture format"},
|
|
|
|
{"name": "dimension", "type": "texture view dimension"},
|
2019-07-08 19:20:22 +00:00
|
|
|
{"name": "base mip level", "type": "uint32_t", "default": "0"},
|
|
|
|
{"name": "mip level count", "type": "uint32_t", "default": "1"},
|
|
|
|
{"name": "base array layer", "type": "uint32_t", "default": "0"},
|
|
|
|
{"name": "array layer count", "type": "uint32_t", "default": "1"}
|
2018-10-12 08:32:58 +00:00
|
|
|
],
|
|
|
|
"TODO": [
|
|
|
|
"jiawei.shao@intel.com: Allow choosing the aspect (depth vs. stencil)"
|
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"texture view": {
|
|
|
|
"category": "object"
|
|
|
|
},
|
2018-10-12 08:32:58 +00:00
|
|
|
"texture view dimension": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2019-07-15 20:47:56 +00:00
|
|
|
{"value": 0, "name": "1D"},
|
|
|
|
{"value": 1, "name": "2D"},
|
|
|
|
{"value": 2, "name": "2D array"},
|
|
|
|
{"value": 3, "name": "cube"},
|
|
|
|
{"value": 4, "name": "cube array"},
|
|
|
|
{"value": 5, "name": "3D"}
|
2018-10-12 08:32:58 +00:00
|
|
|
],
|
|
|
|
"TODO": [
|
2018-11-07 09:52:33 +00:00
|
|
|
"jiawei.shao@intel.com: support 1D and 3D texture views"
|
2018-10-12 08:32:58 +00:00
|
|
|
]
|
|
|
|
},
|
2017-05-31 00:03:44 +00:00
|
|
|
"vertex format": {
|
|
|
|
"category": "enum",
|
|
|
|
"values": [
|
2019-03-21 11:18:31 +00:00
|
|
|
{"value": 0, "name": "uChar2"},
|
|
|
|
{"value": 1, "name": "uChar4"},
|
|
|
|
{"value": 2, "name": "char2"},
|
|
|
|
{"value": 3, "name": "char4"},
|
|
|
|
{"value": 4, "name": "uChar2 norm"},
|
|
|
|
{"value": 5, "name": "uChar4 norm"},
|
|
|
|
{"value": 6, "name": "char2 norm"},
|
|
|
|
{"value": 7, "name": "char4 norm"},
|
|
|
|
{"value": 8, "name": "uShort2"},
|
|
|
|
{"value": 9, "name": "uShort4"},
|
|
|
|
{"value": 10, "name": "short2"},
|
|
|
|
{"value": 11, "name": "short4"},
|
|
|
|
{"value": 12, "name": "uShort2 norm"},
|
|
|
|
{"value": 13, "name": "uShort4 norm"},
|
|
|
|
{"value": 14, "name": "short2 norm"},
|
|
|
|
{"value": 15, "name": "short4 norm"},
|
|
|
|
{"value": 16, "name": "half2"},
|
|
|
|
{"value": 17, "name": "half4"},
|
|
|
|
{"value": 18, "name": "float"},
|
|
|
|
{"value": 19, "name": "float2"},
|
|
|
|
{"value": 20, "name": "float3"},
|
|
|
|
{"value": 21, "name": "float4"},
|
|
|
|
{"value": 22, "name": "uInt"},
|
|
|
|
{"value": 23, "name": "uInt2"},
|
|
|
|
{"value": 24, "name": "uInt3"},
|
|
|
|
{"value": 25, "name": "uInt4"},
|
|
|
|
{"value": 26, "name": "int"},
|
|
|
|
{"value": 27, "name": "int2"},
|
|
|
|
{"value": 28, "name": "int3"},
|
|
|
|
{"value": 29, "name": "int4"}
|
2017-05-31 00:03:44 +00:00
|
|
|
]
|
|
|
|
},
|
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"
|
|
|
|
},
|
|
|
|
"uint32_t": {
|
|
|
|
"category": "native"
|
2017-07-19 22:41:17 +00:00
|
|
|
},
|
2019-04-11 18:46:54 +00:00
|
|
|
"int32_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"
|
2017-05-31 00:03:44 +00:00
|
|
|
}
|
|
|
|
}
|