diff options
author | Alex Sakhartchouk <alexst@google.com> | 2010-08-24 11:37:33 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2010-08-24 14:00:58 -0700 |
commit | d36f248eaf06c569010649902df653da1a9e2acc (patch) | |
tree | ddfc7d8fc104f7fc91a58b83333d77263faa6fd2 /graphics/java/android/renderscript/ProgramStore.java | |
parent | 7a9f6faa3c1a058d27548a329df464f2eaf1f7d1 (diff) | |
download | frameworks_base-d36f248eaf06c569010649902df653da1a9e2acc.zip frameworks_base-d36f248eaf06c569010649902df653da1a9e2acc.tar.gz frameworks_base-d36f248eaf06c569010649902df653da1a9e2acc.tar.bz2 |
More work on the renderscript sample
Change-Id: Ib1812bbaa38180ca63d6d53c9cc3aeeee4134725
Diffstat (limited to 'graphics/java/android/renderscript/ProgramStore.java')
-rw-r--r-- | graphics/java/android/renderscript/ProgramStore.java | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/graphics/java/android/renderscript/ProgramStore.java b/graphics/java/android/renderscript/ProgramStore.java index e249842..32c0d01 100644 --- a/graphics/java/android/renderscript/ProgramStore.java +++ b/graphics/java/android/renderscript/ProgramStore.java @@ -79,139 +79,139 @@ public class ProgramStore extends BaseObj { super(id, rs); } - public static ProgramStore BlendNone_DepthTest(RenderScript rs) { - if(rs.mProgramStore_BlendNone_DepthTest == null) { + public static ProgramStore BLEND_NONE_DEPTH_TEST(RenderScript rs) { + if(rs.mProgramStore_BLEND_NONE_DEPTH_TEST == null) { ProgramStore.Builder builder = new ProgramStore.Builder(rs); builder.setDepthFunc(ProgramStore.DepthFunc.LESS); builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); builder.setDitherEnable(false); builder.setDepthMask(true); - rs.mProgramStore_BlendNone_DepthTest = builder.create(); + rs.mProgramStore_BLEND_NONE_DEPTH_TEST = builder.create(); } - return rs.mProgramStore_BlendNone_DepthTest; + return rs.mProgramStore_BLEND_NONE_DEPTH_TEST; } - public static ProgramStore BlendNone_DepthNoDepth(RenderScript rs) { - if(rs.mProgramStore_BlendNone_DepthNoDepth == null) { + public static ProgramStore BLEND_NONE_DEPTH_NO_DEPTH(RenderScript rs) { + if(rs.mProgramStore_BLEND_NONE_DEPTH_NO_DEPTH == null) { ProgramStore.Builder builder = new ProgramStore.Builder(rs); builder.setDepthFunc(ProgramStore.DepthFunc.ALWAYS); builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); builder.setDitherEnable(false); builder.setDepthMask(false); - rs.mProgramStore_BlendNone_DepthNoDepth = builder.create(); + rs.mProgramStore_BLEND_NONE_DEPTH_NO_DEPTH = builder.create(); } - return rs.mProgramStore_BlendNone_DepthNoDepth; + return rs.mProgramStore_BLEND_NONE_DEPTH_NO_DEPTH; } - public static ProgramStore BlendNone_DepthNoTest(RenderScript rs) { - if(rs.mProgramStore_BlendNone_DepthNoTest == null) { + public static ProgramStore BLEND_NONE_DEPTH_NO_TEST(RenderScript rs) { + if(rs.mProgramStore_BLEND_NONE_DEPTH_NO_TEST == null) { ProgramStore.Builder builder = new ProgramStore.Builder(rs); builder.setDepthFunc(ProgramStore.DepthFunc.ALWAYS); builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); builder.setDitherEnable(false); builder.setDepthMask(true); - rs.mProgramStore_BlendNone_DepthNoTest = builder.create(); + rs.mProgramStore_BLEND_NONE_DEPTH_NO_TEST = builder.create(); } - return rs.mProgramStore_BlendNone_DepthNoTest; + return rs.mProgramStore_BLEND_NONE_DEPTH_NO_TEST; } - public static ProgramStore BlendNone_DepthNoWrite(RenderScript rs) { - if(rs.mProgramStore_BlendNone_DepthNoWrite == null) { + public static ProgramStore BLEND_NONE_DEPTH_NO_WRITE(RenderScript rs) { + if(rs.mProgramStore_BLEND_NONE_DEPTH_NO_WRITE == null) { ProgramStore.Builder builder = new ProgramStore.Builder(rs); builder.setDepthFunc(ProgramStore.DepthFunc.LESS); builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); builder.setDitherEnable(false); builder.setDepthMask(false); - rs.mProgramStore_BlendNone_DepthNoWrite = builder.create(); + rs.mProgramStore_BLEND_NONE_DEPTH_NO_WRITE = builder.create(); } - return rs.mProgramStore_BlendNone_DepthNoWrite; + return rs.mProgramStore_BLEND_NONE_DEPTH_NO_WRITE; } - public static ProgramStore BlendAlpha_DepthTest(RenderScript rs) { - if(rs.mProgramStore_BlendAlpha_DepthTest == null) { + public static ProgramStore BLEND_ALPHA_DEPTH_TEST(RenderScript rs) { + if(rs.mProgramStore_BLEND_ALPHA_DEPTH_TEST == null) { ProgramStore.Builder builder = new ProgramStore.Builder(rs); builder.setDepthFunc(ProgramStore.DepthFunc.LESS); builder.setBlendFunc(BlendSrcFunc.SRC_ALPHA, BlendDstFunc.ONE_MINUS_SRC_ALPHA); builder.setDitherEnable(false); builder.setDepthMask(true); - rs.mProgramStore_BlendAlpha_DepthTest = builder.create(); + rs.mProgramStore_BLEND_ALPHA_DEPTH_TEST = builder.create(); } - return rs.mProgramStore_BlendAlpha_DepthTest; + return rs.mProgramStore_BLEND_ALPHA_DEPTH_TEST; } - public static ProgramStore BlendAlpha_DepthNoDepth(RenderScript rs) { - if(rs.mProgramStore_BlendAlpha_DepthNoDepth == null) { + public static ProgramStore BLEND_ALPHA_DEPTH_NO_DEPTH(RenderScript rs) { + if(rs.mProgramStore_BLEND_ALPHA_DEPTH_NO_DEPTH == null) { ProgramStore.Builder builder = new ProgramStore.Builder(rs); builder.setDepthFunc(ProgramStore.DepthFunc.ALWAYS); builder.setBlendFunc(BlendSrcFunc.SRC_ALPHA, BlendDstFunc.ONE_MINUS_SRC_ALPHA); builder.setDitherEnable(false); builder.setDepthMask(false); - rs.mProgramStore_BlendAlpha_DepthNoDepth = builder.create(); + rs.mProgramStore_BLEND_ALPHA_DEPTH_NO_DEPTH = builder.create(); } - return rs.mProgramStore_BlendAlpha_DepthNoDepth; + return rs.mProgramStore_BLEND_ALPHA_DEPTH_NO_DEPTH; } - public static ProgramStore BlendAlpha_DepthNoTest(RenderScript rs) { - if(rs.mProgramStore_BlendAlpha_DepthNoTest == null) { + public static ProgramStore BLEND_ALPHA_DEPTH_NO_TEST(RenderScript rs) { + if(rs.mProgramStore_BLEND_ALPHA_DEPTH_NO_TEST == null) { ProgramStore.Builder builder = new ProgramStore.Builder(rs); builder.setDepthFunc(ProgramStore.DepthFunc.ALWAYS); builder.setBlendFunc(BlendSrcFunc.SRC_ALPHA, BlendDstFunc.ONE_MINUS_SRC_ALPHA); builder.setDitherEnable(false); builder.setDepthMask(true); - rs.mProgramStore_BlendAlpha_DepthNoTest = builder.create(); + rs.mProgramStore_BLEND_ALPHA_DEPTH_NO_TEST = builder.create(); } - return rs.mProgramStore_BlendAlpha_DepthNoTest; + return rs.mProgramStore_BLEND_ALPHA_DEPTH_NO_TEST; } - public static ProgramStore BlendAlpha_DepthNoWrite(RenderScript rs) { - if(rs.mProgramStore_BlendAlpha_DepthNoWrite == null) { + public static ProgramStore BLEND_ALPHA_DEPTH_NO_WRITE(RenderScript rs) { + if(rs.mProgramStore_BLEND_ALPHA_DEPTH_NO_WRITE == null) { ProgramStore.Builder builder = new ProgramStore.Builder(rs); builder.setDepthFunc(ProgramStore.DepthFunc.LESS); builder.setBlendFunc(BlendSrcFunc.SRC_ALPHA, BlendDstFunc.ONE_MINUS_SRC_ALPHA); builder.setDitherEnable(false); builder.setDepthMask(false); - rs.mProgramStore_BlendAlpha_DepthNoWrite = builder.create(); + rs.mProgramStore_BLEND_ALPHA_DEPTH_NO_WRITE = builder.create(); } - return rs.mProgramStore_BlendAlpha_DepthNoWrite; + return rs.mProgramStore_BLEND_ALPHA_DEPTH_NO_WRITE; } - public static ProgramStore BlendAdd_DepthTest(RenderScript rs) { - if(rs.mProgramStore_BlendAdd_DepthTest == null) { + public static ProgramStore BLEND_ADD_DEPTH_TEST(RenderScript rs) { + if(rs.mProgramStore_BLEND_ADD_DEPTH_TEST == null) { ProgramStore.Builder builder = new ProgramStore.Builder(rs); builder.setDepthFunc(ProgramStore.DepthFunc.LESS); builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ONE); builder.setDitherEnable(false); builder.setDepthMask(true); - rs.mProgramStore_BlendAdd_DepthTest = builder.create(); + rs.mProgramStore_BLEND_ADD_DEPTH_TEST = builder.create(); } - return rs.mProgramStore_BlendAdd_DepthTest; + return rs.mProgramStore_BLEND_ADD_DEPTH_TEST; } - public static ProgramStore BlendAdd_DepthNoDepth(RenderScript rs) { - if(rs.mProgramStore_BlendAdd_DepthNoDepth == null) { + public static ProgramStore BLEND_ADD_DEPTH_NO_DEPTH(RenderScript rs) { + if(rs.mProgramStore_BLEND_ADD_DEPTH_NO_DEPTH == null) { ProgramStore.Builder builder = new ProgramStore.Builder(rs); builder.setDepthFunc(ProgramStore.DepthFunc.ALWAYS); builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ONE); builder.setDitherEnable(false); builder.setDepthMask(false); - rs.mProgramStore_BlendAdd_DepthNoDepth = builder.create(); + rs.mProgramStore_BLEND_ADD_DEPTH_NO_DEPTH = builder.create(); } - return rs.mProgramStore_BlendAdd_DepthNoDepth; + return rs.mProgramStore_BLEND_ADD_DEPTH_NO_DEPTH; } - public static ProgramStore BlendAdd_DepthNoTest(RenderScript rs) { - if(rs.mProgramStore_BlendAdd_DepthNoTest == null) { + public static ProgramStore BLEND_ADD_DEPTH_NO_TEST(RenderScript rs) { + if(rs.mProgramStore_BLEND_ADD_DEPTH_NO_TEST == null) { ProgramStore.Builder builder = new ProgramStore.Builder(rs); builder.setDepthFunc(ProgramStore.DepthFunc.ALWAYS); builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ONE); builder.setDitherEnable(false); builder.setDepthMask(true); - rs.mProgramStore_BlendAdd_DepthNoDepth = builder.create(); + rs.mProgramStore_BLEND_ADD_DEPTH_NO_DEPTH = builder.create(); } - return rs.mProgramStore_BlendAdd_DepthNoTest; + return rs.mProgramStore_BLEND_ADD_DEPTH_NO_TEST; } - public static ProgramStore BlendAdd_DepthNoWrite(RenderScript rs) { - if(rs.mProgramStore_BlendAdd_DepthNoWrite == null) { + public static ProgramStore BLEND_ADD_DEPTH_NO_WRITE(RenderScript rs) { + if(rs.mProgramStore_BLEND_ADD_DEPTH_NO_WRITE == null) { ProgramStore.Builder builder = new ProgramStore.Builder(rs); builder.setDepthFunc(ProgramStore.DepthFunc.ALWAYS); builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ONE); builder.setDitherEnable(false); builder.setDepthMask(false); - rs.mProgramStore_BlendAdd_DepthNoWrite = builder.create(); + rs.mProgramStore_BLEND_ADD_DEPTH_NO_WRITE = builder.create(); } - return rs.mProgramStore_BlendAdd_DepthNoWrite; + return rs.mProgramStore_BLEND_ADD_DEPTH_NO_WRITE; } public static class Builder { |