blob: 61211a25f8af72f79dc0b8ced0be955244e0f11f [file] [log] [blame]
Jason Sams6ab97682012-08-10 12:09:43 -07001/*
Jason Sams80d81902012-09-13 17:00:48 -07002 * Copyright (C) 2012 The Android Open Source Project
Jason Sams6ab97682012-08-10 12:09:43 -07003 *
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
17package android.renderscript;
18
Jason Sams6ab97682012-08-10 12:09:43 -070019/**
kopriva6a7f1672018-03-20 17:39:17 -070020 * Base class for all Intrinsic scripts. An intrinsic is a script
21 * that implements a pre-defined function. Intrinsics are
22 * provided to provide efficient implementations of common
Jason Sams80d81902012-09-13 17:00:48 -070023 * operations.
24 *
25 * Not intended for direct use.
Jason Sams6ab97682012-08-10 12:09:43 -070026 **/
Jason Sams80d81902012-09-13 17:00:48 -070027public abstract class ScriptIntrinsic extends Script {
Tim Murray7a629fa2013-11-19 12:45:54 -080028 ScriptIntrinsic(long id, RenderScript rs) {
Jason Sams6ab97682012-08-10 12:09:43 -070029 super(id, rs);
Jason Sams1c8da1c2014-06-23 15:15:08 -070030 if (id == 0) {
31 throw new RSRuntimeException("Loading of ScriptIntrinsic failed.");
32 }
Jason Sams6ab97682012-08-10 12:09:43 -070033 }
Jason Sams6ab97682012-08-10 12:09:43 -070034}