1/*
2 * Copyright (C) 2011-2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * This file is auto-generated. DO NOT MODIFY!
19 * The source Renderscript file: struct_field.rs
20 */
21
22package struct_field;
23
24import android.renderscript.*;
25import struct_field.struct_fieldBitCode;
26
27/**
28 * @hide
29 */
30public class ScriptC_struct_field extends ScriptC {
31    private static final String __rs_resource_name = "struct_field";
32    // Constructor
33    public  ScriptC_struct_field(RenderScript rs) {
34        super(rs,
35              __rs_resource_name,
36              struct_fieldBitCode.getBitCode32(),
37              struct_fieldBitCode.getBitCode64());
38        __ScriptField_Outer = ScriptField_Outer.createElement(rs);
39    }
40
41    private Element __ScriptField_Outer;
42    private FieldPacker __rs_fp_ScriptField_Outer;
43    private final static int mExportVarIdx_outer = 0;
44    private ScriptField_Outer.Item mExportVar_outer;
45    public synchronized void set_outer(ScriptField_Outer.Item v) {
46        mExportVar_outer = v;
47        FieldPacker fp = new FieldPacker(176);
48        fp.addI32(v.innerOneA.x);
49        fp.addI32(v.innerOneA.y);
50        fp.addF32(v.innerOneA.f);
51        fp.skip(4);
52        fp.addI64(v.l);
53        fp.addI32(v.innerOneB.x);
54        fp.addI32(v.innerOneB.y);
55        fp.addF32(v.innerOneB.f);
56        for (int ct2 = 0; ct2 < 3; ct2++) {
57            fp.addI8(v.innerTwo3[ct2].z);
58            fp.skip(3);
59            fp.addI32(v.innerTwo3[ct2].innerOne.x);
60            fp.addI32(v.innerTwo3[ct2].innerOne.y);
61            fp.addF32(v.innerTwo3[ct2].innerOne.f);
62        }
63
64        for (int ct2 = 0; ct2 < 2; ct2++) {
65            fp.addI8(v.innerTwo2[ct2].z);
66            fp.skip(3);
67            fp.addI32(v.innerTwo2[ct2].innerOne.x);
68            fp.addI32(v.innerTwo2[ct2].innerOne.y);
69            fp.addF32(v.innerTwo2[ct2].innerOne.f);
70        }
71
72        for (int ct2 = 0; ct2 < 4; ct2++) {
73            fp.addI32(v.innerOne4[ct2].x);
74            fp.addI32(v.innerOne4[ct2].y);
75            fp.addF32(v.innerOne4[ct2].f);
76        }
77
78        fp.addI32(v.innerOneC.x);
79        fp.addI32(v.innerOneC.y);
80        fp.addF32(v.innerOneC.f);
81        int []__dimArr = new int[1];
82        __dimArr[0] = 1;
83        setVar(mExportVarIdx_outer, fp, __ScriptField_Outer, __dimArr);
84    }
85
86    public ScriptField_Outer.Item get_outer() {
87        return mExportVar_outer;
88    }
89
90    public Script.FieldID getFieldID_outer() {
91        return createFieldID(mExportVarIdx_outer, null);
92    }
93
94}
95
96