Jason Sams | f1e6d22 | 2012-02-24 14:24:56 -0800 | [diff] [blame] | 1 | /* |
Jason Sams | 1fc0201 | 2012-03-14 15:36:02 -0700 | [diff] [blame] | 2 | * Copyright (C) 2012 The Android Open Source Project |
Jason Sams | f1e6d22 | 2012-02-24 14:24:56 -0800 | [diff] [blame] | 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 | |
Jason Sams | 1fc0201 | 2012-03-14 15:36:02 -0700 | [diff] [blame] | 17 | |
| 18 | /* |
| 19 | * This file is auto-generated. DO NOT MODIFY! |
| 20 | * The source Renderscript file: mono.rs |
| 21 | */ |
| 22 | |
| 23 | |
Jason Sams | f1e6d22 | 2012-02-24 14:24:56 -0800 | [diff] [blame] | 24 | #include "ScriptC.h" |
| 25 | |
Jason Sams | 69cccdf | 2012-04-02 19:11:49 -0700 | [diff] [blame] | 26 | class ScriptC_mono : public android::renderscriptCpp::ScriptC { |
Jason Sams | 1fc0201 | 2012-03-14 15:36:02 -0700 | [diff] [blame] | 27 | private: |
| 28 | int32_t __gInt; |
| 29 | bool __gBool; |
Jason Sams | f1e6d22 | 2012-02-24 14:24:56 -0800 | [diff] [blame] | 30 | public: |
Jason Sams | 90ac0fe | 2012-04-03 14:43:44 -0700 | [diff] [blame] | 31 | ScriptC_mono(android::renderscriptCpp::RenderScript *rs, const char *cacheDir, size_t cacheDirLength); |
Jason Sams | 1fc0201 | 2012-03-14 15:36:02 -0700 | [diff] [blame] | 32 | virtual ~ScriptC_mono(); |
Jason Sams | 90ac0fe | 2012-04-03 14:43:44 -0700 | [diff] [blame] | 33 | |
Jason Sams | 1fc0201 | 2012-03-14 15:36:02 -0700 | [diff] [blame] | 34 | void set_gInt(int32_t v) { |
| 35 | setVar(0, v); |
| 36 | __gInt = v; |
| 37 | } |
| 38 | int32_t get_gInt() const { |
| 39 | return __gInt; |
| 40 | } |
Jason Sams | 90ac0fe | 2012-04-03 14:43:44 -0700 | [diff] [blame] | 41 | |
Jason Sams | 1fc0201 | 2012-03-14 15:36:02 -0700 | [diff] [blame] | 42 | float get_cFloat() const { |
| 43 | return 1.2f; |
| 44 | } |
Jason Sams | 90ac0fe | 2012-04-03 14:43:44 -0700 | [diff] [blame] | 45 | |
Jason Sams | 1fc0201 | 2012-03-14 15:36:02 -0700 | [diff] [blame] | 46 | void set_gBool(bool v) { |
| 47 | setVar(2, v); |
| 48 | __gBool = v; |
| 49 | } |
| 50 | bool get_gBool() const { |
| 51 | return __gBool; |
| 52 | } |
Jason Sams | 90ac0fe | 2012-04-03 14:43:44 -0700 | [diff] [blame] | 53 | |
| 54 | void forEach_root(android::sp<const android::renderscriptCpp::Allocation> ain, android::sp<const android::renderscriptCpp::Allocation> aout) const; |
Jason Sams | f1e6d22 | 2012-02-24 14:24:56 -0800 | [diff] [blame] | 55 | }; |