diff options
author | Alex Sakhartchouk <alexst@google.com> | 2012-02-06 19:13:47 -0800 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2012-02-06 19:13:47 -0800 |
commit | e8bb420a687598be9801e7ff4a0d114fa72ac5bc (patch) | |
tree | 5ea8289ca8c3cabb78cffbb2334c490fcb2bf53e /tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/TextureParam.java | |
parent | 6f31c36a3dbe5e61644ec39c4fcad0284d50e4f1 (diff) | |
download | frameworks_base-e8bb420a687598be9801e7ff4a0d114fa72ac5bc.zip frameworks_base-e8bb420a687598be9801e7ff4a0d114fa72ac5bc.tar.gz frameworks_base-e8bb420a687598be9801e7ff4a0d114fa72ac5bc.tar.bz2 |
Streamlining texture creation.
Adding render target textureas.
Adding texture params for shaders.
Making it easier to bind root script.
Change-Id: I96dfc6ffba8bb7391d03a84682c43c82387e0be3
Diffstat (limited to 'tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/TextureParam.java')
-rw-r--r-- | tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/TextureParam.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/TextureParam.java b/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/TextureParam.java index dd6b8f2..e656ed2 100644 --- a/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/TextureParam.java +++ b/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/TextureParam.java @@ -54,6 +54,10 @@ public class TextureParam extends ShaderParam { } void initLocalData() { + mData.type = ScriptC_export.const_ShaderParam_TEXTURE; + if (mTexture != null) { + mData.texture = mTexture.getRsData(false).getAllocation(); + } } } |