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" },
|
|
|
|
{ "name": "is write", "type": "bool" }
|
|
|
|
],
|
|
|
|
"buffer update mapped data": [
|
|
|
|
{ "name": "buffer id", "type": "ObjectId" },
|
|
|
|
{ "name": "data length", "type": "uint32_t" },
|
|
|
|
{ "name": "data", "type": "uint8_t", "annotation": "const*", "length": "data length" }
|
|
|
|
],
|
|
|
|
"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" },
|
|
|
|
{ "name": "data length", "type": "uint32_t" },
|
|
|
|
{ "name": "data", "type": "uint8_t", "annotation": "const*", "length": "data length" }
|
|
|
|
],
|
|
|
|
"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-02-14 19:31:17 +00:00
|
|
|
{ "name": "status", "type": "uint32_t" },
|
|
|
|
{ "name": "data length", "type": "uint32_t" }
|
2019-01-15 20:49:53 +00:00
|
|
|
],
|
|
|
|
"device error callback": [
|
|
|
|
{ "name": "message", "type": "char", "annotation": "const*", "length": "strlen" }
|
|
|
|
],
|
|
|
|
"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": {
|
|
|
|
"client_side_commands": [
|
|
|
|
"FenceGetCompletedValue"
|
|
|
|
],
|
2019-01-30 03:00:17 +00:00
|
|
|
"client_handwritten_commands": [
|
2019-01-15 20:49:53 +00:00
|
|
|
"BufferUnmap",
|
2019-03-06 22:42:22 +00:00
|
|
|
"QueueCreateFence",
|
2019-01-30 03:00:17 +00:00
|
|
|
"FenceGetCompletedValue",
|
2019-01-15 20:49:53 +00:00
|
|
|
"QueueSignal"
|
|
|
|
],
|
|
|
|
"client_special_objects": [
|
|
|
|
"Buffer",
|
|
|
|
"Device",
|
|
|
|
"Fence"
|
|
|
|
],
|
|
|
|
"server_custom_pre_handler_commands": [
|
|
|
|
"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"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|