blob: 2ff426ce2d5c27267e1bd4740bcc682c780e9f47 [file] [log] [blame]
Alex Sakhartchouk14607a62012-03-21 09:58:15 -07001/*
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 Sakhartchouk14607a62012-03-21 09:58:15 -070017/** @file rs_sampler.rsh
18 * \brief Sampler routines
19 *
20 *
21 */
22
23#ifndef __RS_SAMPLER_RSH__
24#define __RS_SAMPLER_RSH__
25
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070026// New API's
Alex Sakhartchouk3c0c6062012-03-22 16:59:38 -070027#if (defined(RS_VERSION) && (RS_VERSION >= 16))
28
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070029/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070030 * Get sampler minification value
31 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070032 * @param s sampler to query
33 * @return minification value
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070034 */
35extern rs_sampler_value __attribute__((overloadable))
36 rsSamplerGetMinification(rs_sampler s);
37
38/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070039 * Get sampler magnification value
40 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070041 * @param s sampler to query
42 * @return magnification value
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070043 */
44extern rs_sampler_value __attribute__((overloadable))
45 rsSamplerGetMagnification(rs_sampler s);
46
47/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070048 * Get sampler wrap S value
49 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070050 * @param s sampler to query
51 * @return wrap S value
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070052 */
53extern rs_sampler_value __attribute__((overloadable))
54 rsSamplerGetWrapS(rs_sampler s);
55
56/**
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070057 * Get sampler wrap T value
58 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070059 * @param s sampler to query
60 * @return wrap T value
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070061 */
62extern rs_sampler_value __attribute__((overloadable))
63 rsSamplerGetWrapT(rs_sampler s);
64
65/**
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070066 Get sampler anisotropy
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070067 *
Alex Sakhartchouk340d15a2012-04-16 13:50:40 -070068 * @param s sampler to query
69 * @return anisotropy
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070070 */
71extern float __attribute__((overloadable))
72 rsSamplerGetAnisotropy(rs_sampler s);
73
Alex Sakhartchouk3c0c6062012-03-22 16:59:38 -070074#endif // (defined(RS_VERSION) && (RS_VERSION >= 16))
75
Alex Sakhartchouk14607a62012-03-21 09:58:15 -070076#endif // __RS_SAMPLER_RSH__
77