1 /* 2 * Copyright (C) 2012 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 /** @file rs_sampler.rsh 18 * \brief Sampler routines 19 * 20 * 21 */ 22 23 #ifndef __RS_SAMPLER_RSH__ 24 #define __RS_SAMPLER_RSH__ 25 26 // New API's 27 #if (defined(RS_VERSION) && (RS_VERSION >= 16)) 28 29 /** 30 * Get sampler minification value 31 * 32 * @param s sampler to query 33 * @return minification value 34 */ 35 extern rs_sampler_value __attribute__((overloadable)) 36 rsSamplerGetMinification(rs_sampler s); 37 38 /** 39 * Get sampler magnification value 40 * 41 * @param s sampler to query 42 * @return magnification value 43 */ 44 extern rs_sampler_value __attribute__((overloadable)) 45 rsSamplerGetMagnification(rs_sampler s); 46 47 /** 48 * Get sampler wrap S value 49 * 50 * @param s sampler to query 51 * @return wrap S value 52 */ 53 extern rs_sampler_value __attribute__((overloadable)) 54 rsSamplerGetWrapS(rs_sampler s); 55 56 /** 57 * Get sampler wrap T value 58 * 59 * @param s sampler to query 60 * @return wrap T value 61 */ 62 extern rs_sampler_value __attribute__((overloadable)) 63 rsSamplerGetWrapT(rs_sampler s); 64 65 /** 66 Get sampler anisotropy 67 * 68 * @param s sampler to query 69 * @return anisotropy 70 */ 71 extern float __attribute__((overloadable)) 72 rsSamplerGetAnisotropy(rs_sampler s); 73 74 #endif // (defined(RS_VERSION) && (RS_VERSION >= 16)) 75 76 #endif // __RS_SAMPLER_RSH__ 77 78