blob: 20b1f52104da67c46303d9211dfbda72625986a7 [file] [log] [blame]
Jason Samsd19f10d2009-05-22 14:03:28 -07001
Jason Sams65bdaf12011-04-26 14:50:00 -07002ContextDestroy {
3 direct
4}
5
6ContextGetMessage {
7 direct
8 param void *data
9 param size_t *receiveLen
Jason Samsedbfabd2011-05-17 15:01:29 -070010 param uint32_t *usrID
Jason Sams65bdaf12011-04-26 14:50:00 -070011 ret RsMessageToClientType
12}
13
14ContextPeekMessage {
15 direct
16 param size_t *receiveLen
Jason Samsedbfabd2011-05-17 15:01:29 -070017 param uint32_t *usrID
Jason Sams65bdaf12011-04-26 14:50:00 -070018 ret RsMessageToClientType
19}
20
21ContextInitToClient {
22 direct
23}
24
25ContextDeinitToClient {
26 direct
27}
28
Jason Samsc5765372011-04-28 18:26:48 -070029TypeCreate {
Jason Sams65bdaf12011-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 Samsc5765372011-04-28 18:26:48 -070040AllocationCreateTyped {
Jason Sams65bdaf12011-04-26 14:50:00 -070041 direct
42 param RsType vtype
43 param RsAllocationMipmapControl mips
44 param uint32_t usages
45 ret RsAllocation
46}
47
Jason Samsc5765372011-04-28 18:26:48 -070048AllocationCreateFromBitmap {
Jason Sams65bdaf12011-04-26 14:50:00 -070049 direct
50 param RsType vtype
51 param RsAllocationMipmapControl mips
52 param const void *data
53 param uint32_t usages
54 ret RsAllocation
55}
56
Jason Samsc5765372011-04-28 18:26:48 -070057AllocationCubeCreateFromBitmap {
Jason Sams65bdaf12011-04-26 14:50:00 -070058 direct
59 param RsType vtype
60 param RsAllocationMipmapControl mips
61 param const void *data
62 param uint32_t usages
63 ret RsAllocation
64}
65
66
67
Jason Sams96ed4cf2010-06-15 12:15:57 -070068ContextFinish {
Jason Samsedbfabd2011-05-17 15:01:29 -070069 sync
Jason Sams96ed4cf2010-06-15 12:15:57 -070070 }
Jason Samsd19f10d2009-05-22 14:03:28 -070071
Jason Samsd19f10d2009-05-22 14:03:28 -070072ContextBindRootScript {
73 param RsScript sampler
74 }
75
Jason Sams54db59c2010-05-13 18:30:11 -070076ContextBindProgramStore {
77 param RsProgramStore pgm
Jason Samsd19f10d2009-05-22 14:03:28 -070078 }
79
80ContextBindProgramFragment {
81 param RsProgramFragment pgm
82 }
83
84ContextBindProgramVertex {
85 param RsProgramVertex pgm
86 }
87
Jason Samsebfb4362009-09-23 13:57:02 -070088ContextBindProgramRaster {
89 param RsProgramRaster pgm
90 }
91
Alex Sakhartchouk9b949fc2010-06-24 17:15:34 -070092ContextBindFont {
93 param RsFont pgm
94 }
95
Jason Sams65e7aa52009-09-24 17:38:20 -070096ContextPause {
97 }
98
99ContextResume {
100 }
101
Jason Samsefd9b6fb2009-11-03 13:58:36 -0800102ContextSetSurface {
Jason Sams3bc47d42009-11-12 15:10:25 -0800103 param uint32_t width
104 param uint32_t height
Alex Sakhartchouk6c72eec2011-05-17 12:32:47 -0700105 param RsNativeWindow sur
Jason Samsfaa32b32011-06-20 16:58:04 -0700106 sync
Jason Samsefd9b6fb2009-11-03 13:58:36 -0800107 }
108
Jason Sams715333b2009-11-17 17:26:46 -0800109ContextDump {
110 param int32_t bits
111}
112
Jason Sams3bc47d42009-11-12 15:10:25 -0800113ContextSetPriority {
Jason Sams7d787b42009-11-15 12:14:26 -0800114 param int32_t priority
Jason Sams3bc47d42009-11-12 15:10:25 -0800115 }
116
Jason Sams5c68a712010-12-24 14:38:39 -0800117ContextDestroyWorker {
Jason Sams546f01b2010-12-09 12:19:46 -0800118}
119
Jason Sams3eaa3382009-06-10 15:04:38 -0700120AssignName {
Alex Sakhartchouke7c4a752011-04-06 10:57:51 -0700121 param RsObjectBase obj
Jason Sams3eaa3382009-06-10 15:04:38 -0700122 param const char *name
123 }
Jason Samsd19f10d2009-05-22 14:03:28 -0700124
Jason Sams7ce033d2009-08-18 14:14:24 -0700125ObjDestroy {
Jason Sams3b9c52a2010-10-14 17:48:46 -0700126 param RsAsyncVoidPtr objPtr
Jason Sams7ce033d2009-08-18 14:14:24 -0700127 }
128
Jason Sams718cd1f2009-12-23 14:35:29 -0800129ElementCreate {
Alex Sakhartchouk117abdb2011-08-16 13:09:46 -0700130 direct
Jason Sams718cd1f2009-12-23 14:35:29 -0800131 param RsDataType mType
132 param RsDataKind mKind
133 param bool mNormalized
134 param uint32_t mVectorSize
135 ret RsElement
Jason Samsd19f10d2009-05-22 14:03:28 -0700136 }
137
Jason Sams718cd1f2009-12-23 14:35:29 -0800138ElementCreate2 {
Alex Sakhartchouk117abdb2011-08-16 13:09:46 -0700139 direct
Jason Sams718cd1f2009-12-23 14:35:29 -0800140 param const RsElement * elements
141 param const char ** names
Jason Sams70d4e502010-09-02 17:35:23 -0700142 param const uint32_t * arraySize
Jason Samsd19f10d2009-05-22 14:03:28 -0700143 ret RsElement
144 }
145
Jason Sams4ef66502010-12-10 16:03:15 -0800146AllocationCopyToBitmap {
147 param RsAllocation alloc
148 param void * data
Alex Sakhartchouk26ae3902010-10-11 12:35:15 -0700149 }
150
Jason Samsd19f10d2009-05-22 14:03:28 -0700151
Jason Sams49a05d72010-12-29 14:31:29 -0800152Allocation1DData {
Jason Samsd19f10d2009-05-22 14:03:28 -0700153 param RsAllocation va
154 param uint32_t xoff
Jason Sams49a05d72010-12-29 14:31:29 -0800155 param uint32_t lod
Jason Samsd19f10d2009-05-22 14:03:28 -0700156 param uint32_t count
157 param const void *data
Jason Sams22534172009-08-04 16:58:20 -0700158 }
Jason Samsd19f10d2009-05-22 14:03:28 -0700159
Jason Sams49a05d72010-12-29 14:31:29 -0800160Allocation1DElementData {
Jason Sams49bdaf02010-08-31 13:50:42 -0700161 param RsAllocation va
162 param uint32_t x
Jason Sams49a05d72010-12-29 14:31:29 -0800163 param uint32_t lod
Jason Sams49bdaf02010-08-31 13:50:42 -0700164 param const void *data
165 param uint32_t comp_offset
Jason Sams49bdaf02010-08-31 13:50:42 -0700166 }
167
Jason Sams49a05d72010-12-29 14:31:29 -0800168Allocation2DData {
Jason Samsd19f10d2009-05-22 14:03:28 -0700169 param RsAllocation va
170 param uint32_t xoff
171 param uint32_t yoff
Jason Sams49a05d72010-12-29 14:31:29 -0800172 param uint32_t lod
173 param RsAllocationCubemapFace face
Jason Samsd19f10d2009-05-22 14:03:28 -0700174 param uint32_t w
175 param uint32_t h
176 param const void *data
177 }
178
Jason Sams49a05d72010-12-29 14:31:29 -0800179Allocation2DElementData {
Jason Sams49bdaf02010-08-31 13:50:42 -0700180 param RsAllocation va
181 param uint32_t x
182 param uint32_t y
Jason Sams49a05d72010-12-29 14:31:29 -0800183 param uint32_t lod
184 param RsAllocationCubemapFace face
Jason Sams49bdaf02010-08-31 13:50:42 -0700185 param const void *data
186 param uint32_t element_offset
Jason Sams49bdaf02010-08-31 13:50:42 -0700187 }
188
Jason Samsf7086092011-01-12 13:28:37 -0800189AllocationGenerateMipmaps {
190 param RsAllocation va
191}
192
Jason Sams40a29e82009-08-10 14:55:26 -0700193AllocationRead {
194 param RsAllocation va
195 param void * data
196 }
Jason Samsd19f10d2009-05-22 14:03:28 -0700197
Jason Sams5476b452010-12-08 16:14:36 -0800198AllocationSyncAll {
199 param RsAllocation va
200 param RsAllocationUsageType src
201}
202
Jason Samsd19f10d2009-05-22 14:03:28 -0700203
Jason Sams5edc6082010-10-05 13:32:49 -0700204AllocationResize1D {
205 param RsAllocation va
206 param uint32_t dimX
207 }
208
209AllocationResize2D {
210 param RsAllocation va
211 param uint32_t dimX
212 param uint32_t dimY
213 }
214
Alex Sakhartchouk304b1f52011-06-14 11:13:19 -0700215AllocationCopy2DRange {
216 param RsAllocation dest
217 param uint32_t destXoff
218 param uint32_t destYoff
219 param uint32_t destMip
220 param uint32_t destFace
221 param uint32_t width
222 param uint32_t height
223 param RsAllocation src
224 param uint32_t srcXoff
225 param uint32_t srcYoff
226 param uint32_t srcMip
227 param uint32_t srcFace
228 }
229
Jason Samsd19f10d2009-05-22 14:03:28 -0700230SamplerCreate {
Alex Sakhartchouk117abdb2011-08-16 13:09:46 -0700231 direct
Alex Sakhartchouka89094a2011-05-04 17:45:36 -0700232 param RsSamplerValue magFilter
233 param RsSamplerValue minFilter
234 param RsSamplerValue wrapS
235 param RsSamplerValue wrapT
236 param RsSamplerValue wrapR
237 param float mAniso
238 ret RsSampler
239}
Jason Samsd19f10d2009-05-22 14:03:28 -0700240
241ScriptBindAllocation {
242 param RsScript vtm
243 param RsAllocation va
244 param uint32_t slot
245 }
246
Jason Sams22534172009-08-04 16:58:20 -0700247ScriptSetTimeZone {
248 param RsScript s
Romain Guy584a3752009-07-30 18:45:01 -0700249 param const char * timeZone
Romain Guy584a3752009-07-30 18:45:01 -0700250 }
251
Jason Samsbe2e8412009-09-16 15:04:38 -0700252ScriptInvoke {
253 param RsScript s
254 param uint32_t slot
255 }
256
Jason Sams4d339932010-05-11 14:03:58 -0700257ScriptInvokeV {
258 param RsScript s
259 param uint32_t slot
260 param const void * data
Jason Sams4d339932010-05-11 14:03:58 -0700261 }
262
Alex Sakhartchouka89094a2011-05-04 17:45:36 -0700263ScriptForEach {
Jason Samsa08526a2011-04-27 15:12:49 -0700264 param RsScript s
265 param uint32_t slot
266 param RsAllocation ain
267 param RsAllocation aout
268 param const void * usr
269}
270
Jason Sams4d339932010-05-11 14:03:58 -0700271ScriptSetVarI {
272 param RsScript s
273 param uint32_t slot
274 param int value
275 }
276
Jason Sams6f4cf0b2010-11-16 17:37:02 -0800277ScriptSetVarObj {
278 param RsScript s
279 param uint32_t slot
280 param RsObjectBase value
281 }
282
Stephen Hines031ec58c2010-10-11 10:54:21 -0700283ScriptSetVarJ {
284 param RsScript s
285 param uint32_t slot
286 param int64_t value
287 }
288
Jason Sams4d339932010-05-11 14:03:58 -0700289ScriptSetVarF {
290 param RsScript s
291 param uint32_t slot
292 param float value
293 }
294
Stephen Hinesca54ec32010-09-20 17:20:30 -0700295ScriptSetVarD {
296 param RsScript s
297 param uint32_t slot
298 param double value
299 }
300
Jason Sams4d339932010-05-11 14:03:58 -0700301ScriptSetVarV {
302 param RsScript s
303 param uint32_t slot
304 param const void * data
Jason Sams4d339932010-05-11 14:03:58 -0700305 }
Jason Samsfbf0b9e2009-08-13 12:59:04 -0700306
307
Jason Samsd19f10d2009-05-22 14:03:28 -0700308ScriptCCreate {
Shih-wei Liaoa914f342010-11-08 01:33:59 -0800309 param const char * resName
Shih-wei Liao6b32fab2010-12-10 01:03:59 -0800310 param const char * cacheDir
Jason Samse4a06c52011-03-16 16:29:28 -0700311 param const char * text
Jason Samsd19f10d2009-05-22 14:03:28 -0700312 ret RsScript
313 }
314
315
Jason Sams331bf9b2011-04-06 11:23:54 -0700316ProgramStoreCreate {
Alex Sakhartchouk117abdb2011-08-16 13:09:46 -0700317 direct
Jason Sams331bf9b2011-04-06 11:23:54 -0700318 param bool colorMaskR
319 param bool colorMaskG
320 param bool colorMaskB
321 param bool colorMaskA
322 param bool depthMask
323 param bool ditherEnable
Jason Samsd19f10d2009-05-22 14:03:28 -0700324 param RsBlendSrcFunc srcFunc
325 param RsBlendDstFunc destFunc
Jason Sams331bf9b2011-04-06 11:23:54 -0700326 param RsDepthFunc depthFunc
Jason Sams54db59c2010-05-13 18:30:11 -0700327 ret RsProgramStore
Jason Samsd19f10d2009-05-22 14:03:28 -0700328 }
329
Jason Samsebfb4362009-09-23 13:57:02 -0700330ProgramRasterCreate {
Alex Sakhartchouk117abdb2011-08-16 13:09:46 -0700331 direct
Jason Samsebfb4362009-09-23 13:57:02 -0700332 param bool pointSprite
Jason Sams331bf9b2011-04-06 11:23:54 -0700333 param RsCullMode cull
Jason Samsebfb4362009-09-23 13:57:02 -0700334 ret RsProgramRaster
335}
336
Jason Sams0011bcf2009-12-15 12:58:36 -0800337ProgramBindConstants {
338 param RsProgram vp
339 param uint32_t slot
340 param RsAllocation constants
341 }
342
Jason Samsd19f10d2009-05-22 14:03:28 -0700343
Jason Sams68afd012009-12-17 16:55:08 -0800344ProgramBindTexture {
Jason Samsd19f10d2009-05-22 14:03:28 -0700345 param RsProgramFragment pf
346 param uint32_t slot
347 param RsAllocation a
348 }
349
Jason Sams68afd012009-12-17 16:55:08 -0800350ProgramBindSampler {
Jason Samsd19f10d2009-05-22 14:03:28 -0700351 param RsProgramFragment pf
352 param uint32_t slot
353 param RsSampler s
354 }
355
Jason Samsd19f10d2009-05-22 14:03:28 -0700356ProgramFragmentCreate {
Alex Sakhartchouk117abdb2011-08-16 13:09:46 -0700357 direct
Jason Sams7e5ab3b2009-12-15 13:27:04 -0800358 param const char * shaderText
Jason Sams7e5ab3b2009-12-15 13:27:04 -0800359 param const uint32_t * params
Jason Sams7e5ab3b2009-12-15 13:27:04 -0800360 ret RsProgramFragment
361 }
362
Jason Samsd19f10d2009-05-22 14:03:28 -0700363ProgramVertexCreate {
Alex Sakhartchouk117abdb2011-08-16 13:09:46 -0700364 direct
Jason Sams0011bcf2009-12-15 12:58:36 -0800365 param const char * shaderText
Jason Sams0011bcf2009-12-15 12:58:36 -0800366 param const uint32_t * params
Jason Sams7e5ab3b2009-12-15 13:27:04 -0800367 ret RsProgramVertex
Jason Samsee411122009-07-21 12:20:54 -0700368 }
369
Alex Sakhartchouk9b949fc2010-06-24 17:15:34 -0700370FontCreateFromFile {
371 param const char *name
Alex Sakhartchouke27cdee2010-12-17 11:41:08 -0800372 param float fontSize
Alex Sakhartchouk9b949fc2010-06-24 17:15:34 -0700373 param uint32_t dpi
374 ret RsFont
375 }
376
Alex Sakhartchoukb0253ea2011-01-07 11:12:08 -0800377FontCreateFromMemory {
378 param const char *name
379 param float fontSize
380 param uint32_t dpi
Alex Sakhartchouke7c4a752011-04-06 10:57:51 -0700381 param const void *data
Alex Sakhartchoukb0253ea2011-01-07 11:12:08 -0800382 ret RsFont
383 }
384
Alex Sakhartchouk164aaed2010-07-01 16:14:06 -0700385MeshCreate {
Alex Sakhartchouk25999a02011-05-12 10:38:03 -0700386 param RsAllocation *vtx
387 param RsAllocation *idx
388 param uint32_t *primType
Alex Sakhartchouk164aaed2010-07-01 16:14:06 -0700389 ret RsMesh
Alex Sakhartchouk164aaed2010-07-01 16:14:06 -0700390 }