2019-01-15 20:49:53 +00:00
|
|
|
{
|
|
|
|
"_comment": [
|
|
|
|
"Copyright 2019 The Dawn Authors",
|
|
|
|
"",
|
|
|
|
"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."
|
|
|
|
],
|
|
|
|
"commands": {
|
|
|
|
"buffer map async": [
|
|
|
|
{ "name": "buffer id", "type": "ObjectId" },
|
|
|
|
{ "name": "request serial", "type": "uint32_t" },
|
2019-07-19 16:01:48 +00:00
|
|
|
{ "name": "is write", "type": "bool" },
|
|
|
|
{ "name": "handle create info length", "type": "uint64_t" },
|
|
|
|
{ "name": "handle create info", "type": "uint8_t", "annotation": "const*", "length": "handle create info length", "skip_serialize": true}
|
2019-01-15 20:49:53 +00:00
|
|
|
],
|
2019-06-06 16:19:15 +00:00
|
|
|
"buffer set sub data internal": [
|
|
|
|
{"name": "buffer id", "type": "ObjectId" },
|
|
|
|
{"name": "start", "type": "uint64_t"},
|
|
|
|
{"name": "count", "type": "uint64_t"},
|
|
|
|
{"name": "data", "type": "uint8_t", "annotation": "const*", "length": "count"}
|
|
|
|
],
|
2019-01-15 20:49:53 +00:00
|
|
|
"buffer update mapped data": [
|
|
|
|
{ "name": "buffer id", "type": "ObjectId" },
|
2019-07-19 16:01:48 +00:00
|
|
|
{ "name": "write flush info length", "type": "uint64_t" },
|
|
|
|
{ "name": "write flush info", "type": "uint8_t", "annotation": "const*", "length": "write flush info length", "skip_serialize": true}
|
2019-01-15 20:49:53 +00:00
|
|
|
],
|
2019-05-22 18:49:59 +00:00
|
|
|
"device create buffer mapped": [
|
|
|
|
{ "name": "device", "type": "device" },
|
|
|
|
{ "name": "descriptor", "type": "buffer descriptor", "annotation": "const*" },
|
2019-07-19 16:01:48 +00:00
|
|
|
{ "name": "result", "type": "ObjectHandle", "handle_type": "buffer" },
|
|
|
|
{ "name": "handle create info length", "type": "uint64_t" },
|
|
|
|
{ "name": "handle create info", "type": "uint8_t", "annotation": "const*", "length": "handle create info length", "skip_serialize": true}
|
2019-05-22 18:49:59 +00:00
|
|
|
],
|
2019-09-04 22:54:03 +00:00
|
|
|
"device pop error scope": [
|
|
|
|
{ "name": "device", "type": "device" },
|
|
|
|
{ "name": "request serial", "type": "uint64_t" }
|
|
|
|
],
|
2019-01-15 20:49:53 +00:00
|
|
|
"destroy object": [
|
|
|
|
{ "name": "object type", "type": "ObjectType" },
|
|
|
|
{ "name": "object id", "type": "ObjectId" }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"return commands": {
|
|
|
|
"buffer map read async callback": [
|
2019-01-30 03:00:17 +00:00
|
|
|
{ "name": "buffer", "type": "ObjectHandle", "handle_type": "buffer" },
|
2019-01-15 20:49:53 +00:00
|
|
|
{ "name": "request serial", "type": "uint32_t" },
|
|
|
|
{ "name": "status", "type": "uint32_t" },
|
2019-07-19 16:01:48 +00:00
|
|
|
{ "name": "initial data info length", "type": "uint64_t" },
|
|
|
|
{ "name": "initial data info", "type": "uint8_t", "annotation": "const*", "length": "initial data info length", "skip_serialize": true }
|
2019-01-15 20:49:53 +00:00
|
|
|
],
|
|
|
|
"buffer map write async callback": [
|
2019-01-30 03:00:17 +00:00
|
|
|
{ "name": "buffer", "type": "ObjectHandle", "handle_type": "buffer" },
|
2019-01-15 20:49:53 +00:00
|
|
|
{ "name": "request serial", "type": "uint32_t" },
|
2019-07-19 16:01:48 +00:00
|
|
|
{ "name": "status", "type": "uint32_t" }
|
2019-01-15 20:49:53 +00:00
|
|
|
],
|
2019-08-27 21:43:56 +00:00
|
|
|
"device uncaptured error callback": [
|
2019-08-27 21:41:56 +00:00
|
|
|
{ "name": "type", "type": "error type"},
|
2019-01-15 20:49:53 +00:00
|
|
|
{ "name": "message", "type": "char", "annotation": "const*", "length": "strlen" }
|
|
|
|
],
|
2019-12-18 18:59:20 +00:00
|
|
|
"device lost callback" : [
|
|
|
|
{ "name": "message", "type": "char", "annotation": "const*", "length": "strlen" }
|
|
|
|
],
|
2019-09-04 22:54:03 +00:00
|
|
|
"device pop error scope callback": [
|
|
|
|
{ "name": "request serial", "type": "uint64_t" },
|
|
|
|
{ "name": "type", "type": "error type" },
|
|
|
|
{ "name": "message", "type": "char", "annotation": "const*", "length": "strlen" }
|
|
|
|
],
|
2019-01-15 20:49:53 +00:00
|
|
|
"fence update completed value": [
|
2019-01-30 03:00:17 +00:00
|
|
|
{ "name": "fence", "type": "ObjectHandle", "handle_type": "fence" },
|
2019-01-15 20:49:53 +00:00
|
|
|
{ "name": "value", "type": "uint64_t" }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"special items": {
|
2019-06-06 16:19:15 +00:00
|
|
|
"client_side_structures": [
|
2020-01-15 13:14:12 +00:00
|
|
|
"CreateBufferMappedResult",
|
|
|
|
"SurfaceDescriptorFromMetalLayer",
|
|
|
|
"SurfaceDescriptorFromWindowsHWND",
|
|
|
|
"SurfaceDescriptorFromXlib"
|
2019-06-06 16:19:15 +00:00
|
|
|
],
|
2019-01-15 20:49:53 +00:00
|
|
|
"client_side_commands": [
|
2019-11-22 13:18:22 +00:00
|
|
|
"BufferMapReadAsync",
|
|
|
|
"BufferMapWriteAsync",
|
2019-06-06 16:19:15 +00:00
|
|
|
"BufferSetSubData",
|
2019-11-22 13:18:22 +00:00
|
|
|
"DevicePopErrorScope",
|
2019-12-18 18:59:20 +00:00
|
|
|
"DeviceSetDeviceLostCallback",
|
2019-11-22 13:18:22 +00:00
|
|
|
"DeviceSetUncapturedErrorCallback",
|
|
|
|
"FenceGetCompletedValue",
|
|
|
|
"FenceOnCompletion"
|
2019-01-15 20:49:53 +00:00
|
|
|
],
|
2019-01-30 03:00:17 +00:00
|
|
|
"client_handwritten_commands": [
|
2020-04-08 10:23:35 +00:00
|
|
|
"BufferDestroy",
|
2019-01-15 20:49:53 +00:00
|
|
|
"BufferUnmap",
|
2019-07-19 16:01:48 +00:00
|
|
|
"DeviceCreateBuffer",
|
2019-05-15 18:55:22 +00:00
|
|
|
"DeviceCreateBufferMapped",
|
2020-04-23 21:21:52 +00:00
|
|
|
"DeviceGetDefaultQueue",
|
2019-09-04 22:54:03 +00:00
|
|
|
"DevicePushErrorScope",
|
2019-03-06 22:42:22 +00:00
|
|
|
"QueueCreateFence",
|
2019-01-15 20:49:53 +00:00
|
|
|
"QueueSignal"
|
|
|
|
],
|
|
|
|
"client_special_objects": [
|
|
|
|
"Buffer",
|
|
|
|
"Device",
|
|
|
|
"Fence"
|
|
|
|
],
|
|
|
|
"server_custom_pre_handler_commands": [
|
2020-04-08 10:23:35 +00:00
|
|
|
"BufferDestroy",
|
2019-01-15 20:49:53 +00:00
|
|
|
"BufferUnmap"
|
|
|
|
],
|
2019-02-11 19:39:46 +00:00
|
|
|
"server_handwritten_commands": [
|
2019-01-15 20:49:53 +00:00
|
|
|
"QueueSignal"
|
|
|
|
],
|
|
|
|
"server_reverse_lookup_objects": [
|
|
|
|
"Fence"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|