2012-08-10 12:09:43 -07:00
|
|
|
/*
|
2012-09-13 17:00:48 -07:00
|
|
|
* Copyright (C) 2012 The Android Open Source Project
|
2012-08-10 12:09:43 -07:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package android.renderscript;
|
|
|
|
|
|
|
|
/**
|
2018-03-20 17:39:17 -07:00
|
|
|
* Base class for all Intrinsic scripts. An intrinsic is a script
|
|
|
|
* that implements a pre-defined function. Intrinsics are
|
|
|
|
* provided to provide efficient implementations of common
|
2012-09-13 17:00:48 -07:00
|
|
|
* operations.
|
|
|
|
*
|
|
|
|
* Not intended for direct use.
|
2012-08-10 12:09:43 -07:00
|
|
|
**/
|
2012-09-13 17:00:48 -07:00
|
|
|
public abstract class ScriptIntrinsic extends Script {
|
2013-11-19 12:45:54 -08:00
|
|
|
ScriptIntrinsic(long id, RenderScript rs) {
|
2012-08-10 12:09:43 -07:00
|
|
|
super(id, rs);
|
2014-06-23 15:15:08 -07:00
|
|
|
if (id == 0) {
|
|
|
|
throw new RSRuntimeException("Loading of ScriptIntrinsic failed.");
|
|
|
|
}
|
2012-08-10 12:09:43 -07:00
|
|
|
}
|
|
|
|
}
|