Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 1 | #include <stdint.h> |
| 2 | |
| 3 | |
| 4 | typedef void * RsAdapter1D; |
| 5 | typedef void * RsAdapter2D; |
| 6 | typedef void * RsAllocation; |
| 7 | typedef void * RsContext; |
| 8 | typedef void * RsDevice; |
| 9 | typedef void * RsElement; |
| 10 | typedef void * RsSampler; |
| 11 | typedef void * RsScript; |
Alex Sakhartchouk | 4e9a7a8 | 2010-07-01 16:14:06 -0700 | [diff] [blame] | 12 | typedef void * RsMesh; |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 13 | typedef void * RsType; |
| 14 | typedef void * RsProgramFragment; |
Jason Sams | ccc010b | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 15 | typedef void * RsProgramStore; |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 16 | |
| 17 | typedef struct { |
| 18 | float m[16]; |
| 19 | } rsc_Matrix; |
| 20 | |
| 21 | |
| 22 | typedef struct { |
| 23 | float v[4]; |
| 24 | } rsc_Vector4; |
| 25 | |
| 26 | #define RS_PROGRAM_VERTEX_MODELVIEW_OFFSET 0 |
| 27 | #define RS_PROGRAM_VERTEX_PROJECTION_OFFSET 16 |
| 28 | #define RS_PROGRAM_VERTEX_TEXTURE_OFFSET 32 |
Alex Sakhartchouk | e7ae69f | 2010-09-14 09:50:43 -0700 | [diff] [blame] | 29 | #define RS_PROGRAM_VERTEX_MVP_OFFSET 48 |
Yang Ni | f2a1704 | 2015-05-05 12:39:14 -0700 | [diff] [blame^] | 30 | |
| 31 | #define RS_KERNEL_MAX_ARGUMENTS 256 |
| 32 | #define RS_CLOSURE_MAX_NUMBER_ARGS_AND_BINDINGS 1024 |
| 33 | #define RS_SCRIPT_GROUP_MAX_NUMBER_CLOSURES (2<<20) |