blob: 5ae8d0120e39b7bdc7b7c957c6036b8b41f2647b [file] [log] [blame]
Jason Samsd19f10d2009-05-22 14:03:28 -07001
2
Jason Samsd19f10d2009-05-22 14:03:28 -07003ContextBindRootScript {
4 param RsScript sampler
5 }
6
7ContextBindProgramFragmentStore {
8 param RsProgramFragmentStore pgm
9 }
10
11ContextBindProgramFragment {
12 param RsProgramFragment pgm
13 }
14
15ContextBindProgramVertex {
16 param RsProgramVertex pgm
17 }
18
Jason Samsebfb4362009-09-23 13:57:02 -070019ContextBindProgramRaster {
20 param RsProgramRaster pgm
21 }
22
Jason Sams65e7aa52009-09-24 17:38:20 -070023ContextPause {
24 }
25
26ContextResume {
27 }
28
Jason Samsefd9b6fb2009-11-03 13:58:36 -080029ContextSetSurface {
Jason Sams3bc47d42009-11-12 15:10:25 -080030 param uint32_t width
31 param uint32_t height
Dianne Hackborn8b49bd12010-06-30 13:56:17 -070032 param ANativeWindow *sur
Jason Samsefd9b6fb2009-11-03 13:58:36 -080033 }
34
Jason Sams715333b2009-11-17 17:26:46 -080035ContextDump {
36 param int32_t bits
37}
38
Jason Sams156cce62010-03-03 13:03:18 -080039ContextGetError {
40 param RsError *err
41 ret const char *
42 }
43
Jason Sams3bc47d42009-11-12 15:10:25 -080044ContextSetPriority {
Jason Sams7d787b42009-11-15 12:14:26 -080045 param int32_t priority
Jason Sams3bc47d42009-11-12 15:10:25 -080046 }
47
Jason Sams3eaa3382009-06-10 15:04:38 -070048AssignName {
49 param void *obj
50 param const char *name
Jason Samsd5680f92009-06-10 18:39:40 -070051 param size_t len
Jason Sams3eaa3382009-06-10 15:04:38 -070052 }
Jason Samsd19f10d2009-05-22 14:03:28 -070053
Jason Sams7ce033d2009-08-18 14:14:24 -070054ObjDestroy {
55 param void *obj
56 }
57
Jason Sams718cd1f2009-12-23 14:35:29 -080058ElementCreate {
59 param RsDataType mType
60 param RsDataKind mKind
61 param bool mNormalized
62 param uint32_t mVectorSize
63 ret RsElement
Jason Samsd19f10d2009-05-22 14:03:28 -070064 }
65
Jason Sams718cd1f2009-12-23 14:35:29 -080066ElementCreate2 {
67 param size_t count
68 param const RsElement * elements
69 param const char ** names
70 param const size_t * nameLengths
Jason Samsd19f10d2009-05-22 14:03:28 -070071 ret RsElement
72 }
73
Jason Samsd19f10d2009-05-22 14:03:28 -070074TypeBegin {
75 param RsElement type
76 }
77
78TypeAdd {
79 param RsDimension dim
80 param size_t value
81 }
82
83TypeCreate {
84 ret RsType
85 }
86
Jason Samsd19f10d2009-05-22 14:03:28 -070087AllocationCreateTyped {
88 param RsType type
89 ret RsAllocation
90 }
91
Jason Samsd19f10d2009-05-22 14:03:28 -070092AllocationCreateSized {
93 param RsElement e
94 param size_t count
95 ret RsAllocation
96 }
97
Jason Sams8a647432010-03-01 15:31:04 -080098AllocationCreateBitmapRef {
99 param RsType type
100 param void * bmpPtr
101 param void * callbackData
102 param RsBitmapCallback_t callback
103 ret RsAllocation
104 }
105
Jason Samsfe08d992009-05-27 14:45:32 -0700106AllocationCreateFromBitmap {
107 param uint32_t width
108 param uint32_t height
Jason Samsea84a7c2009-09-04 14:42:41 -0700109 param RsElement dstFmt
110 param RsElement srcFmt
Jason Samsfe08d992009-05-27 14:45:32 -0700111 param bool genMips
112 param const void * data
113 ret RsAllocation
114 }
115
Jason Samsb0ec1b42009-07-28 12:02:16 -0700116AllocationCreateFromBitmapBoxed {
117 param uint32_t width
118 param uint32_t height
Jason Samsea84a7c2009-09-04 14:42:41 -0700119 param RsElement dstFmt
120 param RsElement srcFmt
Jason Samsb0ec1b42009-07-28 12:02:16 -0700121 param bool genMips
122 param const void * data
123 ret RsAllocation
124 }
125
Jason Samsfe08d992009-05-27 14:45:32 -0700126
Jason Samsd19f10d2009-05-22 14:03:28 -0700127AllocationUploadToTexture {
128 param RsAllocation alloc
Jason Samsc2908e62010-02-23 17:44:28 -0800129 param bool genMipMaps
Jason Samsd19f10d2009-05-22 14:03:28 -0700130 param uint32_t baseMipLevel
131 }
132
133AllocationUploadToBufferObject {
134 param RsAllocation alloc
135 }
136
Jason Samsd19f10d2009-05-22 14:03:28 -0700137
138AllocationData {
139 param RsAllocation va
140 param const void * data
Jason Sams07ae4062009-08-27 20:23:34 -0700141 param uint32_t bytes
142 handcodeApi
143 togglePlay
Jason Sams22534172009-08-04 16:58:20 -0700144 }
Jason Samsd19f10d2009-05-22 14:03:28 -0700145
146Allocation1DSubData {
147 param RsAllocation va
148 param uint32_t xoff
149 param uint32_t count
150 param const void *data
Jason Sams07ae4062009-08-27 20:23:34 -0700151 param uint32_t bytes
152 handcodeApi
153 togglePlay
Jason Sams22534172009-08-04 16:58:20 -0700154 }
Jason Samsd19f10d2009-05-22 14:03:28 -0700155
156Allocation2DSubData {
157 param RsAllocation va
158 param uint32_t xoff
159 param uint32_t yoff
160 param uint32_t w
161 param uint32_t h
162 param const void *data
Jason Sams07ae4062009-08-27 20:23:34 -0700163 param uint32_t bytes
Jason Samsd19f10d2009-05-22 14:03:28 -0700164 }
165
Jason Sams40a29e82009-08-10 14:55:26 -0700166AllocationRead {
167 param RsAllocation va
168 param void * data
169 }
Jason Samsd19f10d2009-05-22 14:03:28 -0700170
171Adapter1DCreate {
172 ret RsAdapter1D
173 }
174
175Adapter1DBindAllocation {
176 param RsAdapter1D adapt
177 param RsAllocation alloc
178 }
179
Jason Samsd19f10d2009-05-22 14:03:28 -0700180Adapter1DSetConstraint {
181 param RsAdapter1D adapter
182 param RsDimension dim
183 param uint32_t value
184 }
185
186Adapter1DData {
187 param RsAdapter1D adapter
188 param const void * data
Jason Sams22534172009-08-04 16:58:20 -0700189 }
Jason Samsd19f10d2009-05-22 14:03:28 -0700190
191Adapter1DSubData {
192 param RsAdapter1D adapter
193 param uint32_t xoff
194 param uint32_t count
195 param const void *data
Jason Sams22534172009-08-04 16:58:20 -0700196 }
Jason Samsd19f10d2009-05-22 14:03:28 -0700197
198Adapter2DCreate {
199 ret RsAdapter2D
200 }
201
202Adapter2DBindAllocation {
203 param RsAdapter2D adapt
204 param RsAllocation alloc
205 }
206
Jason Samsd19f10d2009-05-22 14:03:28 -0700207Adapter2DSetConstraint {
208 param RsAdapter2D adapter
209 param RsDimension dim
210 param uint32_t value
211 }
212
213Adapter2DData {
214 param RsAdapter2D adapter
215 param const void *data
Jason Sams22534172009-08-04 16:58:20 -0700216 }
Jason Samsd19f10d2009-05-22 14:03:28 -0700217
218Adapter2DSubData {
219 param RsAdapter2D adapter
220 param uint32_t xoff
221 param uint32_t yoff
222 param uint32_t w
223 param uint32_t h
224 param const void *data
225 }
226
227SamplerBegin {
228 }
229
230SamplerSet {
231 param RsSamplerParam p
232 param RsSamplerValue value
233 }
234
235SamplerCreate {
236 ret RsSampler
237 }
238
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
247
248ScriptCBegin {
249 }
250
Jason Sams22534172009-08-04 16:58:20 -0700251ScriptSetClearColor {
252 param RsScript s
Jason Samsd19f10d2009-05-22 14:03:28 -0700253 param float r
254 param float g
255 param float b
256 param float a
257 }
258
Jason Sams22534172009-08-04 16:58:20 -0700259ScriptSetTimeZone {
260 param RsScript s
Romain Guy584a3752009-07-30 18:45:01 -0700261 param const char * timeZone
262 param uint32_t length
263 }
264
Jason Sams22534172009-08-04 16:58:20 -0700265ScriptSetClearDepth {
266 param RsScript s
Jason Samsd19f10d2009-05-22 14:03:28 -0700267 param float depth
268 }
269
Jason Sams22534172009-08-04 16:58:20 -0700270ScriptSetClearStencil {
271 param RsScript s
Jason Samsd19f10d2009-05-22 14:03:28 -0700272 param uint32_t stencil
273 }
274
Jason Samsfbf0b9e2009-08-13 12:59:04 -0700275ScriptSetType {
Jason Samsd19f10d2009-05-22 14:03:28 -0700276 param RsType type
Jason Samsfbf0b9e2009-08-13 12:59:04 -0700277 param uint32_t slot
Jason Sams334ea0c2009-08-17 13:56:09 -0700278 param bool isWritable
Jason Samsfbf0b9e2009-08-13 12:59:04 -0700279 param const char * name
Jason Samsd19f10d2009-05-22 14:03:28 -0700280 }
281
Jason Samsbe2e8412009-09-16 15:04:38 -0700282ScriptSetInvoke {
283 param const char * name
284 param uint32_t slot
285 }
286
287ScriptInvoke {
288 param RsScript s
289 param uint32_t slot
290 }
291
Jason Samsfbf0b9e2009-08-13 12:59:04 -0700292ScriptSetRoot {
Jason Samsd19f10d2009-05-22 14:03:28 -0700293 param bool isRoot
294 }
295
Jason Samsfbf0b9e2009-08-13 12:59:04 -0700296
297
Jason Samsd19f10d2009-05-22 14:03:28 -0700298ScriptCSetScript {
Jack Palevichec5a20b2009-05-28 15:53:04 -0700299 param void * codePtr
Jason Samsd19f10d2009-05-22 14:03:28 -0700300 }
301
Jason Sams39ddc9502009-06-05 17:35:09 -0700302ScriptCSetText {
303 param const char * text
304 param uint32_t length
305 }
306
Jason Samsd19f10d2009-05-22 14:03:28 -0700307ScriptCCreate {
308 ret RsScript
309 }
310
Joe Onoratod7b37742009-08-09 22:57:44 -0700311ScriptCSetDefineF {
312 param const char* name
313 param float value
314 }
315
316ScriptCSetDefineI32 {
317 param const char* name
318 param int32_t value
319 }
Jason Samsd19f10d2009-05-22 14:03:28 -0700320
321ProgramFragmentStoreBegin {
322 param RsElement in
323 param RsElement out
324 }
325
326ProgramFragmentStoreColorMask {
327 param bool r
328 param bool g
329 param bool b
330 param bool a
331 }
332
333ProgramFragmentStoreBlendFunc {
334 param RsBlendSrcFunc srcFunc
335 param RsBlendDstFunc destFunc
336 }
337
338ProgramFragmentStoreDepthMask {
339 param bool enable
340}
341
342ProgramFragmentStoreDither {
343 param bool enable
344}
345
346ProgramFragmentStoreDepthFunc {
347 param RsDepthFunc func
348}
349
350ProgramFragmentStoreCreate {
351 ret RsProgramFragmentStore
352 }
353
Jason Samsebfb4362009-09-23 13:57:02 -0700354ProgramRasterCreate {
355 param RsElement in
356 param RsElement out
357 param bool pointSmooth
358 param bool lineSmooth
359 param bool pointSprite
360 ret RsProgramRaster
361}
362
363ProgramRasterSetLineWidth {
364 param RsProgramRaster pr
365 param float lw
366}
367
368ProgramRasterSetPointSize{
369 param RsProgramRaster pr
370 param float ps
371}
Jason Samsd19f10d2009-05-22 14:03:28 -0700372
373
Jason Sams0011bcf2009-12-15 12:58:36 -0800374ProgramBindConstants {
375 param RsProgram vp
376 param uint32_t slot
377 param RsAllocation constants
378 }
379
Jason Samsd19f10d2009-05-22 14:03:28 -0700380
Jason Sams68afd012009-12-17 16:55:08 -0800381ProgramBindTexture {
Jason Samsd19f10d2009-05-22 14:03:28 -0700382 param RsProgramFragment pf
383 param uint32_t slot
384 param RsAllocation a
385 }
386
Jason Sams68afd012009-12-17 16:55:08 -0800387ProgramBindSampler {
Jason Samsd19f10d2009-05-22 14:03:28 -0700388 param RsProgramFragment pf
389 param uint32_t slot
390 param RsSampler s
391 }
392
Jason Samsd19f10d2009-05-22 14:03:28 -0700393ProgramFragmentCreate {
Jason Sams68afd012009-12-17 16:55:08 -0800394 param const uint32_t * params
395 param uint32_t paramLength
Jason Samsd19f10d2009-05-22 14:03:28 -0700396 ret RsProgramFragment
397 }
398
Jason Sams7e5ab3b2009-12-15 13:27:04 -0800399ProgramFragmentCreate2 {
400 param const char * shaderText
401 param uint32_t shaderLength
402 param const uint32_t * params
403 param uint32_t paramLength
404 ret RsProgramFragment
405 }
406
Jason Samsd19f10d2009-05-22 14:03:28 -0700407ProgramVertexCreate {
Jason Sams0011bcf2009-12-15 12:58:36 -0800408 param bool texMat
Jason Samsd19f10d2009-05-22 14:03:28 -0700409 ret RsProgramVertex
410 }
411
Jason Sams0011bcf2009-12-15 12:58:36 -0800412ProgramVertexCreate2 {
413 param const char * shaderText
414 param uint32_t shaderLength
415 param const uint32_t * params
416 param uint32_t paramLength
Jason Sams7e5ab3b2009-12-15 13:27:04 -0800417 ret RsProgramVertex
Jason Samsee411122009-07-21 12:20:54 -0700418 }
419
Jason Samsbba134c2009-06-22 15:49:21 -0700420LightBegin {
421 }
422
423LightSetLocal {
424 param bool isLocal
425 }
426
427LightSetMonochromatic {
428 param bool isMono
429 }
430
431LightCreate {
432 ret RsLight light
433 }
434
Jason Samsbba134c2009-06-22 15:49:21 -0700435
436LightSetPosition {
437 param RsLight light
438 param float x
439 param float y
440 param float z
441 }
442
443LightSetColor {
444 param RsLight light
445 param float r
446 param float g
447 param float b
448 }
449
Jason Sams64676f32009-07-08 18:01:53 -0700450FileOpen {
451 ret RsFile
452 param const char *name
453 param size_t len
454 }
455
456
Jason Sams1bada8c2009-08-09 17:01:55 -0700457SimpleMeshCreate {
458 ret RsSimpleMesh
459 param RsAllocation prim
460 param RsAllocation index
461 param RsAllocation *vtx
462 param uint32_t vtxCount
463 param uint32_t primType
464 }
465
Jason Sams1bada8c2009-08-09 17:01:55 -0700466
467SimpleMeshBindIndex {
468 param RsSimpleMesh mesh
469 param RsAllocation idx
470 }
471
472SimpleMeshBindPrimitive {
473 param RsSimpleMesh mesh
474 param RsAllocation prim
475 }
476
477SimpleMeshBindVertex {
478 param RsSimpleMesh mesh
479 param RsAllocation vtx
480 param uint32_t slot
481 }
482