rsEnv.h 708 B

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