blob: 571b1457421133aab9f75fdbf105c1d2725b46a6 [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 {
67 param void *obj
68 }
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 Sams326e0dd2009-05-22 14:03:28 -070083 ret RsElement
84 }
85
Alex Sakhartchouk417e6a42010-07-15 11:33:03 -070086ElementGetNativeData {
87 param RsElement elem
88 param uint32_t *elemData
89 param uint32_t elemDataSize
90 }
91
92ElementGetSubElements {
93 param RsElement elem
94 param uint32_t *ids
95 param const char **names
96 param uint32_t dataSize
97 }
98
Jason Sams326e0dd2009-05-22 14:03:28 -070099TypeBegin {
100 param RsElement type
101 }
102
103TypeAdd {
104 param RsDimension dim
105 param size_t value
106 }
107
108TypeCreate {
109 ret RsType
110 }
111
Alex Sakhartchouk417e6a42010-07-15 11:33:03 -0700112TypeGetNativeData {
113 param RsType type
114 param uint32_t * typeData
115 param uint32_t typeDataSize
116 }
117
Jason Sams326e0dd2009-05-22 14:03:28 -0700118AllocationCreateTyped {
119 param RsType type
120 ret RsAllocation
121 }
122
Jason Sams326e0dd2009-05-22 14:03:28 -0700123AllocationCreateSized {
124 param RsElement e
125 param size_t count
126 ret RsAllocation
127 }
128
Jason Samsfa84da22010-03-01 15:31:04 -0800129AllocationCreateBitmapRef {
130 param RsType type
131 param void * bmpPtr
132 param void * callbackData
133 param RsBitmapCallback_t callback
134 ret RsAllocation
135 }
136
Jason Sams6678e9b2009-05-27 14:45:32 -0700137AllocationCreateFromBitmap {
138 param uint32_t width
139 param uint32_t height
Jason Samsa57c0a72009-09-04 14:42:41 -0700140 param RsElement dstFmt
141 param RsElement srcFmt
Jason Sams6678e9b2009-05-27 14:45:32 -0700142 param bool genMips
143 param const void * data
144 ret RsAllocation
145 }
146
Jason Samsc9d43db2009-07-28 12:02:16 -0700147AllocationCreateFromBitmapBoxed {
148 param uint32_t width
149 param uint32_t height
Jason Samsa57c0a72009-09-04 14:42:41 -0700150 param RsElement dstFmt
151 param RsElement srcFmt
Jason Samsc9d43db2009-07-28 12:02:16 -0700152 param bool genMips
153 param const void * data
154 ret RsAllocation
155 }
156
Jason Sams6678e9b2009-05-27 14:45:32 -0700157
Jason Sams326e0dd2009-05-22 14:03:28 -0700158AllocationUploadToTexture {
159 param RsAllocation alloc
Jason Sams7fabe1a2010-02-23 17:44:28 -0800160 param bool genMipMaps
Jason Sams326e0dd2009-05-22 14:03:28 -0700161 param uint32_t baseMipLevel
162 }
163
164AllocationUploadToBufferObject {
165 param RsAllocation alloc
166 }
167
Jason Sams326e0dd2009-05-22 14:03:28 -0700168
169AllocationData {
170 param RsAllocation va
171 param const void * data
Jason Sams9397e302009-08-27 20:23:34 -0700172 param uint32_t bytes
173 handcodeApi
174 togglePlay
Jason Samsd34b7252009-08-04 16:58:20 -0700175 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700176
177Allocation1DSubData {
178 param RsAllocation va
179 param uint32_t xoff
180 param uint32_t count
181 param const void *data
Jason Sams9397e302009-08-27 20:23:34 -0700182 param uint32_t bytes
183 handcodeApi
184 togglePlay
Jason Samsd34b7252009-08-04 16:58:20 -0700185 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700186
187Allocation2DSubData {
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 Sams9397e302009-08-27 20:23:34 -0700194 param uint32_t bytes
Jason Sams326e0dd2009-05-22 14:03:28 -0700195 }
196
Jason Samse579df42009-08-10 14:55:26 -0700197AllocationRead {
198 param RsAllocation va
199 param void * data
200 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700201
202Adapter1DCreate {
203 ret RsAdapter1D
204 }
205
206Adapter1DBindAllocation {
207 param RsAdapter1D adapt
208 param RsAllocation alloc
209 }
210
Jason Sams326e0dd2009-05-22 14:03:28 -0700211Adapter1DSetConstraint {
212 param RsAdapter1D adapter
213 param RsDimension dim
214 param uint32_t value
215 }
216
217Adapter1DData {
218 param RsAdapter1D adapter
219 param const void * data
Jason Samsd34b7252009-08-04 16:58:20 -0700220 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700221
222Adapter1DSubData {
223 param RsAdapter1D adapter
224 param uint32_t xoff
225 param uint32_t count
226 param const void *data
Jason Samsd34b7252009-08-04 16:58:20 -0700227 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700228
229Adapter2DCreate {
230 ret RsAdapter2D
231 }
232
233Adapter2DBindAllocation {
234 param RsAdapter2D adapt
235 param RsAllocation alloc
236 }
237
Jason Sams326e0dd2009-05-22 14:03:28 -0700238Adapter2DSetConstraint {
239 param RsAdapter2D adapter
240 param RsDimension dim
241 param uint32_t value
242 }
243
244Adapter2DData {
245 param RsAdapter2D adapter
246 param const void *data
Jason Samsd34b7252009-08-04 16:58:20 -0700247 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700248
249Adapter2DSubData {
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 Sakhartchouk417e6a42010-07-15 11:33:03 -0700258AllocationGetType {
259 param RsAllocation va
260 ret const void*
261 }
262
Jason Sams326e0dd2009-05-22 14:03:28 -0700263SamplerBegin {
264 }
265
266SamplerSet {
267 param RsSamplerParam p
268 param RsSamplerValue value
269 }
270
271SamplerCreate {
272 ret RsSampler
273 }
274
275
Jason Sams326e0dd2009-05-22 14:03:28 -0700276
277ScriptBindAllocation {
278 param RsScript vtm
279 param RsAllocation va
280 param uint32_t slot
281 }
282
283
284ScriptCBegin {
285 }
286
Jason Sams326e0dd2009-05-22 14:03:28 -0700287
Jason Samsd34b7252009-08-04 16:58:20 -0700288ScriptSetTimeZone {
289 param RsScript s
Romain Guy98e10fd2009-07-30 18:45:01 -0700290 param const char * timeZone
291 param uint32_t length
292 }
293
Jason Sams8c6bc692009-09-16 15:04:38 -0700294
295ScriptInvoke {
296 param RsScript s
297 param uint32_t slot
298 }
299
Jason Samsbe36bf32010-05-11 14:03:58 -0700300ScriptInvokeV {
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 Samsbe36bf32010-05-11 14:03:58 -0700309ScriptSetVarI {
310 param RsScript s
311 param uint32_t slot
312 param int value
313 }
314
315ScriptSetVarF {
316 param RsScript s
317 param uint32_t slot
318 param float value
319 }
320
321ScriptSetVarV {
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 Samsfa517192009-08-13 12:59:04 -0700329
330
Jason Sams326e0dd2009-05-22 14:03:28 -0700331ScriptCSetScript {
Jack Palevich1ef8b802009-05-28 15:53:04 -0700332 param void * codePtr
Jason Sams326e0dd2009-05-22 14:03:28 -0700333 }
334
Jason Sams1f526332009-06-05 17:35:09 -0700335ScriptCSetText {
336 param const char * text
337 param uint32_t length
338 }
339
Jason Sams326e0dd2009-05-22 14:03:28 -0700340ScriptCCreate {
341 ret RsScript
342 }
343
344
Jason Samsccc010b2010-05-13 18:30:11 -0700345ProgramStoreBegin {
Jason Sams326e0dd2009-05-22 14:03:28 -0700346 param RsElement in
347 param RsElement out
348 }
349
Jason Samsccc010b2010-05-13 18:30:11 -0700350ProgramStoreColorMask {
Jason Sams326e0dd2009-05-22 14:03:28 -0700351 param bool r
352 param bool g
353 param bool b
354 param bool a
355 }
356
Jason Samsccc010b2010-05-13 18:30:11 -0700357ProgramStoreBlendFunc {
Jason Sams326e0dd2009-05-22 14:03:28 -0700358 param RsBlendSrcFunc srcFunc
359 param RsBlendDstFunc destFunc
360 }
361
Jason Samsccc010b2010-05-13 18:30:11 -0700362ProgramStoreDepthMask {
Jason Sams326e0dd2009-05-22 14:03:28 -0700363 param bool enable
364}
365
Jason Samsccc010b2010-05-13 18:30:11 -0700366ProgramStoreDither {
Jason Sams326e0dd2009-05-22 14:03:28 -0700367 param bool enable
368}
369
Jason Samsccc010b2010-05-13 18:30:11 -0700370ProgramStoreDepthFunc {
Jason Sams326e0dd2009-05-22 14:03:28 -0700371 param RsDepthFunc func
372}
373
Jason Samsccc010b2010-05-13 18:30:11 -0700374ProgramStoreCreate {
375 ret RsProgramStore
Jason Sams326e0dd2009-05-22 14:03:28 -0700376 }
377
Jason Sams5fd09d82009-09-23 13:57:02 -0700378ProgramRasterCreate {
Jason Sams5fd09d82009-09-23 13:57:02 -0700379 param bool pointSmooth
380 param bool lineSmooth
381 param bool pointSprite
382 ret RsProgramRaster
383}
384
385ProgramRasterSetLineWidth {
386 param RsProgramRaster pr
387 param float lw
388}
389
Alex Sakhartchoukd18c7442010-07-12 15:50:32 -0700390ProgramRasterSetCullMode {
391 param RsProgramRaster pr
392 param RsCullMode mode
393}
Jason Sams326e0dd2009-05-22 14:03:28 -0700394
Jason Sams4815c0d2009-12-15 12:58:36 -0800395ProgramBindConstants {
396 param RsProgram vp
397 param uint32_t slot
398 param RsAllocation constants
399 }
400
Jason Sams326e0dd2009-05-22 14:03:28 -0700401
Jason Sams7dad9c32009-12-17 16:55:08 -0800402ProgramBindTexture {
Jason Sams326e0dd2009-05-22 14:03:28 -0700403 param RsProgramFragment pf
404 param uint32_t slot
405 param RsAllocation a
406 }
407
Jason Sams7dad9c32009-12-17 16:55:08 -0800408ProgramBindSampler {
Jason Sams326e0dd2009-05-22 14:03:28 -0700409 param RsProgramFragment pf
410 param uint32_t slot
411 param RsSampler s
412 }
413
Jason Sams326e0dd2009-05-22 14:03:28 -0700414ProgramFragmentCreate {
Jason Sams7dad9c32009-12-17 16:55:08 -0800415 param const uint32_t * params
416 param uint32_t paramLength
Jason Sams326e0dd2009-05-22 14:03:28 -0700417 ret RsProgramFragment
418 }
419
Jason Samsf2e4fa22009-12-15 13:27:04 -0800420ProgramFragmentCreate2 {
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 Sams326e0dd2009-05-22 14:03:28 -0700428ProgramVertexCreate {
Jason Sams4815c0d2009-12-15 12:58:36 -0800429 param bool texMat
Jason Sams326e0dd2009-05-22 14:03:28 -0700430 ret RsProgramVertex
431 }
432
Jason Sams4815c0d2009-12-15 12:58:36 -0800433ProgramVertexCreate2 {
434 param const char * shaderText
435 param uint32_t shaderLength
436 param const uint32_t * params
437 param uint32_t paramLength
Jason Samsf2e4fa22009-12-15 13:27:04 -0800438 ret RsProgramVertex
Jason Samsb5909ce2009-07-21 12:20:54 -0700439 }
440
Jason Sams62bc1db2009-06-22 15:49:21 -0700441LightBegin {
442 }
443
444LightSetLocal {
445 param bool isLocal
446 }
447
448LightSetMonochromatic {
449 param bool isMono
450 }
451
452LightCreate {
453 ret RsLight light
454 }
455
Jason Sams62bc1db2009-06-22 15:49:21 -0700456
457LightSetPosition {
458 param RsLight light
459 param float x
460 param float y
461 param float z
462 }
463
464LightSetColor {
465 param RsLight light
466 param float r
467 param float g
468 param float b
469 }
470
Alex Sakhartchoukb825f672010-06-04 10:06:50 -0700471FileA3DCreateFromAssetStream {
472 param const void * data
473 param size_t len
474 ret RsFile
475 }
476
Jason Samsa5597fc2009-07-08 18:01:53 -0700477FileOpen {
478 ret RsFile
479 param const char *name
480 param size_t len
481 }
482
Alex Sakhartchoukb825f672010-06-04 10:06:50 -0700483FileA3DGetNumIndexEntries {
484 param int32_t * numEntries
485 param RsFile file
486 }
487
488FileA3DGetIndexEntries {
489 param RsFileIndexEntry * fileEntries
490 param uint32_t numEntries
491 param RsFile fileA3D
492 }
493
494FileA3DGetEntryByIndex {
495 param uint32_t index
496 param RsFile file
497 ret RsObjectBase
498 }
Jason Samsa5597fc2009-07-08 18:01:53 -0700499
Alex Sakhartchoukd3e0ad42010-06-24 17:15:34 -0700500FontCreateFromFile {
501 param const char *name
502 param uint32_t fontSize
503 param uint32_t dpi
504 ret RsFont
505 }
506
Alex Sakhartchouk4e9a7a82010-07-01 16:14:06 -0700507MeshCreate {
508 ret RsMesh
509 param uint32_t vtxCount
510 param uint32_t idxCount
511 }
512
513MeshBindIndex {
514 param RsMesh mesh
515 param RsAllocation idx
516 param uint32_t primType
517 param uint32_t slot
518 }
519
Alex Sakhartchouk4e9a7a82010-07-01 16:14:06 -0700520MeshBindVertex {
521 param RsMesh mesh
522 param RsAllocation vtx
523 param uint32_t slot
524 }
525
Alex Sakhartchoukd18c7442010-07-12 15:50:32 -0700526MeshGetVertexBufferCount {
527 param RsMesh mesh
528 param int32_t *numVtx
529 }
530
531MeshGetIndexCount {
532 param RsMesh mesh
533 param int32_t *numIdx
534 }
535
536MeshGetVertices {
537 param RsMesh mv
538 param RsAllocation *vtxData
539 param uint32_t vtxDataCount
540 }
541
542MeshGetIndices {
543 param RsMesh mv
544 param RsAllocation *va
545 param uint32_t *primType
546 param uint32_t idxDataCount
547 }
548
Jason Samsc1ed5892010-03-10 17:30:41 -0800549AnimationCreate {
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