Lines Matching refs:rs
33 ProgramVertexFixedFunction(int id, RenderScript rs) {
34 super(id, rs);
53 public InternalBuilder(RenderScript rs) {
54 super(rs);
122 * @param rs Context to which the program will belong.
124 public Builder(RenderScript rs) {
125 mRS = rs;
138 static Type getConstantInputType(RenderScript rs) {
139 Element.Builder b = new Element.Builder(rs);
140 b.add(Element.MATRIX4X4(rs), "MV");
141 b.add(Element.MATRIX4X4(rs), "P");
142 b.add(Element.MATRIX4X4(rs), "TexMatrix");
143 b.add(Element.MATRIX4X4(rs), "MVP");
145 Type.Builder typeBuilder = new Type.Builder(rs, b.create());
219 * @param rs Context to which the allocation will belong.
221 public Constants(RenderScript rs) {
222 Type constInputType = ProgramVertexFixedFunction.Builder.getConstantInputType(rs);
223 mAlloc = Allocation.createTyped(rs, constInputType);