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