blob: 679b48135eb86ce9e407bcd44a25190fd8a400bf [file] [log] [blame]
Jason Sams326e0dd2009-05-22 14:03:28 -07001
Jason Sams186e5912011-04-26 14:50:00 -07002ContextDestroy {
3 direct
4}
5
6ContextGetMessage {
7 direct
8 param void *data
9 param size_t *receiveLen
Jason Sams1a4efa32011-05-17 15:01:29 -070010 param uint32_t *usrID
Jason Sams186e5912011-04-26 14:50:00 -070011 ret RsMessageToClientType
12}
13
14ContextPeekMessage {
15 direct
16 param size_t *receiveLen
Jason Sams1a4efa32011-05-17 15:01:29 -070017 param uint32_t *usrID
Jason Sams186e5912011-04-26 14:50:00 -070018 ret RsMessageToClientType
19}
20
21ContextInitToClient {
22 direct
23}
24
25ContextDeinitToClient {
26 direct
27}
28
Jason Samsc975cf42011-04-28 18:26:48 -070029TypeCreate {
Jason Sams186e5912011-04-26 14:50:00 -070030 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 Samsc975cf42011-04-28 18:26:48 -070040AllocationCreateTyped {
Jason Sams186e5912011-04-26 14:50:00 -070041 direct
42 param RsType vtype
43 param RsAllocationMipmapControl mips
44 param uint32_t usages
Jason Sams179e9a42011-11-23 15:02:15 -080045 param uint32_t ptr
Jason Sams186e5912011-04-26 14:50:00 -070046 ret RsAllocation
47}
48
Jason Samsc975cf42011-04-28 18:26:48 -070049AllocationCreateFromBitmap {
Jason Sams186e5912011-04-26 14:50:00 -070050 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 Samsc975cf42011-04-28 18:26:48 -070058AllocationCubeCreateFromBitmap {
Jason Sams186e5912011-04-26 14:50:00 -070059 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 Sams41e373d2012-01-13 14:01:20 -080067AllocationGetSurfaceTextureID {
68 param RsAllocation alloc
69 ret int32_t
70}
Jason Sams186e5912011-04-26 14:50:00 -070071
Jason Sams3522f402012-03-23 11:47:26 -070072AllocationGetSurfaceTextureID2 {
73 param RsAllocation alloc
74 param void *st
75 sync
76}
77
Jason Sams7ac2a4d2012-02-15 12:04:24 -080078AllocationSetSurface {
79 param RsAllocation alloc
80 param RsNativeWindow sur
81 sync
82 }
83
84AllocationIoSend {
85 param RsAllocation alloc
86 }
87
88AllocationIoReceive {
89 param RsAllocation alloc
90 }
91
92
Jason Sams8c880902010-06-15 12:15:57 -070093ContextFinish {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -080094 sync
95 }
Jason Sams326e0dd2009-05-22 14:03:28 -070096
Jason Sams326e0dd2009-05-22 14:03:28 -070097ContextBindRootScript {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -080098 param RsScript sampler
99 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700100
Jason Samsccc010b2010-05-13 18:30:11 -0700101ContextBindProgramStore {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800102 param RsProgramStore pgm
103 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700104
105ContextBindProgramFragment {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800106 param RsProgramFragment pgm
107 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700108
109ContextBindProgramVertex {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800110 param RsProgramVertex pgm
111 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700112
Jason Sams5fd09d82009-09-23 13:57:02 -0700113ContextBindProgramRaster {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800114 param RsProgramRaster pgm
115 }
Jason Sams5fd09d82009-09-23 13:57:02 -0700116
Alex Sakhartchoukd3e0ad42010-06-24 17:15:34 -0700117ContextBindFont {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800118 param RsFont pgm
119 }
Alex Sakhartchoukd3e0ad42010-06-24 17:15:34 -0700120
Jason Sams86f1b232009-09-24 17:38:20 -0700121ContextPause {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800122 }
Jason Sams86f1b232009-09-24 17:38:20 -0700123
124ContextResume {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800125 }
Jason Sams86f1b232009-09-24 17:38:20 -0700126
Jason Sams458f2dc2009-11-03 13:58:36 -0800127ContextSetSurface {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800128 param uint32_t width
129 param uint32_t height
130 param RsNativeWindow sur
Jason Samsc33e6902011-06-20 16:58:04 -0700131 sync
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800132 }
Jason Sams458f2dc2009-11-03 13:58:36 -0800133
Jason Samsc21cf402009-11-17 17:26:46 -0800134ContextDump {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800135 param int32_t bits
Jason Samsc21cf402009-11-17 17:26:46 -0800136}
137
Jason Sams613cad12009-11-12 15:10:25 -0800138ContextSetPriority {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800139 param int32_t priority
140 }
Jason Sams613cad12009-11-12 15:10:25 -0800141
Jason Sams741aac92010-12-24 14:38:39 -0800142ContextDestroyWorker {
Jason Sams5f27d6f2012-02-07 15:32:08 -0800143 sync
Jason Sams1dcefab2010-12-09 12:19:46 -0800144}
145
Jason Samsa0a1b6f2009-06-10 15:04:38 -0700146AssignName {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800147 param RsObjectBase obj
148 param const char *name
149 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700150
Jason Sams707aaf32009-08-18 14:14:24 -0700151ObjDestroy {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800152 param RsAsyncVoidPtr objPtr
153 }
Jason Sams707aaf32009-08-18 14:14:24 -0700154
Jason Samsd01d9702009-12-23 14:35:29 -0800155ElementCreate {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700156 direct
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800157 param RsDataType mType
158 param RsDataKind mKind
159 param bool mNormalized
160 param uint32_t mVectorSize
161 ret RsElement
162 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700163
Jason Samsd01d9702009-12-23 14:35:29 -0800164ElementCreate2 {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700165 direct
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800166 param const RsElement * elements
167 param const char ** names
168 param const uint32_t * arraySize
169 ret RsElement
170 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700171
Jason Sams837e3882010-12-10 16:03:15 -0800172AllocationCopyToBitmap {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800173 param RsAllocation alloc
174 param void * data
175 }
Alex Sakhartchouk39f2ef62010-10-11 12:35:15 -0700176
Jason Sams326e0dd2009-05-22 14:03:28 -0700177
Jason Sams4b45b892010-12-29 14:31:29 -0800178Allocation1DData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800179 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 Sams326e0dd2009-05-22 14:03:28 -0700185
Jason Sams4b45b892010-12-29 14:31:29 -0800186Allocation1DElementData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800187 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 Sams5f0c84c2010-08-31 13:50:42 -0700193
Jason Sams4b45b892010-12-29 14:31:29 -0800194Allocation2DData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800195 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 Sams326e0dd2009-05-22 14:03:28 -0700204
Jason Sams4b45b892010-12-29 14:31:29 -0800205Allocation2DElementData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800206 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 Sams5f0c84c2010-08-31 13:50:42 -0700214
Jason Samsa2371512011-01-12 13:28:37 -0800215AllocationGenerateMipmaps {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800216 param RsAllocation va
Jason Samsa2371512011-01-12 13:28:37 -0800217}
218
Jason Samse579df42009-08-10 14:55:26 -0700219AllocationRead {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800220 param RsAllocation va
221 param void * data
222 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700223
Tim Murray509ea5c2012-11-13 11:56:40 -0800224Allocation1DRead {
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 Murray7b3e3092012-11-16 13:32:24 -0800232Allocation2DRead {
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 Murray509ea5c2012-11-13 11:56:40 -0800242
Jason Sams366c9c82010-12-08 16:14:36 -0800243AllocationSyncAll {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800244 param RsAllocation va
245 param RsAllocationUsageType src
Jason Sams366c9c82010-12-08 16:14:36 -0800246}
247
Jason Sams326e0dd2009-05-22 14:03:28 -0700248
Jason Sams96abf812010-10-05 13:32:49 -0700249AllocationResize1D {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800250 param RsAllocation va
251 param uint32_t dimX
252 }
Jason Sams96abf812010-10-05 13:32:49 -0700253
254AllocationResize2D {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800255 param RsAllocation va
256 param uint32_t dimX
257 param uint32_t dimY
258 }
Jason Sams96abf812010-10-05 13:32:49 -0700259
Alex Sakhartchouk74a82792011-06-14 11:13:19 -0700260AllocationCopy2DRange {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800261 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 Sakhartchouk74a82792011-06-14 11:13:19 -0700274
Jason Sams326e0dd2009-05-22 14:03:28 -0700275SamplerCreate {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700276 direct
Alex Sakhartchoukc2c02a82011-05-04 17:45:36 -0700277 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 Sams326e0dd2009-05-22 14:03:28 -0700285
286ScriptBindAllocation {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800287 param RsScript vtm
288 param RsAllocation va
289 param uint32_t slot
290 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700291
Jason Samsd34b7252009-08-04 16:58:20 -0700292ScriptSetTimeZone {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800293 param RsScript s
294 param const char * timeZone
295 }
Romain Guy98e10fd2009-07-30 18:45:01 -0700296
Jason Sams8c6bc692009-09-16 15:04:38 -0700297ScriptInvoke {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800298 param RsScript s
299 param uint32_t slot
300 }
Jason Sams8c6bc692009-09-16 15:04:38 -0700301
Jason Samsbe36bf32010-05-11 14:03:58 -0700302ScriptInvokeV {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800303 param RsScript s
304 param uint32_t slot
305 param const void * data
306 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700307
Alex Sakhartchoukc2c02a82011-05-04 17:45:36 -0700308ScriptForEach {
Jason Sams5fb1aeb2011-04-27 15:12:49 -0700309 param RsScript s
310 param uint32_t slot
311 param RsAllocation ain
312 param RsAllocation aout
313 param const void * usr
314}
315
Jason Samsbe36bf32010-05-11 14:03:58 -0700316ScriptSetVarI {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800317 param RsScript s
318 param uint32_t slot
319 param int value
320 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700321
Jason Samsa5eb6e12010-11-16 17:37:02 -0800322ScriptSetVarObj {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800323 param RsScript s
324 param uint32_t slot
325 param RsObjectBase value
326 }
Jason Samsa5eb6e12010-11-16 17:37:02 -0800327
Stephen Hines0977c942010-10-11 10:54:21 -0700328ScriptSetVarJ {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800329 param RsScript s
330 param uint32_t slot
331 param int64_t value
332 }
Stephen Hines0977c942010-10-11 10:54:21 -0700333
Jason Samsbe36bf32010-05-11 14:03:58 -0700334ScriptSetVarF {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800335 param RsScript s
336 param uint32_t slot
337 param float value
338 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700339
Stephen Hines6d0a0742010-09-20 17:20:30 -0700340ScriptSetVarD {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800341 param RsScript s
342 param uint32_t slot
343 param double value
344 }
Stephen Hines6d0a0742010-09-20 17:20:30 -0700345
Jason Samsbe36bf32010-05-11 14:03:58 -0700346ScriptSetVarV {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800347 param RsScript s
348 param uint32_t slot
349 param const void * data
350 }
Jason Samsfa517192009-08-13 12:59:04 -0700351
Stephen Hines2980f072012-04-09 18:26:29 -0700352ScriptSetVarVE {
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 Samsfa517192009-08-13 12:59:04 -0700360
Jason Sams326e0dd2009-05-22 14:03:28 -0700361ScriptCCreate {
Shih-wei Liao9503b662010-11-08 01:33:59 -0800362 param const char * resName
Shih-wei Liao15849d92010-12-10 01:03:59 -0800363 param const char * cacheDir
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800364 param const char * text
365 ret RsScript
366 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700367
Jason Sams8eaba4f2012-08-14 14:38:05 -0700368ScriptIntrinsicCreate {
369 param uint32_t id
370 param RsElement eid
371 ret RsScript
372 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700373
Jason Samsdbe66d62012-09-17 13:54:41 -0700374ScriptKernelIDCreate {
375 direct
376 param RsScript sid
377 param int slot
378 param int sig
379 ret RsScriptKernelID
380 }
381
382ScriptFieldIDCreate {
383 direct
384 param RsScript sid
385 param int slot
386 ret RsScriptFieldID
387 }
388
389ScriptGroupCreate {
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
399ScriptGroupSetOutput {
400 param RsScriptGroup group
401 param RsScriptKernelID kernel
402 param RsAllocation alloc
403}
404
405ScriptGroupSetInput {
406 param RsScriptGroup group
407 param RsScriptKernelID kernel
408 param RsAllocation alloc
409}
410
411ScriptGroupExecute {
412 param RsScriptGroup group
413}
414
415
416
Jason Sams721acc42011-04-06 11:23:54 -0700417ProgramStoreCreate {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800418 direct
419 param bool colorMaskR
420 param bool colorMaskG
421 param bool colorMaskB
422 param bool colorMaskA
Jason Sams721acc42011-04-06 11:23:54 -0700423 param bool depthMask
424 param bool ditherEnable
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800425 param RsBlendSrcFunc srcFunc
426 param RsBlendDstFunc destFunc
Jason Sams721acc42011-04-06 11:23:54 -0700427 param RsDepthFunc depthFunc
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800428 ret RsProgramStore
429 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700430
Jason Sams5fd09d82009-09-23 13:57:02 -0700431ProgramRasterCreate {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800432 direct
433 param bool pointSprite
434 param RsCullMode cull
435 ret RsProgramRaster
Jason Sams5fd09d82009-09-23 13:57:02 -0700436}
437
Jason Sams4815c0d2009-12-15 12:58:36 -0800438ProgramBindConstants {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800439 param RsProgram vp
440 param uint32_t slot
441 param RsAllocation constants
442 }
Jason Sams4815c0d2009-12-15 12:58:36 -0800443
Jason Sams326e0dd2009-05-22 14:03:28 -0700444
Jason Sams7dad9c32009-12-17 16:55:08 -0800445ProgramBindTexture {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800446 param RsProgramFragment pf
447 param uint32_t slot
448 param RsAllocation a
449 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700450
Jason Sams7dad9c32009-12-17 16:55:08 -0800451ProgramBindSampler {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800452 param RsProgramFragment pf
453 param uint32_t slot
454 param RsSampler s
455 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700456
Jason Sams326e0dd2009-05-22 14:03:28 -0700457ProgramFragmentCreate {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800458 direct
459 param const char * shaderText
460 param const char ** textureNames
461 param const uint32_t * params
462 ret RsProgramFragment
463 }
Jason Samsf2e4fa22009-12-15 13:27:04 -0800464
Jason Sams326e0dd2009-05-22 14:03:28 -0700465ProgramVertexCreate {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800466 direct
467 param const char * shaderText
468 param const char ** textureNames
469 param const uint32_t * params
470 ret RsProgramVertex
471 }
Jason Samsb5909ce2009-07-21 12:20:54 -0700472
Alex Sakhartchoukd3e0ad42010-06-24 17:15:34 -0700473FontCreateFromFile {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800474 param const char *name
475 param float fontSize
476 param uint32_t dpi
477 ret RsFont
478 }
Alex Sakhartchoukd3e0ad42010-06-24 17:15:34 -0700479
Alex Sakhartchouk5224a272011-01-07 11:12:08 -0800480FontCreateFromMemory {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800481 param const char *name
482 param float fontSize
483 param uint32_t dpi
484 param const void *data
485 ret RsFont
486 }
Alex Sakhartchouk5224a272011-01-07 11:12:08 -0800487
Alex Sakhartchouk4e9a7a82010-07-01 16:14:06 -0700488MeshCreate {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800489 param RsAllocation *vtx
490 param RsAllocation *idx
491 param uint32_t *primType
492 ret RsMesh
493 }
Jason Sams9e0afb52011-10-31 13:23:43 -0700494
495PathCreate {
496 param RsPathPrimitive pp
497 param bool isStatic
498 param RsAllocation vertex
499 param RsAllocation loops
500 param float quality
501 ret RsPath
502 }