blob: 1a8102175ee3fb424b5e1396e9ce2023208c841c [file] [log] [blame]
Jason Sams326e0dd2009-05-22 14:03:28 -07001
2
Jason Sams326e0dd2009-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
Joe Onorato57b79ce2009-08-09 22:57:44 -070019ContextSetDefineF {
20 param const char* name
21 param float value
22 }
23
24ContextSetDefineI32 {
25 param const char* name
26 param int32_t value
27 }
28
Jason Samsa0a1b6f2009-06-10 15:04:38 -070029AssignName {
30 param void *obj
31 param const char *name
Jason Samsa4a54e42009-06-10 18:39:40 -070032 param size_t len
Jason Samsa0a1b6f2009-06-10 15:04:38 -070033 }
Jason Sams326e0dd2009-05-22 14:03:28 -070034
Jason Sams707aaf32009-08-18 14:14:24 -070035ObjDestroy {
36 param void *obj
37 }
38
Jason Sams326e0dd2009-05-22 14:03:28 -070039ElementBegin {
40}
41
42ElementAddPredefined {
43 param RsElementPredefined predef
44 }
45
46ElementAdd {
47 param RsDataKind dataKind
48 param RsDataType dataType
49 param bool isNormalized
50 param size_t bits
Jason Sams8b2c0652009-08-12 17:54:11 -070051 param const char * name
Jason Sams326e0dd2009-05-22 14:03:28 -070052 }
53
54ElementCreate {
55 ret RsElement
56 }
57
58ElementGetPredefined {
59 param RsElementPredefined predef
60 ret RsElement
61 }
62
Jason Sams326e0dd2009-05-22 14:03:28 -070063TypeBegin {
64 param RsElement type
65 }
66
67TypeAdd {
68 param RsDimension dim
69 param size_t value
70 }
71
72TypeCreate {
73 ret RsType
74 }
75
Jason Sams326e0dd2009-05-22 14:03:28 -070076AllocationCreateTyped {
77 param RsType type
78 ret RsAllocation
79 }
80
81AllocationCreatePredefSized {
82 param RsElementPredefined predef
83 param size_t count
84 ret RsAllocation
85 }
86
87AllocationCreateSized {
88 param RsElement e
89 param size_t count
90 ret RsAllocation
91 }
92
Jason Sams6678e9b2009-05-27 14:45:32 -070093AllocationCreateFromFile {
Jason Sams326e0dd2009-05-22 14:03:28 -070094 param const char *file
95 param bool genMips
96 ret RsAllocation
97 }
98
Jason Sams6678e9b2009-05-27 14:45:32 -070099AllocationCreateFromBitmap {
100 param uint32_t width
101 param uint32_t height
102 param RsElementPredefined dstFmt
103 param RsElementPredefined srcFmt
104 param bool genMips
105 param const void * data
106 ret RsAllocation
107 }
108
Jason Samsc9d43db2009-07-28 12:02:16 -0700109AllocationCreateFromBitmapBoxed {
110 param uint32_t width
111 param uint32_t height
112 param RsElementPredefined dstFmt
113 param RsElementPredefined srcFmt
114 param bool genMips
115 param const void * data
116 ret RsAllocation
117 }
118
Jason Sams6678e9b2009-05-27 14:45:32 -0700119
Jason Sams326e0dd2009-05-22 14:03:28 -0700120AllocationUploadToTexture {
121 param RsAllocation alloc
122 param uint32_t baseMipLevel
123 }
124
125AllocationUploadToBufferObject {
126 param RsAllocation alloc
127 }
128
Jason Sams326e0dd2009-05-22 14:03:28 -0700129
130AllocationData {
131 param RsAllocation va
132 param const void * data
Jason Samsd34b7252009-08-04 16:58:20 -0700133 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700134
135Allocation1DSubData {
136 param RsAllocation va
137 param uint32_t xoff
138 param uint32_t count
139 param const void *data
Jason Samsd34b7252009-08-04 16:58:20 -0700140 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700141
142Allocation2DSubData {
143 param RsAllocation va
144 param uint32_t xoff
145 param uint32_t yoff
146 param uint32_t w
147 param uint32_t h
148 param const void *data
149 }
150
Jason Samse579df42009-08-10 14:55:26 -0700151AllocationRead {
152 param RsAllocation va
153 param void * data
154 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700155
156Adapter1DCreate {
157 ret RsAdapter1D
158 }
159
160Adapter1DBindAllocation {
161 param RsAdapter1D adapt
162 param RsAllocation alloc
163 }
164
Jason Sams326e0dd2009-05-22 14:03:28 -0700165Adapter1DSetConstraint {
166 param RsAdapter1D adapter
167 param RsDimension dim
168 param uint32_t value
169 }
170
171Adapter1DData {
172 param RsAdapter1D adapter
173 param const void * data
Jason Samsd34b7252009-08-04 16:58:20 -0700174 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700175
176Adapter1DSubData {
177 param RsAdapter1D adapter
178 param uint32_t xoff
179 param uint32_t count
180 param const void *data
Jason Samsd34b7252009-08-04 16:58:20 -0700181 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700182
183Adapter2DCreate {
184 ret RsAdapter2D
185 }
186
187Adapter2DBindAllocation {
188 param RsAdapter2D adapt
189 param RsAllocation alloc
190 }
191
Jason Sams326e0dd2009-05-22 14:03:28 -0700192Adapter2DSetConstraint {
193 param RsAdapter2D adapter
194 param RsDimension dim
195 param uint32_t value
196 }
197
198Adapter2DData {
199 param RsAdapter2D adapter
200 param const void *data
Jason Samsd34b7252009-08-04 16:58:20 -0700201 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700202
203Adapter2DSubData {
204 param RsAdapter2D adapter
205 param uint32_t xoff
206 param uint32_t yoff
207 param uint32_t w
208 param uint32_t h
209 param const void *data
210 }
211
212SamplerBegin {
213 }
214
215SamplerSet {
216 param RsSamplerParam p
217 param RsSamplerValue value
218 }
219
220SamplerCreate {
221 ret RsSampler
222 }
223
224
225TriangleMeshBegin {
226 param RsElement vertex
227 param RsElement index
228 }
229
230TriangleMeshAddVertex {
231 param const void *vtx
232 }
233
234TriangleMeshAddTriangle {
235 param uint32_t idx1
236 param uint32_t idx2
237 param uint32_t idx3
238 }
239
240TriangleMeshCreate {
241 ret RsTriangleMesh
242 }
243
Jason Sams326e0dd2009-05-22 14:03:28 -0700244
245TriangleMeshRender {
246 param RsTriangleMesh vtm
247 }
248
249TriangleMeshRenderRange {
250 param RsTriangleMesh vtm
251 param uint32_t start
252 param uint32_t count
253 }
254
Jason Sams326e0dd2009-05-22 14:03:28 -0700255
256ScriptBindAllocation {
257 param RsScript vtm
258 param RsAllocation va
259 param uint32_t slot
260 }
261
262
263ScriptCBegin {
264 }
265
Jason Samsd34b7252009-08-04 16:58:20 -0700266ScriptSetClearColor {
267 param RsScript s
Jason Sams326e0dd2009-05-22 14:03:28 -0700268 param float r
269 param float g
270 param float b
271 param float a
272 }
273
Jason Samsd34b7252009-08-04 16:58:20 -0700274ScriptSetTimeZone {
275 param RsScript s
Romain Guy98e10fd2009-07-30 18:45:01 -0700276 param const char * timeZone
277 param uint32_t length
278 }
279
Jason Samsd34b7252009-08-04 16:58:20 -0700280ScriptSetClearDepth {
281 param RsScript s
Jason Sams326e0dd2009-05-22 14:03:28 -0700282 param float depth
283 }
284
Jason Samsd34b7252009-08-04 16:58:20 -0700285ScriptSetClearStencil {
286 param RsScript s
Jason Sams326e0dd2009-05-22 14:03:28 -0700287 param uint32_t stencil
288 }
289
Jason Samsfa517192009-08-13 12:59:04 -0700290ScriptSetType {
Jason Sams326e0dd2009-05-22 14:03:28 -0700291 param RsType type
Jason Samsfa517192009-08-13 12:59:04 -0700292 param uint32_t slot
Jason Sams90b36a82009-08-17 13:56:09 -0700293 param bool isWritable
Jason Samsfa517192009-08-13 12:59:04 -0700294 param const char * name
Jason Sams326e0dd2009-05-22 14:03:28 -0700295 }
296
Jason Samsfa517192009-08-13 12:59:04 -0700297ScriptSetRoot {
Jason Sams326e0dd2009-05-22 14:03:28 -0700298 param bool isRoot
299 }
300
Jason Samsfa517192009-08-13 12:59:04 -0700301
302
Jason Sams326e0dd2009-05-22 14:03:28 -0700303ScriptCSetScript {
Jack Palevich1ef8b802009-05-28 15:53:04 -0700304 param void * codePtr
Jason Sams326e0dd2009-05-22 14:03:28 -0700305 }
306
Jason Sams1f526332009-06-05 17:35:09 -0700307ScriptCSetText {
308 param const char * text
309 param uint32_t length
310 }
311
Jason Sams326e0dd2009-05-22 14:03:28 -0700312ScriptCCreate {
313 ret RsScript
314 }
315
Joe Onorato57b79ce2009-08-09 22:57:44 -0700316ScriptCSetDefineF {
317 param const char* name
318 param float value
319 }
320
321ScriptCSetDefineI32 {
322 param const char* name
323 param int32_t value
324 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700325
326ProgramFragmentStoreBegin {
327 param RsElement in
328 param RsElement out
329 }
330
331ProgramFragmentStoreColorMask {
332 param bool r
333 param bool g
334 param bool b
335 param bool a
336 }
337
338ProgramFragmentStoreBlendFunc {
339 param RsBlendSrcFunc srcFunc
340 param RsBlendDstFunc destFunc
341 }
342
343ProgramFragmentStoreDepthMask {
344 param bool enable
345}
346
347ProgramFragmentStoreDither {
348 param bool enable
349}
350
351ProgramFragmentStoreDepthFunc {
352 param RsDepthFunc func
353}
354
355ProgramFragmentStoreCreate {
356 ret RsProgramFragmentStore
357 }
358
359
360
361ProgramFragmentBegin {
362 param RsElement in
363 param RsElement out
364 }
365
366ProgramFragmentBindTexture {
367 param RsProgramFragment pf
368 param uint32_t slot
369 param RsAllocation a
370 }
371
372ProgramFragmentBindSampler {
373 param RsProgramFragment pf
374 param uint32_t slot
375 param RsSampler s
376 }
377
378ProgramFragmentSetType {
379 param uint32_t slot
380 param RsType t
381 }
382
383ProgramFragmentSetEnvMode {
384 param uint32_t slot
385 param RsTexEnvMode env
386 }
387
388ProgramFragmentSetTexEnable {
389 param uint32_t slot
390 param bool enable
391 }
392
393ProgramFragmentCreate {
394 ret RsProgramFragment
395 }
396
Jason Sams326e0dd2009-05-22 14:03:28 -0700397
398ProgramVertexBegin {
399 param RsElement in
400 param RsElement out
401 }
402
403ProgramVertexCreate {
404 ret RsProgramVertex
405 }
406
407ProgramVertexBindAllocation {
408 param RsProgramVertex vpgm
Jason Sams326e0dd2009-05-22 14:03:28 -0700409 param RsAllocation constants
410 }
411
Jason Sams326e0dd2009-05-22 14:03:28 -0700412ProgramVertexSetTextureMatrixEnable {
413 param bool enable
414 }
415
Jason Samsb5909ce2009-07-21 12:20:54 -0700416ProgramVertexAddLight {
417 param RsLight light
418 }
419
Jason Sams62bc1db2009-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 Sams62bc1db2009-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 Samsa5597fc2009-07-08 18:01:53 -0700450FileOpen {
451 ret RsFile
452 param const char *name
453 param size_t len
454 }
455
456
Jason Samse5ffb872009-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 Samse5ffb872009-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