blob: eb2942e7aafdc884bde4c75baac3a1f2c7e69fd1 [file] [log] [blame]
Jason Sams326e0dd2009-05-22 14:03:28 -07001
Jason Sams8c880902010-06-15 12:15:57 -07002ContextFinish {
3 handcodeApi
4 }
Jason Sams326e0dd2009-05-22 14:03:28 -07005
Jason Sams326e0dd2009-05-22 14:03:28 -07006ContextBindRootScript {
7 param RsScript sampler
8 }
9
Jason Samsccc010b2010-05-13 18:30:11 -070010ContextBindProgramStore {
11 param RsProgramStore pgm
Jason Sams326e0dd2009-05-22 14:03:28 -070012 }
13
14ContextBindProgramFragment {
15 param RsProgramFragment pgm
16 }
17
18ContextBindProgramVertex {
19 param RsProgramVertex pgm
20 }
21
Jason Sams5fd09d82009-09-23 13:57:02 -070022ContextBindProgramRaster {
23 param RsProgramRaster pgm
24 }
25
Alex Sakhartchoukd3e0ad42010-06-24 17:15:34 -070026ContextBindFont {
27 param RsFont pgm
28 }
29
Jason Sams86f1b232009-09-24 17:38:20 -070030ContextPause {
31 }
32
33ContextResume {
34 }
35
Jason Sams458f2dc2009-11-03 13:58:36 -080036ContextSetSurface {
Jason Sams613cad12009-11-12 15:10:25 -080037 param uint32_t width
38 param uint32_t height
Dianne Hackborn1c769c32010-06-30 13:56:17 -070039 param ANativeWindow *sur
Jason Sams458f2dc2009-11-03 13:58:36 -080040 }
41
Jason Samsc21cf402009-11-17 17:26:46 -080042ContextDump {
43 param int32_t bits
44}
45
Jason Samsa2cf7552010-03-03 13:03:18 -080046ContextGetError {
47 param RsError *err
48 ret const char *
49 }
50
Jason Sams613cad12009-11-12 15:10:25 -080051ContextSetPriority {
Jason Sams15832442009-11-15 12:14:26 -080052 param int32_t priority
Jason Sams613cad12009-11-12 15:10:25 -080053 }
54
Jason Samsa0a1b6f2009-06-10 15:04:38 -070055AssignName {
56 param void *obj
57 param const char *name
Jason Samsa4a54e42009-06-10 18:39:40 -070058 param size_t len
Jason Samsa0a1b6f2009-06-10 15:04:38 -070059 }
Jason Sams326e0dd2009-05-22 14:03:28 -070060
Alex Sakhartchouk9fc9f032010-08-04 14:45:48 -070061GetName {
62 param void *obj
63 param const char **name
64 }
65
Jason Sams707aaf32009-08-18 14:14:24 -070066ObjDestroy {
Jason Sams2353ae32010-10-14 17:48:46 -070067 param RsAsyncVoidPtr objPtr
Jason Sams707aaf32009-08-18 14:14:24 -070068 }
69
Jason Samsd01d9702009-12-23 14:35:29 -080070ElementCreate {
71 param RsDataType mType
72 param RsDataKind mKind
73 param bool mNormalized
74 param uint32_t mVectorSize
75 ret RsElement
Jason Sams326e0dd2009-05-22 14:03:28 -070076 }
77
Jason Samsd01d9702009-12-23 14:35:29 -080078ElementCreate2 {
79 param size_t count
80 param const RsElement * elements
81 param const char ** names
82 param const size_t * nameLengths
Jason Sams46e45542010-09-02 17:35:23 -070083 param const uint32_t * arraySize
Jason Sams326e0dd2009-05-22 14:03:28 -070084 ret RsElement
85 }
86
Alex Sakhartchouk417e6a42010-07-15 11:33:03 -070087ElementGetNativeData {
88 param RsElement elem
89 param uint32_t *elemData
90 param uint32_t elemDataSize
91 }
92
93ElementGetSubElements {
94 param RsElement elem
95 param uint32_t *ids
96 param const char **names
97 param uint32_t dataSize
98 }
99
Jason Sams326e0dd2009-05-22 14:03:28 -0700100
Alex Sakhartchouk417e6a42010-07-15 11:33:03 -0700101TypeGetNativeData {
102 param RsType type
103 param uint32_t * typeData
104 param uint32_t typeDataSize
105 }
106
Jason Sams326e0dd2009-05-22 14:03:28 -0700107AllocationCreateTyped {
108 param RsType type
109 ret RsAllocation
110 }
111
Jason Sams326e0dd2009-05-22 14:03:28 -0700112AllocationCreateSized {
113 param RsElement e
114 param size_t count
115 ret RsAllocation
116 }
117
Alex Sakhartchouk39f2ef62010-10-11 12:35:15 -0700118AllocationUpdateFromBitmap {
119 param RsAllocation alloc
120 param RsElement srcFmt
121 param const void * data
122 }
123
Jason Samsfa84da22010-03-01 15:31:04 -0800124AllocationCreateBitmapRef {
125 param RsType type
Jason Sams2353ae32010-10-14 17:48:46 -0700126 param RsAsyncVoidPtr bmpPtr
127 param RsAsyncVoidPtr callbackData
Jason Samsfa84da22010-03-01 15:31:04 -0800128 param RsBitmapCallback_t callback
129 ret RsAllocation
130 }
131
Jason Sams6678e9b2009-05-27 14:45:32 -0700132AllocationCreateFromBitmap {
133 param uint32_t width
134 param uint32_t height
Jason Samsa57c0a72009-09-04 14:42:41 -0700135 param RsElement dstFmt
136 param RsElement srcFmt
Jason Sams6678e9b2009-05-27 14:45:32 -0700137 param bool genMips
138 param const void * data
139 ret RsAllocation
140 }
141
142
Jason Sams326e0dd2009-05-22 14:03:28 -0700143AllocationUploadToTexture {
144 param RsAllocation alloc
Jason Sams7fabe1a2010-02-23 17:44:28 -0800145 param bool genMipMaps
Jason Sams326e0dd2009-05-22 14:03:28 -0700146 param uint32_t baseMipLevel
147 }
148
149AllocationUploadToBufferObject {
150 param RsAllocation alloc
151 }
152
Jason Sams326e0dd2009-05-22 14:03:28 -0700153
154AllocationData {
155 param RsAllocation va
156 param const void * data
Jason Sams9397e302009-08-27 20:23:34 -0700157 param uint32_t bytes
158 handcodeApi
159 togglePlay
Jason Samsd34b7252009-08-04 16:58:20 -0700160 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700161
162Allocation1DSubData {
163 param RsAllocation va
164 param uint32_t xoff
165 param uint32_t count
166 param const void *data
Jason Sams9397e302009-08-27 20:23:34 -0700167 param uint32_t bytes
168 handcodeApi
169 togglePlay
Jason Samsd34b7252009-08-04 16:58:20 -0700170 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700171
Jason Sams5f0c84c2010-08-31 13:50:42 -0700172Allocation1DSubElementData {
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 Sams326e0dd2009-05-22 14:03:28 -0700182Allocation2DSubData {
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 Sams9397e302009-08-27 20:23:34 -0700189 param uint32_t bytes
Jason Sams326e0dd2009-05-22 14:03:28 -0700190 }
191
Jason Sams5f0c84c2010-08-31 13:50:42 -0700192Allocation2DSubElementData {
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 Samse579df42009-08-10 14:55:26 -0700201AllocationRead {
202 param RsAllocation va
203 param void * data
204 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700205
206Adapter1DCreate {
207 ret RsAdapter1D
208 }
209
210Adapter1DBindAllocation {
211 param RsAdapter1D adapt
212 param RsAllocation alloc
213 }
214
Jason Sams326e0dd2009-05-22 14:03:28 -0700215Adapter1DSetConstraint {
216 param RsAdapter1D adapter
217 param RsDimension dim
218 param uint32_t value
219 }
220
221Adapter1DData {
222 param RsAdapter1D adapter
223 param const void * data
Jason Samsd34b7252009-08-04 16:58:20 -0700224 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700225
226Adapter1DSubData {
227 param RsAdapter1D adapter
228 param uint32_t xoff
229 param uint32_t count
230 param const void *data
Jason Samsd34b7252009-08-04 16:58:20 -0700231 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700232
233Adapter2DCreate {
234 ret RsAdapter2D
235 }
236
237Adapter2DBindAllocation {
238 param RsAdapter2D adapt
239 param RsAllocation alloc
240 }
241
Jason Sams326e0dd2009-05-22 14:03:28 -0700242Adapter2DSetConstraint {
243 param RsAdapter2D adapter
244 param RsDimension dim
245 param uint32_t value
246 }
247
248Adapter2DData {
249 param RsAdapter2D adapter
250 param const void *data
Jason Samsd34b7252009-08-04 16:58:20 -0700251 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700252
253Adapter2DSubData {
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 Sakhartchouk417e6a42010-07-15 11:33:03 -0700262AllocationGetType {
263 param RsAllocation va
264 ret const void*
265 }
266
Jason Sams96abf812010-10-05 13:32:49 -0700267AllocationResize1D {
268 param RsAllocation va
269 param uint32_t dimX
270 }
271
272AllocationResize2D {
273 param RsAllocation va
274 param uint32_t dimX
275 param uint32_t dimY
276 }
277
Jason Sams326e0dd2009-05-22 14:03:28 -0700278SamplerBegin {
279 }
280
281SamplerSet {
282 param RsSamplerParam p
283 param RsSamplerValue value
284 }
285
Alex Sakhartchouk1103d8e2010-09-30 11:36:37 -0700286SamplerSet2 {
287 param RsSamplerParam p
288 param float value
289 }
290
Jason Sams326e0dd2009-05-22 14:03:28 -0700291SamplerCreate {
292 ret RsSampler
293 }
294
295
Jason Sams326e0dd2009-05-22 14:03:28 -0700296
297ScriptBindAllocation {
298 param RsScript vtm
299 param RsAllocation va
300 param uint32_t slot
301 }
302
303
304ScriptCBegin {
305 }
306
Jason Sams326e0dd2009-05-22 14:03:28 -0700307
Jason Samsd34b7252009-08-04 16:58:20 -0700308ScriptSetTimeZone {
309 param RsScript s
Romain Guy98e10fd2009-07-30 18:45:01 -0700310 param const char * timeZone
311 param uint32_t length
312 }
313
Jason Sams8c6bc692009-09-16 15:04:38 -0700314
315ScriptInvoke {
316 param RsScript s
317 param uint32_t slot
318 }
319
Jason Samsbe36bf32010-05-11 14:03:58 -0700320ScriptInvokeV {
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 Samsbe36bf32010-05-11 14:03:58 -0700329ScriptSetVarI {
330 param RsScript s
331 param uint32_t slot
332 param int value
333 }
334
Stephen Hines0977c942010-10-11 10:54:21 -0700335ScriptSetVarJ {
336 param RsScript s
337 param uint32_t slot
338 param int64_t value
339 }
340
Jason Samsbe36bf32010-05-11 14:03:58 -0700341ScriptSetVarF {
342 param RsScript s
343 param uint32_t slot
344 param float value
345 }
346
Stephen Hines6d0a0742010-09-20 17:20:30 -0700347ScriptSetVarD {
348 param RsScript s
349 param uint32_t slot
350 param double value
351 }
352
Jason Samsbe36bf32010-05-11 14:03:58 -0700353ScriptSetVarV {
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 Samsfa517192009-08-13 12:59:04 -0700361
362
Jason Sams1f526332009-06-05 17:35:09 -0700363ScriptCSetText {
364 param const char * text
365 param uint32_t length
366 }
367
Jason Sams326e0dd2009-05-22 14:03:28 -0700368ScriptCCreate {
369 ret RsScript
370 }
371
372
Jason Samsccc010b2010-05-13 18:30:11 -0700373ProgramStoreBegin {
Jason Sams326e0dd2009-05-22 14:03:28 -0700374 param RsElement in
375 param RsElement out
376 }
377
Jason Samsccc010b2010-05-13 18:30:11 -0700378ProgramStoreColorMask {
Jason Sams326e0dd2009-05-22 14:03:28 -0700379 param bool r
380 param bool g
381 param bool b
382 param bool a
383 }
384
Jason Samsccc010b2010-05-13 18:30:11 -0700385ProgramStoreBlendFunc {
Jason Sams326e0dd2009-05-22 14:03:28 -0700386 param RsBlendSrcFunc srcFunc
387 param RsBlendDstFunc destFunc
388 }
389
Jason Samsccc010b2010-05-13 18:30:11 -0700390ProgramStoreDepthMask {
Jason Sams326e0dd2009-05-22 14:03:28 -0700391 param bool enable
392}
393
Jason Samsccc010b2010-05-13 18:30:11 -0700394ProgramStoreDither {
Jason Sams326e0dd2009-05-22 14:03:28 -0700395 param bool enable
396}
397
Jason Samsccc010b2010-05-13 18:30:11 -0700398ProgramStoreDepthFunc {
Jason Sams326e0dd2009-05-22 14:03:28 -0700399 param RsDepthFunc func
400}
401
Jason Samsccc010b2010-05-13 18:30:11 -0700402ProgramStoreCreate {
403 ret RsProgramStore
Jason Sams326e0dd2009-05-22 14:03:28 -0700404 }
405
Jason Sams5fd09d82009-09-23 13:57:02 -0700406ProgramRasterCreate {
Jason Sams5fd09d82009-09-23 13:57:02 -0700407 param bool pointSmooth
408 param bool lineSmooth
409 param bool pointSprite
410 ret RsProgramRaster
411}
412
413ProgramRasterSetLineWidth {
414 param RsProgramRaster pr
415 param float lw
416}
417
Alex Sakhartchoukd18c7442010-07-12 15:50:32 -0700418ProgramRasterSetCullMode {
419 param RsProgramRaster pr
420 param RsCullMode mode
421}
Jason Sams326e0dd2009-05-22 14:03:28 -0700422
Jason Sams4815c0d2009-12-15 12:58:36 -0800423ProgramBindConstants {
424 param RsProgram vp
425 param uint32_t slot
426 param RsAllocation constants
427 }
428
Jason Sams326e0dd2009-05-22 14:03:28 -0700429
Jason Sams7dad9c32009-12-17 16:55:08 -0800430ProgramBindTexture {
Jason Sams326e0dd2009-05-22 14:03:28 -0700431 param RsProgramFragment pf
432 param uint32_t slot
433 param RsAllocation a
434 }
435
Jason Sams7dad9c32009-12-17 16:55:08 -0800436ProgramBindSampler {
Jason Sams326e0dd2009-05-22 14:03:28 -0700437 param RsProgramFragment pf
438 param uint32_t slot
439 param RsSampler s
440 }
441
Jason Sams326e0dd2009-05-22 14:03:28 -0700442ProgramFragmentCreate {
Jason Samsf2e4fa22009-12-15 13:27:04 -0800443 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 Sams326e0dd2009-05-22 14:03:28 -0700450ProgramVertexCreate {
Jason Sams4815c0d2009-12-15 12:58:36 -0800451 param const char * shaderText
452 param uint32_t shaderLength
453 param const uint32_t * params
454 param uint32_t paramLength
Jason Samsf2e4fa22009-12-15 13:27:04 -0800455 ret RsProgramVertex
Jason Samsb5909ce2009-07-21 12:20:54 -0700456 }
457
Alex Sakhartchoukb825f672010-06-04 10:06:50 -0700458FileA3DCreateFromAssetStream {
459 param const void * data
460 param size_t len
461 ret RsFile
462 }
463
Jason Samsa5597fc2009-07-08 18:01:53 -0700464FileOpen {
465 ret RsFile
466 param const char *name
467 param size_t len
468 }
469
Alex Sakhartchoukb825f672010-06-04 10:06:50 -0700470FileA3DGetNumIndexEntries {
471 param int32_t * numEntries
472 param RsFile file
473 }
474
475FileA3DGetIndexEntries {
476 param RsFileIndexEntry * fileEntries
477 param uint32_t numEntries
478 param RsFile fileA3D
479 }
480
481FileA3DGetEntryByIndex {
482 param uint32_t index
483 param RsFile file
484 ret RsObjectBase
485 }
Jason Samsa5597fc2009-07-08 18:01:53 -0700486
Alex Sakhartchoukd3e0ad42010-06-24 17:15:34 -0700487FontCreateFromFile {
488 param const char *name
489 param uint32_t fontSize
490 param uint32_t dpi
491 ret RsFont
492 }
493
Alex Sakhartchouk4e9a7a82010-07-01 16:14:06 -0700494MeshCreate {
495 ret RsMesh
496 param uint32_t vtxCount
497 param uint32_t idxCount
498 }
499
500MeshBindIndex {
501 param RsMesh mesh
502 param RsAllocation idx
503 param uint32_t primType
504 param uint32_t slot
505 }
506
Alex Sakhartchouk4e9a7a82010-07-01 16:14:06 -0700507MeshBindVertex {
508 param RsMesh mesh
509 param RsAllocation vtx
510 param uint32_t slot
511 }
512
Alex Sakhartchoukd18c7442010-07-12 15:50:32 -0700513MeshGetVertexBufferCount {
514 param RsMesh mesh
515 param int32_t *numVtx
516 }
517
518MeshGetIndexCount {
519 param RsMesh mesh
520 param int32_t *numIdx
521 }
522
523MeshGetVertices {
524 param RsMesh mv
525 param RsAllocation *vtxData
526 param uint32_t vtxDataCount
527 }
528
529MeshGetIndices {
530 param RsMesh mv
531 param RsAllocation *va
532 param uint32_t *primType
533 param uint32_t idxDataCount
534 }
535
Jason Samsc1ed5892010-03-10 17:30:41 -0800536AnimationCreate {
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