rsg.spec 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. ProgramStoreCreate {
  2. direct
  3. param bool colorMaskR
  4. param bool colorMaskG
  5. param bool colorMaskB
  6. param bool colorMaskA
  7. param bool depthMask
  8. param bool ditherEnable
  9. param RsBlendSrcFunc srcFunc
  10. param RsBlendDstFunc destFunc
  11. param RsDepthFunc depthFunc
  12. ret RsProgramStore
  13. }
  14. ProgramRasterCreate {
  15. direct
  16. param bool pointSprite
  17. param RsCullMode cull
  18. ret RsProgramRaster
  19. }
  20. ProgramBindConstants {
  21. param RsProgram vp
  22. param uint32_t slot
  23. param RsAllocation constants
  24. }
  25. ProgramBindTexture {
  26. param RsProgramFragment pf
  27. param uint32_t slot
  28. param RsAllocation a
  29. }
  30. ProgramBindSampler {
  31. param RsProgramFragment pf
  32. param uint32_t slot
  33. param RsSampler s
  34. }
  35. ProgramFragmentCreate {
  36. direct
  37. param const char * shaderText
  38. param const char ** textureNames
  39. param const uintptr_t * params
  40. ret RsProgramFragment
  41. }
  42. ProgramVertexCreate {
  43. direct
  44. param const char * shaderText
  45. param const char ** textureNames
  46. param const uintptr_t * params
  47. ret RsProgramVertex
  48. }
  49. FontCreateFromFile {
  50. param const char *name
  51. param float fontSize
  52. param uint32_t dpi
  53. ret RsFont
  54. }
  55. FontCreateFromMemory {
  56. param const char *name
  57. param float fontSize
  58. param uint32_t dpi
  59. param const void *data
  60. ret RsFont
  61. }
  62. MeshCreate {
  63. param RsAllocation *vtx
  64. param RsAllocation *idx
  65. param uint32_t *primType
  66. ret RsMesh
  67. }
  68. ContextBindProgramStore {
  69. param RsProgramStore pgm
  70. }
  71. ContextBindProgramFragment {
  72. param RsProgramFragment pgm
  73. }
  74. ContextBindProgramVertex {
  75. param RsProgramVertex pgm
  76. }
  77. ContextBindProgramRaster {
  78. param RsProgramRaster pgm
  79. }
  80. ContextBindFont {
  81. param RsFont pgm
  82. }
  83. ContextSetSurface {
  84. param uint32_t width
  85. param uint32_t height
  86. param RsNativeWindow sur
  87. sync
  88. }
  89. ContextBindRootScript {
  90. param RsScript sampler
  91. }
  92. ContextPause {
  93. }
  94. ContextResume {
  95. }