Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 1 | |
Jason Sams | 8c88090 | 2010-06-15 12:15:57 -0700 | [diff] [blame] | 2 | ContextFinish { |
3 | handcodeApi | ||||
4 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 5 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 6 | ContextBindRootScript { |
7 | param RsScript sampler | ||||
8 | } | ||||
9 | |||||
Jason Sams | ccc010b | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 10 | ContextBindProgramStore { |
11 | param RsProgramStore pgm | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 12 | } |
13 | |||||
14 | ContextBindProgramFragment { | ||||
15 | param RsProgramFragment pgm | ||||
16 | } | ||||
17 | |||||
18 | ContextBindProgramVertex { | ||||
19 | param RsProgramVertex pgm | ||||
20 | } | ||||
21 | |||||
Jason Sams | 5fd09d8 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 22 | ContextBindProgramRaster { |
23 | param RsProgramRaster pgm | ||||
24 | } | ||||
25 | |||||
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 26 | ContextBindFont { |
27 | param RsFont pgm | ||||
28 | } | ||||
29 | |||||
Jason Sams | 86f1b23 | 2009-09-24 17:38:20 -0700 | [diff] [blame] | 30 | ContextPause { |
31 | } | ||||
32 | |||||
33 | ContextResume { | ||||
34 | } | ||||
35 | |||||
Jason Sams | 458f2dc | 2009-11-03 13:58:36 -0800 | [diff] [blame] | 36 | ContextSetSurface { |
Jason Sams | 613cad1 | 2009-11-12 15:10:25 -0800 | [diff] [blame] | 37 | param uint32_t width |
38 | param uint32_t height | ||||
Dianne Hackborn | 1c769c3 | 2010-06-30 13:56:17 -0700 | [diff] [blame] | 39 | param ANativeWindow *sur |
Jason Sams | 458f2dc | 2009-11-03 13:58:36 -0800 | [diff] [blame] | 40 | } |
41 | |||||
Jason Sams | c21cf40 | 2009-11-17 17:26:46 -0800 | [diff] [blame] | 42 | ContextDump { |
43 | param int32_t bits | ||||
44 | } | ||||
45 | |||||
Jason Sams | a2cf755 | 2010-03-03 13:03:18 -0800 | [diff] [blame] | 46 | ContextGetError { |
47 | param RsError *err | ||||
48 | ret const char * | ||||
49 | } | ||||
50 | |||||
Jason Sams | 613cad1 | 2009-11-12 15:10:25 -0800 | [diff] [blame] | 51 | ContextSetPriority { |
Jason Sams | 1583244 | 2009-11-15 12:14:26 -0800 | [diff] [blame] | 52 | param int32_t priority |
Jason Sams | 613cad1 | 2009-11-12 15:10:25 -0800 | [diff] [blame] | 53 | } |
54 | |||||
Jason Sams | a0a1b6f | 2009-06-10 15:04:38 -0700 | [diff] [blame] | 55 | AssignName { |
56 | param void *obj | ||||
57 | param const char *name | ||||
Jason Sams | a4a54e4 | 2009-06-10 18:39:40 -0700 | [diff] [blame] | 58 | param size_t len |
Jason Sams | a0a1b6f | 2009-06-10 15:04:38 -0700 | [diff] [blame] | 59 | } |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 60 | |
Alex Sakhartchouk | 9fc9f03 | 2010-08-04 14:45:48 -0700 | [diff] [blame] | 61 | GetName { |
62 | param void *obj | ||||
63 | param const char **name | ||||
64 | } | ||||
65 | |||||
Jason Sams | 707aaf3 | 2009-08-18 14:14:24 -0700 | [diff] [blame] | 66 | ObjDestroy { |
Jason Sams | 2353ae3 | 2010-10-14 17:48:46 -0700 | [diff] [blame] | 67 | param RsAsyncVoidPtr objPtr |
Jason Sams | 707aaf3 | 2009-08-18 14:14:24 -0700 | [diff] [blame] | 68 | } |
69 | |||||
Jason Sams | d01d970 | 2009-12-23 14:35:29 -0800 | [diff] [blame] | 70 | ElementCreate { |
71 | param RsDataType mType | ||||
72 | param RsDataKind mKind | ||||
73 | param bool mNormalized | ||||
74 | param uint32_t mVectorSize | ||||
75 | ret RsElement | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 76 | } |
77 | |||||
Jason Sams | d01d970 | 2009-12-23 14:35:29 -0800 | [diff] [blame] | 78 | ElementCreate2 { |
79 | param size_t count | ||||
80 | param const RsElement * elements | ||||
81 | param const char ** names | ||||
82 | param const size_t * nameLengths | ||||
Jason Sams | 46e4554 | 2010-09-02 17:35:23 -0700 | [diff] [blame] | 83 | param const uint32_t * arraySize |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 84 | ret RsElement |
85 | } | ||||
86 | |||||
Alex Sakhartchouk | 417e6a4 | 2010-07-15 11:33:03 -0700 | [diff] [blame] | 87 | ElementGetNativeData { |
88 | param RsElement elem | ||||
89 | param uint32_t *elemData | ||||
90 | param uint32_t elemDataSize | ||||
91 | } | ||||
92 | |||||
93 | ElementGetSubElements { | ||||
94 | param RsElement elem | ||||
95 | param uint32_t *ids | ||||
96 | param const char **names | ||||
97 | param uint32_t dataSize | ||||
98 | } | ||||
99 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 100 | |
Alex Sakhartchouk | 417e6a4 | 2010-07-15 11:33:03 -0700 | [diff] [blame] | 101 | TypeGetNativeData { |
102 | param RsType type | ||||
103 | param uint32_t * typeData | ||||
104 | param uint32_t typeDataSize | ||||
105 | } | ||||
106 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 107 | AllocationCreateTyped { |
108 | param RsType type | ||||
109 | ret RsAllocation | ||||
110 | } | ||||
111 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 112 | AllocationCreateSized { |
113 | param RsElement e | ||||
114 | param size_t count | ||||
115 | ret RsAllocation | ||||
116 | } | ||||
117 | |||||
Alex Sakhartchouk | 39f2ef6 | 2010-10-11 12:35:15 -0700 | [diff] [blame] | 118 | AllocationUpdateFromBitmap { |
119 | param RsAllocation alloc | ||||
120 | param RsElement srcFmt | ||||
121 | param const void * data | ||||
122 | } | ||||
123 | |||||
Jason Sams | fa84da2 | 2010-03-01 15:31:04 -0800 | [diff] [blame] | 124 | AllocationCreateBitmapRef { |
125 | param RsType type | ||||
Jason Sams | 2353ae3 | 2010-10-14 17:48:46 -0700 | [diff] [blame] | 126 | param RsAsyncVoidPtr bmpPtr |
127 | param RsAsyncVoidPtr callbackData | ||||
Jason Sams | fa84da2 | 2010-03-01 15:31:04 -0800 | [diff] [blame] | 128 | param RsBitmapCallback_t callback |
129 | ret RsAllocation | ||||
130 | } | ||||
131 | |||||
Jason Sams | 6678e9b | 2009-05-27 14:45:32 -0700 | [diff] [blame] | 132 | AllocationCreateFromBitmap { |
133 | param uint32_t width | ||||
134 | param uint32_t height | ||||
Jason Sams | a57c0a7 | 2009-09-04 14:42:41 -0700 | [diff] [blame] | 135 | param RsElement dstFmt |
136 | param RsElement srcFmt | ||||
Jason Sams | 6678e9b | 2009-05-27 14:45:32 -0700 | [diff] [blame] | 137 | param bool genMips |
138 | param const void * data | ||||
139 | ret RsAllocation | ||||
140 | } | ||||
141 | |||||
142 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 143 | AllocationUploadToTexture { |
144 | param RsAllocation alloc | ||||
Jason Sams | 7fabe1a | 2010-02-23 17:44:28 -0800 | [diff] [blame] | 145 | param bool genMipMaps |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 146 | param uint32_t baseMipLevel |
147 | } | ||||
148 | |||||
149 | AllocationUploadToBufferObject { | ||||
150 | param RsAllocation alloc | ||||
151 | } | ||||
152 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 153 | |
154 | AllocationData { | ||||
155 | param RsAllocation va | ||||
156 | param const void * data | ||||
Jason Sams | 9397e30 | 2009-08-27 20:23:34 -0700 | [diff] [blame] | 157 | param uint32_t bytes |
158 | handcodeApi | ||||
159 | togglePlay | ||||
Jason Sams | d34b725 | 2009-08-04 16:58:20 -0700 | [diff] [blame] | 160 | } |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 161 | |
162 | Allocation1DSubData { | ||||
163 | param RsAllocation va | ||||
164 | param uint32_t xoff | ||||
165 | param uint32_t count | ||||
166 | param const void *data | ||||
Jason Sams | 9397e30 | 2009-08-27 20:23:34 -0700 | [diff] [blame] | 167 | param uint32_t bytes |
168 | handcodeApi | ||||
169 | togglePlay | ||||
Jason Sams | d34b725 | 2009-08-04 16:58:20 -0700 | [diff] [blame] | 170 | } |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 171 | |
Jason Sams | 5f0c84c | 2010-08-31 13:50:42 -0700 | [diff] [blame] | 172 | Allocation1DSubElementData { |
173 | param RsAllocation va | ||||
174 | param uint32_t x | ||||
175 | param const void *data | ||||
176 | param uint32_t comp_offset | ||||
177 | param uint32_t bytes | ||||
178 | handcodeApi | ||||
179 | togglePlay | ||||
180 | } | ||||
181 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 182 | Allocation2DSubData { |
183 | param RsAllocation va | ||||
184 | param uint32_t xoff | ||||
185 | param uint32_t yoff | ||||
186 | param uint32_t w | ||||
187 | param uint32_t h | ||||
188 | param const void *data | ||||
Jason Sams | 9397e30 | 2009-08-27 20:23:34 -0700 | [diff] [blame] | 189 | param uint32_t bytes |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 190 | } |
191 | |||||
Jason Sams | 5f0c84c | 2010-08-31 13:50:42 -0700 | [diff] [blame] | 192 | Allocation2DSubElementData { |
193 | param RsAllocation va | ||||
194 | param uint32_t x | ||||
195 | param uint32_t y | ||||
196 | param const void *data | ||||
197 | param uint32_t element_offset | ||||
198 | param uint32_t bytes | ||||
199 | } | ||||
200 | |||||
Jason Sams | e579df4 | 2009-08-10 14:55:26 -0700 | [diff] [blame] | 201 | AllocationRead { |
202 | param RsAllocation va | ||||
203 | param void * data | ||||
204 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 205 | |
206 | Adapter1DCreate { | ||||
207 | ret RsAdapter1D | ||||
208 | } | ||||
209 | |||||
210 | Adapter1DBindAllocation { | ||||
211 | param RsAdapter1D adapt | ||||
212 | param RsAllocation alloc | ||||
213 | } | ||||
214 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 215 | Adapter1DSetConstraint { |
216 | param RsAdapter1D adapter | ||||
217 | param RsDimension dim | ||||
218 | param uint32_t value | ||||
219 | } | ||||
220 | |||||
221 | Adapter1DData { | ||||
222 | param RsAdapter1D adapter | ||||
223 | param const void * data | ||||
Jason Sams | d34b725 | 2009-08-04 16:58:20 -0700 | [diff] [blame] | 224 | } |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 225 | |
226 | Adapter1DSubData { | ||||
227 | param RsAdapter1D adapter | ||||
228 | param uint32_t xoff | ||||
229 | param uint32_t count | ||||
230 | param const void *data | ||||
Jason Sams | d34b725 | 2009-08-04 16:58:20 -0700 | [diff] [blame] | 231 | } |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 232 | |
233 | Adapter2DCreate { | ||||
234 | ret RsAdapter2D | ||||
235 | } | ||||
236 | |||||
237 | Adapter2DBindAllocation { | ||||
238 | param RsAdapter2D adapt | ||||
239 | param RsAllocation alloc | ||||
240 | } | ||||
241 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 242 | Adapter2DSetConstraint { |
243 | param RsAdapter2D adapter | ||||
244 | param RsDimension dim | ||||
245 | param uint32_t value | ||||
246 | } | ||||
247 | |||||
248 | Adapter2DData { | ||||
249 | param RsAdapter2D adapter | ||||
250 | param const void *data | ||||
Jason Sams | d34b725 | 2009-08-04 16:58:20 -0700 | [diff] [blame] | 251 | } |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 252 | |
253 | Adapter2DSubData { | ||||
254 | param RsAdapter2D adapter | ||||
255 | param uint32_t xoff | ||||
256 | param uint32_t yoff | ||||
257 | param uint32_t w | ||||
258 | param uint32_t h | ||||
259 | param const void *data | ||||
260 | } | ||||
261 | |||||
Alex Sakhartchouk | 417e6a4 | 2010-07-15 11:33:03 -0700 | [diff] [blame] | 262 | AllocationGetType { |
263 | param RsAllocation va | ||||
264 | ret const void* | ||||
265 | } | ||||
266 | |||||
Jason Sams | 96abf81 | 2010-10-05 13:32:49 -0700 | [diff] [blame] | 267 | AllocationResize1D { |
268 | param RsAllocation va | ||||
269 | param uint32_t dimX | ||||
270 | } | ||||
271 | |||||
272 | AllocationResize2D { | ||||
273 | param RsAllocation va | ||||
274 | param uint32_t dimX | ||||
275 | param uint32_t dimY | ||||
276 | } | ||||
277 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 278 | SamplerBegin { |
279 | } | ||||
280 | |||||
281 | SamplerSet { | ||||
282 | param RsSamplerParam p | ||||
283 | param RsSamplerValue value | ||||
284 | } | ||||
285 | |||||
Alex Sakhartchouk | 1103d8e | 2010-09-30 11:36:37 -0700 | [diff] [blame] | 286 | SamplerSet2 { |
287 | param RsSamplerParam p | ||||
288 | param float value | ||||
289 | } | ||||
290 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 291 | SamplerCreate { |
292 | ret RsSampler | ||||
293 | } | ||||
294 | |||||
295 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 296 | |
297 | ScriptBindAllocation { | ||||
298 | param RsScript vtm | ||||
299 | param RsAllocation va | ||||
300 | param uint32_t slot | ||||
301 | } | ||||
302 | |||||
303 | |||||
304 | ScriptCBegin { | ||||
305 | } | ||||
306 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 307 | |
Jason Sams | d34b725 | 2009-08-04 16:58:20 -0700 | [diff] [blame] | 308 | ScriptSetTimeZone { |
309 | param RsScript s | ||||
Romain Guy | 98e10fd | 2009-07-30 18:45:01 -0700 | [diff] [blame] | 310 | param const char * timeZone |
311 | param uint32_t length | ||||
312 | } | ||||
313 | |||||
Jason Sams | 8c6bc69 | 2009-09-16 15:04:38 -0700 | [diff] [blame] | 314 | |
315 | ScriptInvoke { | ||||
316 | param RsScript s | ||||
317 | param uint32_t slot | ||||
318 | } | ||||
319 | |||||
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 320 | ScriptInvokeV { |
321 | param RsScript s | ||||
322 | param uint32_t slot | ||||
323 | param const void * data | ||||
324 | param uint32_t dataLen | ||||
325 | handcodeApi | ||||
326 | togglePlay | ||||
327 | } | ||||
328 | |||||
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 329 | ScriptSetVarI { |
330 | param RsScript s | ||||
331 | param uint32_t slot | ||||
332 | param int value | ||||
333 | } | ||||
334 | |||||
Stephen Hines | 0977c94 | 2010-10-11 10:54:21 -0700 | [diff] [blame] | 335 | ScriptSetVarJ { |
336 | param RsScript s | ||||
337 | param uint32_t slot | ||||
338 | param int64_t value | ||||
339 | } | ||||
340 | |||||
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 341 | ScriptSetVarF { |
342 | param RsScript s | ||||
343 | param uint32_t slot | ||||
344 | param float value | ||||
345 | } | ||||
346 | |||||
Stephen Hines | 6d0a074 | 2010-09-20 17:20:30 -0700 | [diff] [blame] | 347 | ScriptSetVarD { |
348 | param RsScript s | ||||
349 | param uint32_t slot | ||||
350 | param double value | ||||
351 | } | ||||
352 | |||||
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 353 | ScriptSetVarV { |
354 | param RsScript s | ||||
355 | param uint32_t slot | ||||
356 | param const void * data | ||||
357 | param uint32_t dataLen | ||||
358 | handcodeApi | ||||
359 | togglePlay | ||||
360 | } | ||||
Jason Sams | fa51719 | 2009-08-13 12:59:04 -0700 | [diff] [blame] | 361 | |
362 | |||||
Jason Sams | 1f52633 | 2009-06-05 17:35:09 -0700 | [diff] [blame] | 363 | ScriptCSetText { |
364 | param const char * text | ||||
365 | param uint32_t length | ||||
366 | } | ||||
367 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 368 | ScriptCCreate { |
369 | ret RsScript | ||||
370 | } | ||||
371 | |||||
372 | |||||
Jason Sams | ccc010b | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 373 | ProgramStoreBegin { |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 374 | param RsElement in |
375 | param RsElement out | ||||
376 | } | ||||
377 | |||||
Jason Sams | ccc010b | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 378 | ProgramStoreColorMask { |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 379 | param bool r |
380 | param bool g | ||||
381 | param bool b | ||||
382 | param bool a | ||||
383 | } | ||||
384 | |||||
Jason Sams | ccc010b | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 385 | ProgramStoreBlendFunc { |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 386 | param RsBlendSrcFunc srcFunc |
387 | param RsBlendDstFunc destFunc | ||||
388 | } | ||||
389 | |||||
Jason Sams | ccc010b | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 390 | ProgramStoreDepthMask { |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 391 | param bool enable |
392 | } | ||||
393 | |||||
Jason Sams | ccc010b | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 394 | ProgramStoreDither { |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 395 | param bool enable |
396 | } | ||||
397 | |||||
Jason Sams | ccc010b | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 398 | ProgramStoreDepthFunc { |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 399 | param RsDepthFunc func |
400 | } | ||||
401 | |||||
Jason Sams | ccc010b | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 402 | ProgramStoreCreate { |
403 | ret RsProgramStore | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 404 | } |
405 | |||||
Jason Sams | 5fd09d8 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 406 | ProgramRasterCreate { |
Jason Sams | 5fd09d8 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 407 | param bool pointSmooth |
408 | param bool lineSmooth | ||||
409 | param bool pointSprite | ||||
410 | ret RsProgramRaster | ||||
411 | } | ||||
412 | |||||
413 | ProgramRasterSetLineWidth { | ||||
414 | param RsProgramRaster pr | ||||
415 | param float lw | ||||
416 | } | ||||
417 | |||||
Alex Sakhartchouk | d18c744 | 2010-07-12 15:50:32 -0700 | [diff] [blame] | 418 | ProgramRasterSetCullMode { |
419 | param RsProgramRaster pr | ||||
420 | param RsCullMode mode | ||||
421 | } | ||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 422 | |
Jason Sams | 4815c0d | 2009-12-15 12:58:36 -0800 | [diff] [blame] | 423 | ProgramBindConstants { |
424 | param RsProgram vp | ||||
425 | param uint32_t slot | ||||
426 | param RsAllocation constants | ||||
427 | } | ||||
428 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 429 | |
Jason Sams | 7dad9c3 | 2009-12-17 16:55:08 -0800 | [diff] [blame] | 430 | ProgramBindTexture { |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 431 | param RsProgramFragment pf |
432 | param uint32_t slot | ||||
433 | param RsAllocation a | ||||
434 | } | ||||
435 | |||||
Jason Sams | 7dad9c3 | 2009-12-17 16:55:08 -0800 | [diff] [blame] | 436 | ProgramBindSampler { |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 437 | param RsProgramFragment pf |
438 | param uint32_t slot | ||||
439 | param RsSampler s | ||||
440 | } | ||||
441 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 442 | ProgramFragmentCreate { |
Jason Sams | f2e4fa2 | 2009-12-15 13:27:04 -0800 | [diff] [blame] | 443 | param const char * shaderText |
444 | param uint32_t shaderLength | ||||
445 | param const uint32_t * params | ||||
446 | param uint32_t paramLength | ||||
447 | ret RsProgramFragment | ||||
448 | } | ||||
449 | |||||
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 450 | ProgramVertexCreate { |
Jason Sams | 4815c0d | 2009-12-15 12:58:36 -0800 | [diff] [blame] | 451 | param const char * shaderText |
452 | param uint32_t shaderLength | ||||
453 | param const uint32_t * params | ||||
454 | param uint32_t paramLength | ||||
Jason Sams | f2e4fa2 | 2009-12-15 13:27:04 -0800 | [diff] [blame] | 455 | ret RsProgramVertex |
Jason Sams | b5909ce | 2009-07-21 12:20:54 -0700 | [diff] [blame] | 456 | } |
457 | |||||
Alex Sakhartchouk | b825f67 | 2010-06-04 10:06:50 -0700 | [diff] [blame] | 458 | FileA3DCreateFromAssetStream { |
459 | param const void * data | ||||
460 | param size_t len | ||||
461 | ret RsFile | ||||
462 | } | ||||
463 | |||||
Jason Sams | a5597fc | 2009-07-08 18:01:53 -0700 | [diff] [blame] | 464 | FileOpen { |
465 | ret RsFile | ||||
466 | param const char *name | ||||
467 | param size_t len | ||||
468 | } | ||||
469 | |||||
Alex Sakhartchouk | b825f67 | 2010-06-04 10:06:50 -0700 | [diff] [blame] | 470 | FileA3DGetNumIndexEntries { |
471 | param int32_t * numEntries | ||||
472 | param RsFile file | ||||
473 | } | ||||
474 | |||||
475 | FileA3DGetIndexEntries { | ||||
476 | param RsFileIndexEntry * fileEntries | ||||
477 | param uint32_t numEntries | ||||
478 | param RsFile fileA3D | ||||
479 | } | ||||
480 | |||||
481 | FileA3DGetEntryByIndex { | ||||
482 | param uint32_t index | ||||
483 | param RsFile file | ||||
484 | ret RsObjectBase | ||||
485 | } | ||||
Jason Sams | a5597fc | 2009-07-08 18:01:53 -0700 | [diff] [blame] | 486 | |
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 487 | FontCreateFromFile { |
488 | param const char *name | ||||
489 | param uint32_t fontSize | ||||
490 | param uint32_t dpi | ||||
491 | ret RsFont | ||||
492 | } | ||||
493 | |||||
Alex Sakhartchouk | 4e9a7a8 | 2010-07-01 16:14:06 -0700 | [diff] [blame] | 494 | MeshCreate { |
495 | ret RsMesh | ||||
496 | param uint32_t vtxCount | ||||
497 | param uint32_t idxCount | ||||
498 | } | ||||
499 | |||||
500 | MeshBindIndex { | ||||
501 | param RsMesh mesh | ||||
502 | param RsAllocation idx | ||||
503 | param uint32_t primType | ||||
504 | param uint32_t slot | ||||
505 | } | ||||
506 | |||||
Alex Sakhartchouk | 4e9a7a8 | 2010-07-01 16:14:06 -0700 | [diff] [blame] | 507 | MeshBindVertex { |
508 | param RsMesh mesh | ||||
509 | param RsAllocation vtx | ||||
510 | param uint32_t slot | ||||
511 | } | ||||
512 | |||||
Alex Sakhartchouk | d18c744 | 2010-07-12 15:50:32 -0700 | [diff] [blame] | 513 | MeshGetVertexBufferCount { |
514 | param RsMesh mesh | ||||
515 | param int32_t *numVtx | ||||
516 | } | ||||
517 | |||||
518 | MeshGetIndexCount { | ||||
519 | param RsMesh mesh | ||||
520 | param int32_t *numIdx | ||||
521 | } | ||||
522 | |||||
523 | MeshGetVertices { | ||||
524 | param RsMesh mv | ||||
525 | param RsAllocation *vtxData | ||||
526 | param uint32_t vtxDataCount | ||||
527 | } | ||||
528 | |||||
529 | MeshGetIndices { | ||||
530 | param RsMesh mv | ||||
531 | param RsAllocation *va | ||||
532 | param uint32_t *primType | ||||
533 | param uint32_t idxDataCount | ||||
534 | } | ||||
535 | |||||
Jason Sams | c1ed589 | 2010-03-10 17:30:41 -0800 | [diff] [blame] | 536 | AnimationCreate { |
537 | param const float *inValues | ||||
538 | param const float *outValues | ||||
539 | param uint32_t valueCount | ||||
540 | param RsAnimationInterpolation interp | ||||
541 | param RsAnimationEdge pre | ||||
542 | param RsAnimationEdge post | ||||
543 | ret RsAnimation | ||||
544 | } | ||||
545 |