|
|
|
@ -53,7 +53,8 @@ |
|
|
|
|
"members": [ |
|
|
|
|
{"name": "compatible surface", "type": "surface", "optional": true}, |
|
|
|
|
{"name": "power preference", "type": "power preference", "default": "undefined"}, |
|
|
|
|
{"name": "force fallback adapter", "type": "bool", "default": "false"} |
|
|
|
|
{"name": "force fallback adapter", "type": "bool", "default": "false"}, |
|
|
|
|
{"name": "compatibility mode", "type": "bool", "default": "false", "tags": ["dawn", "emscripten"]} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"request adapter status": { |
|
|
|
@ -77,7 +78,13 @@ |
|
|
|
|
}, |
|
|
|
|
"adapter": { |
|
|
|
|
"category": "object", |
|
|
|
|
"no autolock": true, |
|
|
|
|
"methods": [ |
|
|
|
|
{ |
|
|
|
|
"name": "get instance", |
|
|
|
|
"tags": ["dawn"], |
|
|
|
|
"returns": "instance" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "get limits", |
|
|
|
|
"returns": "bool", |
|
|
|
@ -134,7 +141,8 @@ |
|
|
|
|
{"name": "name", "type": "char", "annotation": "const*", "length": "strlen"}, |
|
|
|
|
{"name": "driver description", "type": "char", "annotation": "const*", "length": "strlen"}, |
|
|
|
|
{"name": "adapter type", "type": "adapter type"}, |
|
|
|
|
{"name": "backend type", "type": "backend type"} |
|
|
|
|
{"name": "backend type", "type": "backend type"}, |
|
|
|
|
{"name": "compatibility mode", "type": "bool", "default": "false", "tags": ["dawn", "emscripten"]} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"adapter type": { |
|
|
|
@ -155,19 +163,21 @@ |
|
|
|
|
{"name": "required features count", "type": "uint32_t", "default": 0}, |
|
|
|
|
{"name": "required features", "type": "feature name", "annotation": "const*", "length": "required features count", "default": "nullptr"}, |
|
|
|
|
{"name": "required limits", "type": "required limits", "annotation": "const*", "optional": true}, |
|
|
|
|
{"name": "default queue", "type": "queue descriptor"} |
|
|
|
|
{"name": "default queue", "type": "queue descriptor"}, |
|
|
|
|
{"name": "device lost callback", "type": "device lost callback", "default": "nullptr"}, |
|
|
|
|
{"name": "device lost userdata", "type": "void *", "default": "nullptr"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"dawn toggles device descriptor": { |
|
|
|
|
"dawn toggles descriptor": { |
|
|
|
|
"tags": ["dawn", "native"], |
|
|
|
|
"category": "structure", |
|
|
|
|
"chained": "in", |
|
|
|
|
"chain roots": ["device descriptor"], |
|
|
|
|
"chain roots": ["instance descriptor", "device descriptor"], |
|
|
|
|
"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"} |
|
|
|
|
{"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"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"dawn cache device descriptor" : { |
|
|
|
@ -220,7 +230,7 @@ |
|
|
|
|
{"name": "binding", "type": "uint32_t"}, |
|
|
|
|
{"name": "buffer", "type": "buffer", "optional": true}, |
|
|
|
|
{"name": "offset", "type": "uint64_t", "default": "0"}, |
|
|
|
|
{"name": "size", "type": "uint64_t"}, |
|
|
|
|
{"name": "size", "type": "uint64_t", "default": "WGPU_WHOLE_SIZE"}, |
|
|
|
|
{"name": "sampler", "type": "sampler", "optional": true}, |
|
|
|
|
{"name": "texture view", "type": "texture view", "optional": true} |
|
|
|
|
] |
|
|
|
@ -445,6 +455,10 @@ |
|
|
|
|
"name": "get size", |
|
|
|
|
"returns": "uint64_t" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "get map state", |
|
|
|
|
"returns": "buffer map state" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "unmap" |
|
|
|
|
}, |
|
|
|
@ -475,11 +489,22 @@ |
|
|
|
|
"emscripten_no_enum_table": true, |
|
|
|
|
"values": [ |
|
|
|
|
{"value": 0, "name": "success"}, |
|
|
|
|
{"value": 1, "name": "error"}, |
|
|
|
|
{"value": 1, "name": "validation error"}, |
|
|
|
|
{"value": 2, "name": "unknown"}, |
|
|
|
|
{"value": 3, "name": "device lost"}, |
|
|
|
|
{"value": 4, "name": "destroyed before callback"}, |
|
|
|
|
{"value": 5, "name": "unmapped before callback"} |
|
|
|
|
{"value": 5, "name": "unmapped before callback"}, |
|
|
|
|
{"value": 6, "name": "mapping already pending"}, |
|
|
|
|
{"value": 7, "name": "offset out of range"}, |
|
|
|
|
{"value": 8, "name": "size out of range"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"buffer map state": { |
|
|
|
|
"category": "enum", |
|
|
|
|
"values": [ |
|
|
|
|
{"value": 0, "name": "unmapped"}, |
|
|
|
|
{"value": 1, "name": "pending"}, |
|
|
|
|
{"value": 2, "name": "mapped"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"buffer usage": { |
|
|
|
@ -550,6 +575,7 @@ |
|
|
|
|
}, |
|
|
|
|
"command encoder": { |
|
|
|
|
"category": "object", |
|
|
|
|
"no autolock": true, |
|
|
|
|
"methods": [ |
|
|
|
|
{ |
|
|
|
|
"name": "finish", |
|
|
|
@ -737,7 +763,10 @@ |
|
|
|
|
{"name": "line num", "type": "uint64_t"}, |
|
|
|
|
{"name": "line pos", "type": "uint64_t"}, |
|
|
|
|
{"name": "offset", "type": "uint64_t"}, |
|
|
|
|
{"name": "length", "type": "uint64_t"} |
|
|
|
|
{"name": "length", "type": "uint64_t"}, |
|
|
|
|
{"name": "utf16 line pos", "type": "uint64_t"}, |
|
|
|
|
{"name": "utf16 offset", "type": "uint64_t"}, |
|
|
|
|
{"name": "utf16 length", "type": "uint64_t"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"compilation message type": { |
|
|
|
@ -760,6 +789,7 @@ |
|
|
|
|
}, |
|
|
|
|
"compute pass encoder": { |
|
|
|
|
"category": "object", |
|
|
|
|
"no autolock": true, |
|
|
|
|
"methods": [ |
|
|
|
|
{ |
|
|
|
|
"name": "insert debug marker", |
|
|
|
@ -808,15 +838,6 @@ |
|
|
|
|
{"name": "query index", "type": "uint32_t"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "dispatch", |
|
|
|
|
"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", |
|
|
|
|
"args": [ |
|
|
|
@ -825,14 +846,6 @@ |
|
|
|
|
{"name": "workgroupCountZ", "type": "uint32_t", "default": "1"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "dispatch indirect", |
|
|
|
|
"tags": ["deprecated"], |
|
|
|
|
"args": [ |
|
|
|
|
{"name": "indirect buffer", "type": "buffer"}, |
|
|
|
|
{"name": "indirect offset", "type": "uint64_t"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "dispatch workgroups indirect", |
|
|
|
|
"args": [ |
|
|
|
@ -843,10 +856,6 @@ |
|
|
|
|
{ |
|
|
|
|
"name": "end" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "end pass", |
|
|
|
|
"tags": ["deprecated"] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "end pipeline statistics query", |
|
|
|
|
"tags": ["upstream", "emscripten"] |
|
|
|
@ -916,7 +925,6 @@ |
|
|
|
|
"category": "structure", |
|
|
|
|
"extensible": "in", |
|
|
|
|
"tags": ["dawn"], |
|
|
|
|
"_TODO": "support number as length input", |
|
|
|
|
"members": [ |
|
|
|
|
{"name": "flip y", "type": "bool", "default": "false"}, |
|
|
|
|
{"name": "needs color space conversion", "type": "bool", "default": "false"}, |
|
|
|
@ -945,10 +953,11 @@ |
|
|
|
|
"emscripten_no_enum_table": true, |
|
|
|
|
"values": [ |
|
|
|
|
{"value": 0, "name": "success"}, |
|
|
|
|
{"value": 1, "name": "error"}, |
|
|
|
|
{"value": 2, "name": "device lost"}, |
|
|
|
|
{"value": 3, "name": "device destroyed"}, |
|
|
|
|
{"value": 4, "name": "unknown"} |
|
|
|
|
{"value": 1, "name": "validation error"}, |
|
|
|
|
{"value": 2, "name": "internal error"}, |
|
|
|
|
{"value": 3, "name": "device lost"}, |
|
|
|
|
{"value": 4, "name": "device destroyed"}, |
|
|
|
|
{"value": 5, "name": "unknown"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"create render pipeline async callback": { |
|
|
|
@ -995,7 +1004,10 @@ |
|
|
|
|
{ |
|
|
|
|
"name": "create error buffer", |
|
|
|
|
"returns": "buffer", |
|
|
|
|
"tags": ["dawn"] |
|
|
|
|
"tags": ["dawn"], |
|
|
|
|
"args": [ |
|
|
|
|
{"name": "descriptor", "type": "buffer descriptor", "annotation": "const*"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "create command encoder", |
|
|
|
@ -1085,17 +1097,15 @@ |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "create swap chain", |
|
|
|
|
"tags": ["dawn"], |
|
|
|
|
"returns": "swap chain", |
|
|
|
|
"name": "create error shader module", |
|
|
|
|
"returns": "shader module", |
|
|
|
|
"args": [ |
|
|
|
|
{"name": "surface", "type": "surface", "optional": true}, |
|
|
|
|
{"name": "descriptor", "type": "swap chain descriptor", "annotation": "const*"} |
|
|
|
|
{"name": "descriptor", "type": "shader module descriptor", "annotation": "const*"}, |
|
|
|
|
{"name": "error message", "type": "char", "annotation": "const*", "length": "strlen"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "create swap chain", |
|
|
|
|
"tags": ["upstream", "emscripten"], |
|
|
|
|
"returns": "swap chain", |
|
|
|
|
"args": [ |
|
|
|
|
{"name": "surface", "type": "surface"}, |
|
|
|
@ -1159,15 +1169,21 @@ |
|
|
|
|
"tags": ["dawn"] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "lose for testing", |
|
|
|
|
"name": "force loss", |
|
|
|
|
"args": [ |
|
|
|
|
{"name": "type", "type": "device lost reason"}, |
|
|
|
|
{"name": "message", "type": "char", "annotation": "const*", "length": "strlen"} |
|
|
|
|
], |
|
|
|
|
"tags": ["dawn"] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "tick", |
|
|
|
|
"no autolock": true, |
|
|
|
|
"tags": ["dawn"] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "set uncaptured error callback", |
|
|
|
|
"no autolock": true, |
|
|
|
|
"args": [ |
|
|
|
|
{"name": "callback", "type": "error callback"}, |
|
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"} |
|
|
|
@ -1175,6 +1191,7 @@ |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "set logging callback", |
|
|
|
|
"no autolock": true, |
|
|
|
|
"tags": ["dawn"], |
|
|
|
|
"args": [ |
|
|
|
|
{"name": "callback", "type": "logging callback"}, |
|
|
|
@ -1183,6 +1200,8 @@ |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "set device lost callback", |
|
|
|
|
"no autolock": true, |
|
|
|
|
"tags": ["deprecated"], |
|
|
|
|
"args": [ |
|
|
|
|
{"name": "callback", "type": "device lost callback"}, |
|
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"} |
|
|
|
@ -1196,7 +1215,6 @@ |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "pop error scope", |
|
|
|
|
"returns": "bool", |
|
|
|
|
"args": [ |
|
|
|
|
{"name": "callback", "type": "error callback"}, |
|
|
|
|
{"name": "userdata", "type": "void", "annotation": "*"} |
|
|
|
@ -1208,6 +1226,21 @@ |
|
|
|
|
"args": [ |
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "validate texture descriptor", |
|
|
|
|
"tags": ["dawn"], |
|
|
|
|
"args": [ |
|
|
|
|
{"name": "descriptor", "type": "texture descriptor", "annotation": "const*"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "get supported surface usage", |
|
|
|
|
"tags": ["dawn"], |
|
|
|
|
"returns": "texture usage", |
|
|
|
|
"args": [ |
|
|
|
|
{"name": "surface", "type": "surface"} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
@ -1246,6 +1279,7 @@ |
|
|
|
|
{"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"}, |
|
|
|
|
{"name": "max bindings per bind group", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
|
|
|
|
{"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"}, |
|
|
|
@ -1258,11 +1292,13 @@ |
|
|
|
|
{"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"}, |
|
|
|
|
{"name": "max buffer size", "type": "uint64_t", "default": "WGPU_LIMIT_U64_UNDEFINED"}, |
|
|
|
|
{"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"}, |
|
|
|
|
{"name": "max inter stage shader variables", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
|
|
|
|
{"name": "max color attachments", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
|
|
|
|
{"name": "max color attachment bytes per sample", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}, |
|
|
|
|
{"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"}, |
|
|
|
@ -1298,7 +1334,8 @@ |
|
|
|
|
"category": "enum", |
|
|
|
|
"values": [ |
|
|
|
|
{"value": 0, "name": "validation"}, |
|
|
|
|
{"value": 1, "name": "out of memory"} |
|
|
|
|
{"value": 1, "name": "out of memory"}, |
|
|
|
|
{"value": 2, "name": "internal"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"error type": { |
|
|
|
@ -1308,8 +1345,9 @@ |
|
|
|
|
{"value": 0, "name": "no error"}, |
|
|
|
|
{"value": 1, "name": "validation"}, |
|
|
|
|
{"value": 2, "name": "out of memory"}, |
|
|
|
|
{"value": 3, "name": "unknown"}, |
|
|
|
|
{"value": 4, "name": "device lost"} |
|
|
|
|
{"value": 3, "name": "internal"}, |
|
|
|
|
{"value": 4, "name": "unknown"}, |
|
|
|
|
{"value": 5, "name": "device lost"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"logging type": { |
|
|
|
@ -1322,6 +1360,15 @@ |
|
|
|
|
{"value": 3, "name": "error"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"extent 2D": { |
|
|
|
|
"category": "structure", |
|
|
|
|
"tags": ["dawn"], |
|
|
|
|
"_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} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"extent 3D": { |
|
|
|
|
"category": "structure", |
|
|
|
|
"members": [ |
|
|
|
@ -1344,9 +1391,27 @@ |
|
|
|
|
{ |
|
|
|
|
"name": "destroy", |
|
|
|
|
"returns": "void" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "expire", |
|
|
|
|
"returns": "void" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "refresh", |
|
|
|
|
"returns": "void" |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"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"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"external texture descriptor": { |
|
|
|
|
"category": "structure", |
|
|
|
|
"extensible": "in", |
|
|
|
@ -1355,6 +1420,8 @@ |
|
|
|
|
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}, |
|
|
|
|
{"name": "plane 0", "type": "texture view"}, |
|
|
|
|
{"name": "plane 1", "type": "texture view", "optional": true}, |
|
|
|
|
{"name": "visible origin", "type": "origin 2D"}, |
|
|
|
|
{"name": "visible size", "type": "extent 2D"}, |
|
|
|
|
{"name": "do yuv to rgb conversion only", "type": "bool", "default": "false"}, |
|
|
|
|
{"name": "yuv to rgb conversion matrix", "type": "float", "annotation": "const*", |
|
|
|
|
"length": 12, "optional": true}, |
|
|
|
@ -1363,7 +1430,9 @@ |
|
|
|
|
{"name": "dst transfer function parameters", "type": "float", "annotation": "const*", |
|
|
|
|