Home | History | Annotate | Download | only in generated
      1 /*
      2  * Copyright (C) 2016 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 // Don't edit this file!  It is auto-generated by frameworks/rs/api/generate.sh.
     18 
     19 #pragma version(1)
     20 #pragma rs java_package_name(android.renderscript.cts)
     21 
     22 rs_allocation gAllocInRightVector;
     23 
     24 float __attribute__((kernel)) testDistanceFloatFloatFloat(float inLeftVector, unsigned int x) {
     25     float inRightVector = rsGetElementAt_float(gAllocInRightVector, x);
     26     return distance(inLeftVector, inRightVector);
     27 }
     28 
     29 float __attribute__((kernel)) testDistanceFloat2Float2Float(float2 inLeftVector, unsigned int x) {
     30     float2 inRightVector = rsGetElementAt_float2(gAllocInRightVector, x);
     31     return distance(inLeftVector, inRightVector);
     32 }
     33 
     34 float __attribute__((kernel)) testDistanceFloat3Float3Float(float3 inLeftVector, unsigned int x) {
     35     float3 inRightVector = rsGetElementAt_float3(gAllocInRightVector, x);
     36     return distance(inLeftVector, inRightVector);
     37 }
     38 
     39 float __attribute__((kernel)) testDistanceFloat4Float4Float(float4 inLeftVector, unsigned int x) {
     40     float4 inRightVector = rsGetElementAt_float4(gAllocInRightVector, x);
     41     return distance(inLeftVector, inRightVector);
     42 }
     43 
     44 half __attribute__((kernel)) testDistanceHalfHalfHalf(half inLeftVector, unsigned int x) {
     45     half inRightVector = rsGetElementAt_half(gAllocInRightVector, x);
     46     return distance(inLeftVector, inRightVector);
     47 }
     48 
     49 half __attribute__((kernel)) testDistanceHalf2Half2Half(half2 inLeftVector, unsigned int x) {
     50     half2 inRightVector = rsGetElementAt_half2(gAllocInRightVector, x);
     51     return distance(inLeftVector, inRightVector);
     52 }
     53 
     54 half __attribute__((kernel)) testDistanceHalf3Half3Half(half3 inLeftVector, unsigned int x) {
     55     half3 inRightVector = rsGetElementAt_half3(gAllocInRightVector, x);
     56     return distance(inLeftVector, inRightVector);
     57 }
     58 
     59 half __attribute__((kernel)) testDistanceHalf4Half4Half(half4 inLeftVector, unsigned int x) {
     60     half4 inRightVector = rsGetElementAt_half4(gAllocInRightVector, x);
     61     return distance(inLeftVector, inRightVector);
     62 }
     63