Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 1 | { |
| 2 | "_comment": [ |
| 3 | "Copyright 2019 The Dawn Authors", |
| 4 | "", |
| 5 | "Licensed under the Apache License, Version 2.0 (the \"License\");", |
| 6 | "you may not use this file except in compliance with the License.", |
| 7 | "You may obtain a copy of the License at", |
| 8 | "", |
| 9 | " http://www.apache.org/licenses/LICENSE-2.0", |
| 10 | "", |
| 11 | "Unless required by applicable law or agreed to in writing, software", |
| 12 | "distributed under the License is distributed on an \"AS IS\" BASIS,", |
| 13 | "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", |
| 14 | "See the License for the specific language governing permissions and", |
| 15 | "limitations under the License." |
| 16 | ], |
| 17 | "commands": { |
| 18 | "buffer map async": [ |
| 19 | { "name": "buffer id", "type": "ObjectId" }, |
| 20 | { "name": "request serial", "type": "uint32_t" }, |
Austin Eng | 6a5418a | 2019-07-19 16:01:48 +0000 | [diff] [blame] | 21 | { "name": "is write", "type": "bool" }, |
| 22 | { "name": "handle create info length", "type": "uint64_t" }, |
| 23 | { "name": "handle create info", "type": "uint8_t", "annotation": "const*", "length": "handle create info length", "skip_serialize": true} |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 24 | ], |
Corentin Wallez | 67ab1ea | 2019-06-06 16:19:15 +0000 | [diff] [blame] | 25 | "buffer set sub data internal": [ |
| 26 | {"name": "buffer id", "type": "ObjectId" }, |
| 27 | {"name": "start", "type": "uint64_t"}, |
| 28 | {"name": "count", "type": "uint64_t"}, |
| 29 | {"name": "data", "type": "uint8_t", "annotation": "const*", "length": "count"} |
| 30 | ], |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 31 | "buffer update mapped data": [ |
| 32 | { "name": "buffer id", "type": "ObjectId" }, |
Austin Eng | 6a5418a | 2019-07-19 16:01:48 +0000 | [diff] [blame] | 33 | { "name": "write flush info length", "type": "uint64_t" }, |
| 34 | { "name": "write flush info", "type": "uint8_t", "annotation": "const*", "length": "write flush info length", "skip_serialize": true} |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 35 | ], |
Austin Eng | 76e3de4 | 2019-05-22 18:49:59 +0000 | [diff] [blame] | 36 | "device create buffer mapped": [ |
| 37 | { "name": "device", "type": "device" }, |
| 38 | { "name": "descriptor", "type": "buffer descriptor", "annotation": "const*" }, |
Austin Eng | 6a5418a | 2019-07-19 16:01:48 +0000 | [diff] [blame] | 39 | { "name": "result", "type": "ObjectHandle", "handle_type": "buffer" }, |
| 40 | { "name": "handle create info length", "type": "uint64_t" }, |
| 41 | { "name": "handle create info", "type": "uint8_t", "annotation": "const*", "length": "handle create info length", "skip_serialize": true} |
Austin Eng | 76e3de4 | 2019-05-22 18:49:59 +0000 | [diff] [blame] | 42 | ], |
Austin Eng | 21eba76 | 2019-06-14 17:35:56 +0000 | [diff] [blame] | 43 | "device create buffer mapped async": [ |
| 44 | { "name": "device", "type": "device" }, |
| 45 | { "name": "descriptor", "type": "buffer descriptor", "annotation": "const*" }, |
| 46 | { "name": "request serial", "type": "uint32_t" }, |
Austin Eng | 6a5418a | 2019-07-19 16:01:48 +0000 | [diff] [blame] | 47 | { "name": "result", "type": "ObjectHandle", "handle_type": "buffer" }, |
| 48 | { "name": "handle create info length", "type": "uint64_t" }, |
| 49 | { "name": "handle create info", "type": "uint8_t", "annotation": "const*", "length": "handle create info length", "skip_serialize": true} |
Austin Eng | 21eba76 | 2019-06-14 17:35:56 +0000 | [diff] [blame] | 50 | ], |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 51 | "destroy object": [ |
| 52 | { "name": "object type", "type": "ObjectType" }, |
| 53 | { "name": "object id", "type": "ObjectId" } |
| 54 | ] |
| 55 | }, |
| 56 | "return commands": { |
| 57 | "buffer map read async callback": [ |
Austin Eng | 1139d1c | 2019-01-30 03:00:17 +0000 | [diff] [blame] | 58 | { "name": "buffer", "type": "ObjectHandle", "handle_type": "buffer" }, |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 59 | { "name": "request serial", "type": "uint32_t" }, |
| 60 | { "name": "status", "type": "uint32_t" }, |
Austin Eng | 6a5418a | 2019-07-19 16:01:48 +0000 | [diff] [blame] | 61 | { "name": "initial data info length", "type": "uint64_t" }, |
| 62 | { "name": "initial data info", "type": "uint8_t", "annotation": "const*", "length": "initial data info length", "skip_serialize": true } |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 63 | ], |
| 64 | "buffer map write async callback": [ |
Austin Eng | 1139d1c | 2019-01-30 03:00:17 +0000 | [diff] [blame] | 65 | { "name": "buffer", "type": "ObjectHandle", "handle_type": "buffer" }, |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 66 | { "name": "request serial", "type": "uint32_t" }, |
Austin Eng | 6a5418a | 2019-07-19 16:01:48 +0000 | [diff] [blame] | 67 | { "name": "status", "type": "uint32_t" } |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 68 | ], |
| 69 | "device error callback": [ |
| 70 | { "name": "message", "type": "char", "annotation": "const*", "length": "strlen" } |
| 71 | ], |
| 72 | "fence update completed value": [ |
Austin Eng | 1139d1c | 2019-01-30 03:00:17 +0000 | [diff] [blame] | 73 | { "name": "fence", "type": "ObjectHandle", "handle_type": "fence" }, |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 74 | { "name": "value", "type": "uint64_t" } |
| 75 | ] |
| 76 | }, |
| 77 | "special items": { |
Corentin Wallez | 67ab1ea | 2019-06-06 16:19:15 +0000 | [diff] [blame] | 78 | "client_side_structures": [ |
| 79 | "CreateBufferMappedResult" |
| 80 | ], |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 81 | "client_side_commands": [ |
Corentin Wallez | 67ab1ea | 2019-06-06 16:19:15 +0000 | [diff] [blame] | 82 | "BufferSetSubData", |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 83 | "FenceGetCompletedValue" |
| 84 | ], |
Austin Eng | 1139d1c | 2019-01-30 03:00:17 +0000 | [diff] [blame] | 85 | "client_handwritten_commands": [ |
Corentin Wallez | 67ab1ea | 2019-06-06 16:19:15 +0000 | [diff] [blame] | 86 | "BufferSetSubData", |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 87 | "BufferUnmap", |
Austin Eng | 6a5418a | 2019-07-19 16:01:48 +0000 | [diff] [blame] | 88 | "DeviceCreateBuffer", |
Austin Eng | 740995c | 2019-05-15 18:55:22 +0000 | [diff] [blame] | 89 | "DeviceCreateBufferMapped", |
Austin Eng | 21eba76 | 2019-06-14 17:35:56 +0000 | [diff] [blame] | 90 | "DeviceCreateBufferMappedAsync", |
Austin Eng | 1cc3866 | 2019-03-06 22:42:22 +0000 | [diff] [blame] | 91 | "QueueCreateFence", |
Austin Eng | 1139d1c | 2019-01-30 03:00:17 +0000 | [diff] [blame] | 92 | "FenceGetCompletedValue", |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 93 | "QueueSignal" |
| 94 | ], |
| 95 | "client_special_objects": [ |
| 96 | "Buffer", |
| 97 | "Device", |
| 98 | "Fence" |
| 99 | ], |
| 100 | "server_custom_pre_handler_commands": [ |
| 101 | "BufferUnmap" |
| 102 | ], |
Austin Eng | 62e8397 | 2019-02-11 19:39:46 +0000 | [diff] [blame] | 103 | "server_handwritten_commands": [ |
Austin Eng | c7f416c | 2019-01-15 20:49:53 +0000 | [diff] [blame] | 104 | "QueueSignal" |
| 105 | ], |
| 106 | "server_reverse_lookup_objects": [ |
| 107 | "Fence" |
| 108 | ] |
| 109 | } |
| 110 | } |