Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 1 | |
Jason Sams | 186e591 | 2011-04-26 14:50:00 -0700 | [diff] [blame] | 2 | ContextDestroy { |
3 | direct | ||||
4 | } | ||||
5 | |||||
6 | ContextGetMessage { | ||||
7 | direct | ||||
8 | param void *data | ||||
9 | param size_t *receiveLen | ||||
Jason Sams | 1a4efa3 | 2011-05-17 15:01:29 -0700 | [diff] [blame] | 10 | param uint32_t *usrID |
Jason Sams | 186e591 | 2011-04-26 14:50:00 -0700 | [diff] [blame] | 11 | ret RsMessageToClientType |
12 | } | ||||
13 | |||||
14 | ContextPeekMessage { | ||||
15 | direct | ||||
16 | param size_t *receiveLen | ||||
Jason Sams | 1a4efa3 | 2011-05-17 15:01:29 -0700 | [diff] [blame] | 17 | param uint32_t *usrID |
Jason Sams | 186e591 | 2011-04-26 14:50:00 -0700 | [diff] [blame] | 18 | ret RsMessageToClientType |
19 | } | ||||
20 | |||||
21 | ContextInitToClient { | ||||
22 | direct | ||||
23 | } | ||||
24 | |||||
25 | ContextDeinitToClient { | ||||
26 | direct | ||||
27 | } | ||||
28 | |||||
Jason Sams | c975cf4 | 2011-04-28 18:26:48 -0700 | [diff] [blame] | 29 | TypeCreate { |
Jason Sams | 186e591 | 2011-04-26 14:50:00 -0700 | [diff] [blame] | 30 | direct |
31 | param RsElement e | ||||
32 | param uint32_t dimX | ||||
33 | param uint32_t dimY | ||||
34 | param uint32_t dimZ | ||||
35 | param bool mips | ||||
36 | param bool faces | ||||
37 | ret RsType | ||||
38 | } | ||||
39 | |||||
Jason Sams | c975cf4 | 2011-04-28 18:26:48 -0700 | [diff] [blame] | 40 | AllocationCreateTyped { |
Jason Sams | 186e591 | 2011-04-26 14:50:00 -0700 | [diff] [blame] | 41 | direct |
42 | param RsType vtype | ||||
43 | param RsAllocationMipmapControl mips | ||||
44 | param uint32_t usages | ||||
Jason Sams | 179e9a4 | 2011-11-23 15:02:15 -0800 | [diff] [blame] | 45 | param uint32_t ptr |
Jason Sams | 186e591 | 2011-04-26 14:50:00 -0700 | [diff] [blame] | 46 | ret RsAllocation |
47 | } | ||||
48 | |||||
Jason Sams | c975cf4 | 2011-04-28 18:26:48 -0700 | [diff] [blame] | 49 | AllocationCreateFromBitmap { |
Jason Sams | 186e591 | 2011-04-26 14:50:00 -0700 | [diff] [blame] | 50 | direct |
51 | param RsType vtype | ||||
52 | param RsAllocationMipmapControl mips | ||||
53 | param const void *data | ||||
54 | param uint32_t usages | ||||
55 | ret RsAllocation | ||||
56 | } | ||||
57 | |||||
Jason Sams | c975cf4 | 2011-04-28 18:26:48 -0700 | [diff] [blame] | 58 | AllocationCubeCreateFromBitmap { |
Jason Sams | 186e591 | 2011-04-26 14:50:00 -0700 | [diff] [blame] | 59 | direct |
60 | param RsType vtype | ||||
61 | param RsAllocationMipmapControl mips | ||||
62 | param const void *data | ||||
63 | param uint32_t usages | ||||
64 | ret RsAllocation | ||||
65 | } | ||||
66 | |||||
Jason Sams | 41e373d | 2012-01-13 14:01:20 -0800 | [diff] [blame] | 67 | AllocationGetSurfaceTextureID { |
68 | param RsAllocation alloc | ||||
69 | ret int32_t | ||||
70 | } | ||||
Jason Sams | 186e591 | 2011-04-26 14:50:00 -0700 | [diff] [blame] | 71 | |
Jason Sams | 3522f40 | 2012-03-23 11:47:26 -0700 | [diff] [blame] | 72 | AllocationGetSurfaceTextureID2 { |
73 | param RsAllocation alloc | ||||
74 | param void *st | ||||
75 | sync | ||||
76 | } | ||||
77 | |||||
Jason Sams | 7ac2a4d | 2012-02-15 12:04:24 -0800 | [diff] [blame] | 78 | AllocationSetSurface { |
79 | param RsAllocation alloc | ||||
80 | param RsNativeWindow sur | ||||
81 | sync | ||||
82 | } | ||||
83 | |||||
84 | AllocationIoSend { | ||||
85 | param RsAllocation alloc | ||||
86 | } | ||||
87 | |||||
88 | AllocationIoReceive { | ||||
89 | param RsAllocation alloc | ||||
90 | } | ||||
91 | |||||
92 | |||||
Jason Sams | 8c88090 | 2010-06-15 12:15:57 -0700 | [diff] [blame] | 93 | ContextFinish { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 94 | sync |
95 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 96 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 97 | ContextBindRootScript { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 98 | param RsScript sampler |
99 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 100 | |
Jason Sams | ccc010b | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 101 | ContextBindProgramStore { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 102 | param RsProgramStore pgm |
103 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 104 | |
105 | ContextBindProgramFragment { | ||||
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 106 | param RsProgramFragment pgm |
107 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 108 | |
109 | ContextBindProgramVertex { | ||||
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 110 | param RsProgramVertex pgm |
111 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 112 | |
Jason Sams | 5fd09d8 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 113 | ContextBindProgramRaster { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 114 | param RsProgramRaster pgm |
115 | } | ||||
Jason Sams | 5fd09d8 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 116 | |
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 117 | ContextBindFont { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 118 | param RsFont pgm |
119 | } | ||||
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 120 | |
Jason Sams | 86f1b23 | 2009-09-24 17:38:20 -0700 | [diff] [blame] | 121 | ContextPause { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 122 | } |
Jason Sams | 86f1b23 | 2009-09-24 17:38:20 -0700 | [diff] [blame] | 123 | |
124 | ContextResume { | ||||
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 125 | } |
Jason Sams | 86f1b23 | 2009-09-24 17:38:20 -0700 | [diff] [blame] | 126 | |
Jason Sams | 458f2dc | 2009-11-03 13:58:36 -0800 | [diff] [blame] | 127 | ContextSetSurface { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 128 | param uint32_t width |
129 | param uint32_t height | ||||
130 | param RsNativeWindow sur | ||||
Jason Sams | c33e690 | 2011-06-20 16:58:04 -0700 | [diff] [blame] | 131 | sync |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 132 | } |
Jason Sams | 458f2dc | 2009-11-03 13:58:36 -0800 | [diff] [blame] | 133 | |
Jason Sams | c21cf40 | 2009-11-17 17:26:46 -0800 | [diff] [blame] | 134 | ContextDump { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 135 | param int32_t bits |
Jason Sams | c21cf40 | 2009-11-17 17:26:46 -0800 | [diff] [blame] | 136 | } |
137 | |||||
Jason Sams | 613cad1 | 2009-11-12 15:10:25 -0800 | [diff] [blame] | 138 | ContextSetPriority { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 139 | param int32_t priority |
140 | } | ||||
Jason Sams | 613cad1 | 2009-11-12 15:10:25 -0800 | [diff] [blame] | 141 | |
Jason Sams | 741aac9 | 2010-12-24 14:38:39 -0800 | [diff] [blame] | 142 | ContextDestroyWorker { |
Jason Sams | 5f27d6f | 2012-02-07 15:32:08 -0800 | [diff] [blame] | 143 | sync |
Jason Sams | 1dcefab | 2010-12-09 12:19:46 -0800 | [diff] [blame] | 144 | } |
145 | |||||
Jason Sams | a0a1b6f | 2009-06-10 15:04:38 -0700 | [diff] [blame] | 146 | AssignName { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 147 | param RsObjectBase obj |
148 | param const char *name | ||||
149 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 150 | |
Jason Sams | 707aaf3 | 2009-08-18 14:14:24 -0700 | [diff] [blame] | 151 | ObjDestroy { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 152 | param RsAsyncVoidPtr objPtr |
153 | } | ||||
Jason Sams | 707aaf3 | 2009-08-18 14:14:24 -0700 | [diff] [blame] | 154 | |
Jason Sams | d01d970 | 2009-12-23 14:35:29 -0800 | [diff] [blame] | 155 | ElementCreate { |
Alex Sakhartchouk | c700e64 | 2011-08-16 13:09:46 -0700 | [diff] [blame] | 156 | direct |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 157 | param RsDataType mType |
158 | param RsDataKind mKind | ||||
159 | param bool mNormalized | ||||
160 | param uint32_t mVectorSize | ||||
161 | ret RsElement | ||||
162 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 163 | |
Jason Sams | d01d970 | 2009-12-23 14:35:29 -0800 | [diff] [blame] | 164 | ElementCreate2 { |
Alex Sakhartchouk | c700e64 | 2011-08-16 13:09:46 -0700 | [diff] [blame] | 165 | direct |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 166 | param const RsElement * elements |
167 | param const char ** names | ||||
168 | param const uint32_t * arraySize | ||||
169 | ret RsElement | ||||
170 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 171 | |
Jason Sams | 837e388 | 2010-12-10 16:03:15 -0800 | [diff] [blame] | 172 | AllocationCopyToBitmap { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 173 | param RsAllocation alloc |
174 | param void * data | ||||
175 | } | ||||
Alex Sakhartchouk | 39f2ef6 | 2010-10-11 12:35:15 -0700 | [diff] [blame] | 176 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 177 | |
Jason Sams | 4b45b89 | 2010-12-29 14:31:29 -0800 | [diff] [blame] | 178 | Allocation1DData { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 179 | param RsAllocation va |
180 | param uint32_t xoff | ||||
181 | param uint32_t lod | ||||
182 | param uint32_t count | ||||
183 | param const void *data | ||||
184 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 185 | |
Jason Sams | 4b45b89 | 2010-12-29 14:31:29 -0800 | [diff] [blame] | 186 | Allocation1DElementData { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 187 | param RsAllocation va |
188 | param uint32_t x | ||||
189 | param uint32_t lod | ||||
190 | param const void *data | ||||
191 | param size_t comp_offset | ||||
192 | } | ||||
Jason Sams | 5f0c84c | 2010-08-31 13:50:42 -0700 | [diff] [blame] | 193 | |
Jason Sams | 4b45b89 | 2010-12-29 14:31:29 -0800 | [diff] [blame] | 194 | Allocation2DData { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 195 | param RsAllocation va |
196 | param uint32_t xoff | ||||
197 | param uint32_t yoff | ||||
198 | param uint32_t lod | ||||
199 | param RsAllocationCubemapFace face | ||||
200 | param uint32_t w | ||||
201 | param uint32_t h | ||||
202 | param const void *data | ||||
203 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 204 | |
Jason Sams | 4b45b89 | 2010-12-29 14:31:29 -0800 | [diff] [blame] | 205 | Allocation2DElementData { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 206 | param RsAllocation va |
207 | param uint32_t x | ||||
208 | param uint32_t y | ||||
209 | param uint32_t lod | ||||
210 | param RsAllocationCubemapFace face | ||||
211 | param const void *data | ||||
212 | param size_t element_offset | ||||
213 | } | ||||
Jason Sams | 5f0c84c | 2010-08-31 13:50:42 -0700 | [diff] [blame] | 214 | |
Jason Sams | a237151 | 2011-01-12 13:28:37 -0800 | [diff] [blame] | 215 | AllocationGenerateMipmaps { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 216 | param RsAllocation va |
Jason Sams | a237151 | 2011-01-12 13:28:37 -0800 | [diff] [blame] | 217 | } |
218 | |||||
Jason Sams | e579df4 | 2009-08-10 14:55:26 -0700 | [diff] [blame] | 219 | AllocationRead { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 220 | param RsAllocation va |
221 | param void * data | ||||
222 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 223 | |
Tim Murray | 509ea5c | 2012-11-13 11:56:40 -0800 | [diff] [blame] | 224 | Allocation1DRead { |
225 | param RsAllocation va | ||||
226 | param uint32_t xoff | ||||
227 | param uint32_t lod | ||||
228 | param uint32_t count | ||||
229 | param void *data | ||||
230 | } | ||||
231 | |||||
Tim Murray | 7b3e309 | 2012-11-16 13:32:24 -0800 | [diff] [blame] | 232 | Allocation2DRead { |
233 | param RsAllocation va | ||||
234 | param uint32_t xoff | ||||
235 | param uint32_t yoff | ||||
236 | param uint32_t lod | ||||
237 | param RsAllocationCubemapFace face | ||||
238 | param uint32_t w | ||||
239 | param uint32_t h | ||||
240 | param void *data | ||||
241 | } | ||||
Tim Murray | 509ea5c | 2012-11-13 11:56:40 -0800 | [diff] [blame] | 242 | |
Jason Sams | 366c9c8 | 2010-12-08 16:14:36 -0800 | [diff] [blame] | 243 | AllocationSyncAll { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 244 | param RsAllocation va |
245 | param RsAllocationUsageType src | ||||
Jason Sams | 366c9c8 | 2010-12-08 16:14:36 -0800 | [diff] [blame] | 246 | } |
247 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 248 | |
Jason Sams | 96abf81 | 2010-10-05 13:32:49 -0700 | [diff] [blame] | 249 | AllocationResize1D { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 250 | param RsAllocation va |
251 | param uint32_t dimX | ||||
252 | } | ||||
Jason Sams | 96abf81 | 2010-10-05 13:32:49 -0700 | [diff] [blame] | 253 | |
254 | AllocationResize2D { | ||||
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 255 | param RsAllocation va |
256 | param uint32_t dimX | ||||
257 | param uint32_t dimY | ||||
258 | } | ||||
Jason Sams | 96abf81 | 2010-10-05 13:32:49 -0700 | [diff] [blame] | 259 | |
Alex Sakhartchouk | 74a8279 | 2011-06-14 11:13:19 -0700 | [diff] [blame] | 260 | AllocationCopy2DRange { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 261 | param RsAllocation dest |
262 | param uint32_t destXoff | ||||
263 | param uint32_t destYoff | ||||
264 | param uint32_t destMip | ||||
265 | param uint32_t destFace | ||||
266 | param uint32_t width | ||||
267 | param uint32_t height | ||||
268 | param RsAllocation src | ||||
269 | param uint32_t srcXoff | ||||
270 | param uint32_t srcYoff | ||||
271 | param uint32_t srcMip | ||||
272 | param uint32_t srcFace | ||||
273 | } | ||||
Alex Sakhartchouk | 74a8279 | 2011-06-14 11:13:19 -0700 | [diff] [blame] | 274 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 275 | SamplerCreate { |
Alex Sakhartchouk | c700e64 | 2011-08-16 13:09:46 -0700 | [diff] [blame] | 276 | direct |
Alex Sakhartchouk | c2c02a8 | 2011-05-04 17:45:36 -0700 | [diff] [blame] | 277 | param RsSamplerValue magFilter |
278 | param RsSamplerValue minFilter | ||||
279 | param RsSamplerValue wrapS | ||||
280 | param RsSamplerValue wrapT | ||||
281 | param RsSamplerValue wrapR | ||||
282 | param float mAniso | ||||
283 | ret RsSampler | ||||
284 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 285 | |
286 | ScriptBindAllocation { | ||||
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 287 | param RsScript vtm |
288 | param RsAllocation va | ||||
289 | param uint32_t slot | ||||
290 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 291 | |
Jason Sams | d34b725 | 2009-08-04 16:58:20 -0700 | [diff] [blame] | 292 | ScriptSetTimeZone { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 293 | param RsScript s |
294 | param const char * timeZone | ||||
295 | } | ||||
Romain Guy | 98e10fd | 2009-07-30 18:45:01 -0700 | [diff] [blame] | 296 | |
Jason Sams | 8c6bc69 | 2009-09-16 15:04:38 -0700 | [diff] [blame] | 297 | ScriptInvoke { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 298 | param RsScript s |
299 | param uint32_t slot | ||||
300 | } | ||||
Jason Sams | 8c6bc69 | 2009-09-16 15:04:38 -0700 | [diff] [blame] | 301 | |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 302 | ScriptInvokeV { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 303 | param RsScript s |
304 | param uint32_t slot | ||||
305 | param const void * data | ||||
306 | } | ||||
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 307 | |
Alex Sakhartchouk | c2c02a8 | 2011-05-04 17:45:36 -0700 | [diff] [blame] | 308 | ScriptForEach { |
Jason Sams | 5fb1aeb | 2011-04-27 15:12:49 -0700 | [diff] [blame] | 309 | param RsScript s |
310 | param uint32_t slot | ||||
311 | param RsAllocation ain | ||||
312 | param RsAllocation aout | ||||
313 | param const void * usr | ||||
314 | } | ||||
315 | |||||
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 316 | ScriptSetVarI { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 317 | param RsScript s |
318 | param uint32_t slot | ||||
319 | param int value | ||||
320 | } | ||||
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 321 | |
Jason Sams | a5eb6e1 | 2010-11-16 17:37:02 -0800 | [diff] [blame] | 322 | ScriptSetVarObj { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 323 | param RsScript s |
324 | param uint32_t slot | ||||
325 | param RsObjectBase value | ||||
326 | } | ||||
Jason Sams | a5eb6e1 | 2010-11-16 17:37:02 -0800 | [diff] [blame] | 327 | |
Stephen Hines | 0977c94 | 2010-10-11 10:54:21 -0700 | [diff] [blame] | 328 | ScriptSetVarJ { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 329 | param RsScript s |
330 | param uint32_t slot | ||||
331 | param int64_t value | ||||
332 | } | ||||
Stephen Hines | 0977c94 | 2010-10-11 10:54:21 -0700 | [diff] [blame] | 333 | |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 334 | ScriptSetVarF { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 335 | param RsScript s |
336 | param uint32_t slot | ||||
337 | param float value | ||||
338 | } | ||||
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 339 | |
Stephen Hines | 6d0a074 | 2010-09-20 17:20:30 -0700 | [diff] [blame] | 340 | ScriptSetVarD { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 341 | param RsScript s |
342 | param uint32_t slot | ||||
343 | param double value | ||||
344 | } | ||||
Stephen Hines | 6d0a074 | 2010-09-20 17:20:30 -0700 | [diff] [blame] | 345 | |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 346 | ScriptSetVarV { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 347 | param RsScript s |
348 | param uint32_t slot | ||||
349 | param const void * data | ||||
350 | } | ||||
Jason Sams | fa51719 | 2009-08-13 12:59:04 -0700 | [diff] [blame] | 351 | |
Stephen Hines | 2980f07 | 2012-04-09 18:26:29 -0700 | [diff] [blame] | 352 | ScriptSetVarVE { |
353 | param RsScript s | ||||
354 | param uint32_t slot | ||||
355 | param const void * data | ||||
356 | param RsElement e | ||||
357 | param const size_t * dims | ||||
358 | } | ||||
359 | |||||
Jason Sams | fa51719 | 2009-08-13 12:59:04 -0700 | [diff] [blame] | 360 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 361 | ScriptCCreate { |
Shih-wei Liao | 9503b66 | 2010-11-08 01:33:59 -0800 | [diff] [blame] | 362 | param const char * resName |
Shih-wei Liao | 15849d9 | 2010-12-10 01:03:59 -0800 | [diff] [blame] | 363 | param const char * cacheDir |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 364 | param const char * text |
365 | ret RsScript | ||||
366 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 367 | |
Jason Sams | 8eaba4f | 2012-08-14 14:38:05 -0700 | [diff] [blame] | 368 | ScriptIntrinsicCreate { |
369 | param uint32_t id | ||||
370 | param RsElement eid | ||||
371 | ret RsScript | ||||
372 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 373 | |
Jason Sams | dbe66d6 | 2012-09-17 13:54:41 -0700 | [diff] [blame] | 374 | ScriptKernelIDCreate { |
375 | direct | ||||
376 | param RsScript sid | ||||
377 | param int slot | ||||
378 | param int sig | ||||
379 | ret RsScriptKernelID | ||||
380 | } | ||||
381 | |||||
382 | ScriptFieldIDCreate { | ||||
383 | direct | ||||
384 | param RsScript sid | ||||
385 | param int slot | ||||
386 | ret RsScriptFieldID | ||||
387 | } | ||||
388 | |||||
389 | ScriptGroupCreate { | ||||
390 | direct | ||||
391 | param RsScriptKernelID * kernels | ||||
392 | param RsScriptKernelID * src | ||||
393 | param RsScriptKernelID * dstK | ||||
394 | param RsScriptFieldID * dstF | ||||
395 | param const RsType * type | ||||
396 | ret RsScriptGroup | ||||
397 | } | ||||
398 | |||||
399 | ScriptGroupSetOutput { | ||||
400 | param RsScriptGroup group | ||||
401 | param RsScriptKernelID kernel | ||||
402 | param RsAllocation alloc | ||||
403 | } | ||||
404 | |||||
405 | ScriptGroupSetInput { | ||||
406 | param RsScriptGroup group | ||||
407 | param RsScriptKernelID kernel | ||||
408 | param RsAllocation alloc | ||||
409 | } | ||||
410 | |||||
411 | ScriptGroupExecute { | ||||
412 | param RsScriptGroup group | ||||
413 | } | ||||
414 | |||||
415 | |||||
416 | |||||
Jason Sams | 721acc4 | 2011-04-06 11:23:54 -0700 | [diff] [blame] | 417 | ProgramStoreCreate { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 418 | direct |
419 | param bool colorMaskR | ||||
420 | param bool colorMaskG | ||||
421 | param bool colorMaskB | ||||
422 | param bool colorMaskA | ||||
Jason Sams | 721acc4 | 2011-04-06 11:23:54 -0700 | [diff] [blame] | 423 | param bool depthMask |
424 | param bool ditherEnable | ||||
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 425 | param RsBlendSrcFunc srcFunc |
426 | param RsBlendDstFunc destFunc | ||||
Jason Sams | 721acc4 | 2011-04-06 11:23:54 -0700 | [diff] [blame] | 427 | param RsDepthFunc depthFunc |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 428 | ret RsProgramStore |
429 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 430 | |
Jason Sams | 5fd09d8 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 431 | ProgramRasterCreate { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 432 | direct |
433 | param bool pointSprite | ||||
434 | param RsCullMode cull | ||||
435 | ret RsProgramRaster | ||||
Jason Sams | 5fd09d8 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 436 | } |
437 | |||||
Jason Sams | 4815c0d | 2009-12-15 12:58:36 -0800 | [diff] [blame] | 438 | ProgramBindConstants { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 439 | param RsProgram vp |
440 | param uint32_t slot | ||||
441 | param RsAllocation constants | ||||
442 | } | ||||
Jason Sams | 4815c0d | 2009-12-15 12:58:36 -0800 | [diff] [blame] | 443 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 444 | |
Jason Sams | 7dad9c3 | 2009-12-17 16:55:08 -0800 | [diff] [blame] | 445 | ProgramBindTexture { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 446 | param RsProgramFragment pf |
447 | param uint32_t slot | ||||
448 | param RsAllocation a | ||||
449 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 450 | |
Jason Sams | 7dad9c3 | 2009-12-17 16:55:08 -0800 | [diff] [blame] | 451 | ProgramBindSampler { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 452 | param RsProgramFragment pf |
453 | param uint32_t slot | ||||
454 | param RsSampler s | ||||
455 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 456 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 457 | ProgramFragmentCreate { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 458 | direct |
459 | param const char * shaderText | ||||
460 | param const char ** textureNames | ||||
461 | param const uint32_t * params | ||||
462 | ret RsProgramFragment | ||||
463 | } | ||||
Jason Sams | f2e4fa2 | 2009-12-15 13:27:04 -0800 | [diff] [blame] | 464 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 465 | ProgramVertexCreate { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 466 | direct |
467 | param const char * shaderText | ||||
468 | param const char ** textureNames | ||||
469 | param const uint32_t * params | ||||
470 | ret RsProgramVertex | ||||
471 | } | ||||
Jason Sams | b5909ce | 2009-07-21 12:20:54 -0700 | [diff] [blame] | 472 | |
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 473 | FontCreateFromFile { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 474 | param const char *name |
475 | param float fontSize | ||||
476 | param uint32_t dpi | ||||
477 | ret RsFont | ||||
478 | } | ||||
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 479 | |
Alex Sakhartchouk | 5224a27 | 2011-01-07 11:12:08 -0800 | [diff] [blame] | 480 | FontCreateFromMemory { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 481 | param const char *name |
482 | param float fontSize | ||||
483 | param uint32_t dpi | ||||
484 | param const void *data | ||||
485 | ret RsFont | ||||
486 | } | ||||
Alex Sakhartchouk | 5224a27 | 2011-01-07 11:12:08 -0800 | [diff] [blame] | 487 | |
Alex Sakhartchouk | 4e9a7a8 | 2010-07-01 16:14:06 -0700 | [diff] [blame] | 488 | MeshCreate { |
Alex Sakhartchouk | 748eb07 | 2012-02-15 16:21:46 -0800 | [diff] [blame] | 489 | param RsAllocation *vtx |
490 | param RsAllocation *idx | ||||
491 | param uint32_t *primType | ||||
492 | ret RsMesh | ||||
493 | } | ||||
Jason Sams | 9e0afb5 | 2011-10-31 13:23:43 -0700 | [diff] [blame] | 494 | |
495 | PathCreate { | ||||
496 | param RsPathPrimitive pp | ||||
497 | param bool isStatic | ||||
498 | param RsAllocation vertex | ||||
499 | param RsAllocation loops | ||||
500 | param float quality | ||||
501 | ret RsPath | ||||
502 | } |