• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <stdint.h>
2 
3 
4 typedef void * RsAllocation;
5 typedef void * RsContext;
6 typedef void * RsDevice;
7 typedef void * RsElement;
8 typedef void * RsSampler;
9 typedef void * RsScript;
10 typedef void * RsMesh;
11 typedef void * RsType;
12 typedef void * RsProgramFragment;
13 typedef void * RsProgramStore;
14 
15 typedef struct {
16     float m[16];
17 } rsc_Matrix;
18 
19 
20 typedef struct {
21     float v[4];
22 } rsc_Vector4;
23 
24 #define RS_PROGRAM_VERTEX_MODELVIEW_OFFSET 0
25 #define RS_PROGRAM_VERTEX_PROJECTION_OFFSET 16
26 #define RS_PROGRAM_VERTEX_TEXTURE_OFFSET 32
27 #define RS_PROGRAM_VERTEX_MVP_OFFSET 48
28 
29 #define RS_KERNEL_MAX_ARGUMENTS 256
30 #define RS_CLOSURE_MAX_NUMBER_ARGS_AND_BINDINGS 1024
31 #define RS_SCRIPT_GROUP_MAX_NUMBER_CLOSURES (2<<20)
32