diff options
author | Alex Sakhartchouk <alexst@google.com> | 2011-04-01 14:19:01 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2011-04-01 14:19:01 -0700 |
commit | 8e90f2bc1fa35a2dc7bd2aab8b8241b628800218 (patch) | |
tree | c2b3e36a41b00d7ef8be23d6441ff44893f686ab /libs/rs/scriptc | |
parent | 397de169e5462bf0c62506827819f93336b3f123 (diff) | |
download | frameworks_base-8e90f2bc1fa35a2dc7bd2aab8b8241b628800218.zip frameworks_base-8e90f2bc1fa35a2dc7bd2aab8b8241b628800218.tar.gz frameworks_base-8e90f2bc1fa35a2dc7bd2aab8b8241b628800218.tar.bz2 |
First draft of fbo in renderscript.
Updating samples and benchmark
Change-Id: I469bf8b842fca72b59475c8fa024c12cf0e14954
Diffstat (limited to 'libs/rs/scriptc')
-rw-r--r-- | libs/rs/scriptc/rs_graphics.rsh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libs/rs/scriptc/rs_graphics.rsh b/libs/rs/scriptc/rs_graphics.rsh index 67ffc3d..d53bc95 100644 --- a/libs/rs/scriptc/rs_graphics.rsh +++ b/libs/rs/scriptc/rs_graphics.rsh @@ -1,6 +1,46 @@ #ifndef __RS_GRAPHICS_RSH__ #define __RS_GRAPHICS_RSH__ +/** + * Set the color target used for all subsequent rendering calls + * @param colorTarget + * @param slot + */ +extern void __attribute__((overloadable)) + rsgBindColorTarget(rs_allocation colorTarget, uint slot); + +/** + * Clear the previously set color target + * @param slot + */ +extern void __attribute__((overloadable)) + rsgClearColorTarget(uint slot); + +/** + * Set the depth target used for all subsequent rendering calls + * @param depthTarget + */ +extern void __attribute__((overloadable)) + rsgBindDepthTarget(rs_allocation depthTarget); + +/** + * Clear the previously set depth target + */ +extern void __attribute__((overloadable)) + rsgClearDepthTarget(void); + +/** + * Clear all color and depth targets and resume rendering into + * the framebuffer + */ +extern void __attribute__((overloadable)) + rsgClearAllRenderTargets(void); + +/** + * Force RenderScript to finish all rendering commands + */ +extern uint __attribute__((overloadable)) + rsgFinish(void); /** * Bind a new ProgramFragment to the rendering context. |