Alex Sakhartchouk | 14607a6 | 2012-03-21 09:58:15 -0700 | [diff] [blame] | 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 | |
Alex Sakhartchouk | 14607a6 | 2012-03-21 09:58:15 -0700 | [diff] [blame] | 17 | /** @file rs_sampler.rsh |
| 18 | * \brief Sampler routines |
| 19 | * |
| 20 | * |
| 21 | */ |
| 22 | |
| 23 | #ifndef __RS_SAMPLER_RSH__ |
| 24 | #define __RS_SAMPLER_RSH__ |
| 25 | |
Alex Sakhartchouk | 3c0c606 | 2012-03-22 16:59:38 -0700 | [diff] [blame^] | 26 | #if (defined(RS_VERSION) && (RS_VERSION >= 16)) |
| 27 | |
Alex Sakhartchouk | 14607a6 | 2012-03-21 09:58:15 -0700 | [diff] [blame] | 28 | /** |
| 29 | * @hide |
| 30 | * Get sampler minification value |
| 31 | * |
| 32 | * @param pr |
| 33 | */ |
| 34 | extern rs_sampler_value __attribute__((overloadable)) |
| 35 | rsSamplerGetMinification(rs_sampler s); |
| 36 | |
| 37 | /** |
| 38 | * @hide |
| 39 | * Get sampler magnification value |
| 40 | * |
| 41 | * @param pr |
| 42 | */ |
| 43 | extern rs_sampler_value __attribute__((overloadable)) |
| 44 | rsSamplerGetMagnification(rs_sampler s); |
| 45 | |
| 46 | /** |
| 47 | * @hide |
| 48 | * Get sampler wrap S value |
| 49 | * |
| 50 | * @param pr |
| 51 | */ |
| 52 | extern rs_sampler_value __attribute__((overloadable)) |
| 53 | rsSamplerGetWrapS(rs_sampler s); |
| 54 | |
| 55 | /** |
| 56 | * @hide |
| 57 | * Get sampler wrap T value |
| 58 | * |
| 59 | * @param pr |
| 60 | */ |
| 61 | extern rs_sampler_value __attribute__((overloadable)) |
| 62 | rsSamplerGetWrapT(rs_sampler s); |
| 63 | |
| 64 | /** |
| 65 | * @hide |
| 66 | * Get sampler anisotropy |
| 67 | * |
| 68 | * @param pr |
| 69 | */ |
| 70 | extern float __attribute__((overloadable)) |
| 71 | rsSamplerGetAnisotropy(rs_sampler s); |
| 72 | |
Alex Sakhartchouk | 3c0c606 | 2012-03-22 16:59:38 -0700 | [diff] [blame^] | 73 | #endif // (defined(RS_VERSION) && (RS_VERSION >= 16)) |
| 74 | |
Alex Sakhartchouk | 14607a6 | 2012-03-21 09:58:15 -0700 | [diff] [blame] | 75 | #endif // __RS_SAMPLER_RSH__ |
| 76 | |