Lines Matching full:builder
19 import android.renderscript.ProgramVertexFixedFunction.Builder;
167 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS);
174 ProgramVertex.Builder builder = new ProgramVertex.Builder(mRS);
175 builder.setShader(mRes, R.raw.spacecloud_vs);
176 builder.addConstant(mPvConsts.getType());
177 builder.addInput(mSpaceCloudsMesh.getVertexAllocation(0).getType().getElement());
178 ProgramVertex pvs = builder.create();
185 builder = new ProgramVertex.Builder(mRS);
186 builder.setShader(mRes, R.raw.bgstar_vs);
187 builder.addConstant(mPvConsts.getType());
188 builder.addInput(mBgStarsMesh.getVertexAllocation(0).getType().getElement());
189 pvs = builder.create();
195 builder = new ProgramVertex.Builder(mRS);
196 builder.setShader(mRes, R.raw.staticstar_vs);
197 builder.addConstant(mPvConsts.getType());
198 builder.addInput(mBgStarsMesh.getVertexAllocation(0).getType().getElement());
199 pvs = builder.create();
207 Sampler.Builder samplerBuilder = new Sampler.Builder(mRS);
213 ProgramFragmentFixedFunction.Builder builderff =
214 new ProgramFragmentFixedFunction.Builder(mRS);
215 builderff = new ProgramFragmentFixedFunction.Builder(mRS);
216 builderff.setTexture(ProgramFragmentFixedFunction.Builder.EnvMode.REPLACE,
217 ProgramFragmentFixedFunction.Builder.Format.RGB, 0);
223 ProgramFragment.Builder builder = new ProgramFragment.Builder(mRS);
225 builder.setShader(mRes, R.raw.spacecloud_fs);
226 builder.addTexture(Program.TextureType.TEXTURE_2D);
228 ProgramFragment pf = builder.create();
233 builder = new ProgramFragment.Builder(mRS);
234 builder.setShader(mRes, R.raw.bgstar_fs);
235 pf = builder.create();
239 builder = new ProgramFragment.Builder(mRS);
240 builder.setShader(mRes, R.raw.staticstar_fs);
241 builder.addTexture(Program.TextureType.TEXTURE_2D);
242 builder.addTexture(Program.TextureType.TEXTURE_2D);
243 pf = builder.create();
248 ProgramRaster.Builder builder = new ProgramRaster.Builder(mRS);
249 builder.setPointSpriteEnabled(true);
250 ProgramRaster pr = builder.create();
255 ProgramStore.Builder builder = new ProgramStore.Builder(mRS);
256 builder.setBlendFunc(BlendSrcFunc.SRC_ALPHA, BlendDstFunc.ONE);
257 mRS.bindProgramStore(builder.create());