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 /graphics/java/android/renderscript/Allocation.java | |
| 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 'graphics/java/android/renderscript/Allocation.java')
| -rw-r--r-- | graphics/java/android/renderscript/Allocation.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java index 4b8c58e..9ac1a00 100644 --- a/graphics/java/android/renderscript/Allocation.java +++ b/graphics/java/android/renderscript/Allocation.java @@ -99,6 +99,14 @@ public class Allocation extends BaseObj { */ public static final int USAGE_GRAPHICS_CONSTANTS = 0x0008; + /** + * @hide + * USAGE_GRAPHICS_RENDER_TARGET The allcation will be used as a + * target for offscreen rendering + * + */ + public static final int USAGE_GRAPHICS_RENDER_TARGET = 0x0010; + /** * Controls mipmap behavior when using the bitmap creation and @@ -137,7 +145,8 @@ public class Allocation extends BaseObj { if ((usage & ~(USAGE_SCRIPT | USAGE_GRAPHICS_TEXTURE | USAGE_GRAPHICS_VERTEX | - USAGE_GRAPHICS_CONSTANTS)) != 0) { + USAGE_GRAPHICS_CONSTANTS | + USAGE_GRAPHICS_RENDER_TARGET)) != 0) { throw new RSIllegalArgumentException("Unknown usage specified."); } mType = t; |
