Lines Matching full:builder
33 import android.renderscript.Element.Builder;
333 ProgramVertex.Builder builder = new ProgramVertex.Builder(mRS);
334 builder.setShader(mResources, R.raw.pv5tex);
335 builder.addConstant(mVSConst.getAllocation().getType());
336 builder.addInput(ScriptField_VertexInputs_s.createElement(mRS));
338 mPV5tex = builder.create();
341 builder.setShader(mResources, R.raw.pv4tex);
342 mPV4tex = builder.create();
351 Type.Builder tb = new Type.Builder(mRS, Element.RGBA_8888(mRS));
357 Sampler.Builder samplerBuilder = new Sampler.Builder(mRS);
370 ProgramFragment.Builder builder = new ProgramFragment.Builder(mRS);
371 builder.setShader(mResources, R.raw.pf5tex);
373 builder.addTexture(Program.TextureType.TEXTURE_2D);
375 builder.addConstant(mFSConst.getAllocation().getType());
377 mPF5tex = builder.create();
382 builder = new ProgramFragment.Builder(mRS);
383 builder.setShader(mResources, R.raw.pf4tex);
385 builder.addTexture(Program.TextureType.TEXTURE_2D);
387 builder.addConstant(mFSConst.getAllocation().getType());
388 mPF4tex = builder.create();
399 ProgramStore.Builder builder = new ProgramStore.Builder(mRS);
400 builder.setDepthFunc(ProgramStore.DepthFunc.ALWAYS);
401 builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO);
402 builder.setDitherEnabled(true); // without dithering there is severe banding
403 builder.setDepthMaskEnabled(false);
404 mPStore = builder.create();