Tim Murray | 29226ae | 2013-03-18 14:20:14 -0700 | [diff] [blame] | 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 | |
| 15 | ProgramRasterCreate { |
| 16 | direct |
| 17 | param bool pointSprite |
| 18 | param RsCullMode cull |
| 19 | ret RsProgramRaster |
| 20 | } |
| 21 | |
| 22 | ProgramBindConstants { |
| 23 | param RsProgram vp |
| 24 | param uint32_t slot |
| 25 | param RsAllocation constants |
| 26 | } |
| 27 | |
| 28 | |
| 29 | ProgramBindTexture { |
| 30 | param RsProgramFragment pf |
| 31 | param uint32_t slot |
| 32 | param RsAllocation a |
| 33 | } |
| 34 | |
| 35 | ProgramBindSampler { |
| 36 | param RsProgramFragment pf |
| 37 | param uint32_t slot |
| 38 | param RsSampler s |
| 39 | } |
| 40 | |
| 41 | ProgramFragmentCreate { |
| 42 | direct |
| 43 | param const char * shaderText |
| 44 | param const char ** textureNames |
| 45 | param const uint32_t * params |
| 46 | ret RsProgramFragment |
| 47 | } |
| 48 | |
| 49 | ProgramVertexCreate { |
| 50 | direct |
| 51 | param const char * shaderText |
| 52 | param const char ** textureNames |
| 53 | param const uint32_t * params |
| 54 | ret RsProgramVertex |
| 55 | } |
| 56 | |
| 57 | FontCreateFromFile { |
| 58 | param const char *name |
| 59 | param float fontSize |
| 60 | param uint32_t dpi |
| 61 | ret RsFont |
| 62 | } |
| 63 | |
| 64 | FontCreateFromMemory { |
| 65 | param const char *name |
| 66 | param float fontSize |
| 67 | param uint32_t dpi |
| 68 | param const void *data |
| 69 | ret RsFont |
| 70 | } |
| 71 | |
| 72 | MeshCreate { |
| 73 | param RsAllocation *vtx |
| 74 | param RsAllocation *idx |
| 75 | param uint32_t *primType |
| 76 | ret RsMesh |
| 77 | } |
| 78 | |
| 79 | PathCreate { |
| 80 | param RsPathPrimitive pp |
| 81 | param bool isStatic |
| 82 | param RsAllocation vertex |
| 83 | param RsAllocation loops |
| 84 | param float quality |
| 85 | ret RsPath |
| 86 | } |
Tim Murray | 099bc26 | 2013-03-20 16:54:03 -0700 | [diff] [blame^] | 87 | |
| 88 | ContextBindProgramStore { |
| 89 | param RsProgramStore pgm |
| 90 | } |
| 91 | |
| 92 | ContextBindProgramFragment { |
| 93 | param RsProgramFragment pgm |
| 94 | } |
| 95 | |
| 96 | ContextBindProgramVertex { |
| 97 | param RsProgramVertex pgm |
| 98 | } |
| 99 | |
| 100 | ContextBindProgramRaster { |
| 101 | param RsProgramRaster pgm |
| 102 | } |
| 103 | |
| 104 | ContextBindFont { |
| 105 | param RsFont pgm |
| 106 | } |
| 107 | |
| 108 | ContextSetSurface { |
| 109 | param uint32_t width |
| 110 | param uint32_t height |
| 111 | param RsNativeWindow sur |
| 112 | sync |
| 113 | } |
| 114 | |
| 115 | ContextBindRootScript { |
| 116 | param RsScript sampler |
| 117 | } |
| 118 | |
| 119 | ContextPause { |
| 120 | } |
| 121 | |
| 122 | ContextResume { |
| 123 | } |