|
14 | 14 | * limitations under the License. |
15 | 15 | */ |
16 | 16 |
|
17 | | -/*! \mainpage notitle |
18 | | - * |
19 | | - * Renderscript is a high-performance runtime that provides graphics rendering and |
20 | | - * compute operations at the native level. Renderscript code is compiled on devices |
21 | | - * at runtime to allow platform-independence as well. |
22 | | - * This reference documentation describes the Renderscript runtime APIs, which you |
23 | | - * can utilize to write Renderscript code in C99. The Renderscript header |
24 | | - * files are automatically included for you, except for the rs_graphics.rsh header. If |
25 | | - * you are doing graphics rendering, include the graphics header file like this: |
26 | | - * |
27 | | - * <code>#include "rs_graphics.rsh"</code> |
28 | | - * |
29 | | - * To use Renderscript, you need to utilize the Renderscript runtime APIs documented here |
30 | | - * as well as the Android framework APIs for Renderscript. |
31 | | - * For documentation on the Android framework APIs, see the <a target="_parent" href= |
32 | | - * "http://developer.android.com/reference/android/renderscript/package-summary.html"> |
33 | | - * android.renderscript</a> package reference. |
34 | | - * For more information on how to develop with Renderscript and how the runtime and |
35 | | - * Android framework APIs interact, see the <a target="_parent" href= |
36 | | - * "http://developer.android.com/guide/topics/renderscript/index.html">Renderscript |
37 | | - * developer guide</a> and the <a target="_parent" href= |
38 | | - * "http://developer.android.com/resources/samples/RenderScript/index.html"> |
39 | | - * Renderscript samples</a>. |
40 | | - */ |
41 | | - |
42 | 17 | /** @file rs_allocation.rsh |
43 | 18 | * \brief Allocation routines |
44 | 19 | * |
@@ -168,6 +143,8 @@ extern const void * __attribute__((overloadable)) |
168 | 143 | extern const void * __attribute__((overloadable)) |
169 | 144 | rsGetElementAt(rs_allocation, uint32_t x, uint32_t y, uint32_t z); |
170 | 145 |
|
| 146 | +#if (defined(RS_VERSION) && (RS_VERSION >= 16)) |
| 147 | + |
171 | 148 | /** |
172 | 149 | * @param a allocation to get data from |
173 | 150 | * @return element describing allocation layout |
@@ -216,26 +193,7 @@ extern const float4 __attribute__((overloadable)) |
216 | 193 | extern const float4 __attribute__((overloadable)) |
217 | 194 | rsSample(rs_allocation a, rs_sampler s, float2 location, float lod); |
218 | 195 |
|
219 | | -/** |
220 | | - * Fetch allocation in a way described by the sampler |
221 | | - * @param a 3D allocation to sample from |
222 | | - * @param s sampler state |
223 | | - * @param location to sample from |
224 | | - */ |
225 | | -extern const float4 __attribute__((overloadable)) |
226 | | - rsSample(rs_allocation a, rs_sampler s, float3 location); |
227 | | - |
228 | | -/** |
229 | | - * Fetch allocation in a way described by the sampler |
230 | | - * @param a 3D allocation to sample from |
231 | | - * @param s sampler state |
232 | | - * @param location to sample from |
233 | | - * @param lod mip level to sample from, for fractional values |
234 | | - * mip levels will be interpolated if |
235 | | - * RS_SAMPLER_LINEAR_MIP_LINEAR is used |
236 | | - */ |
237 | | -extern const float4 __attribute__((overloadable)) |
238 | | - rsSample(rs_allocation a, rs_sampler s, float3 location, float lod); |
| 196 | +#endif // (defined(RS_VERSION) && (RS_VERSION >= 16)) |
239 | 197 |
|
240 | 198 | #endif |
241 | 199 |
|
0 commit comments