1 /*
2  * Copyright (C) 2017 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 #ifndef ANDROID_RS_API_STUBS_H
18 #define ANDROID_RS_API_STUBS_H
19 
20 #include "rsInternalDefines.h"
21 
22 // Device
23 extern "C" RsDevice rsDeviceCreate() __DEPRECATED_IN(
24     31,
25     "RenderScript is deprecated. See "
26     "https://developer.android.com/guide/topics/renderscript/migrate");
27 extern "C" void rsDeviceDestroy(RsDevice dev) __DEPRECATED_IN(
28     31,
29     "RenderScript is deprecated. See "
30     "https://developer.android.com/guide/topics/renderscript/migrate");
31 extern "C" void rsDeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value)
32     __DEPRECATED_IN(
33         31,
34         "RenderScript is deprecated. See "
35         "https://developer.android.com/guide/topics/renderscript/migrate");
36 
37 // Context
38 extern "C" RsContext rsContextCreate(RsDevice vdev, uint32_t version,
39                                      uint32_t sdkVersion, RsContextType ct,
40                                      uint32_t flags)
41     __DEPRECATED_IN(
42         31,
43         "RenderScript is deprecated. See "
44         "https://developer.android.com/guide/topics/renderscript/migrate");
45 extern "C" void rsContextDestroy(RsContext rsc) __DEPRECATED_IN(
46     31,
47     "RenderScript is deprecated. See "
48     "https://developer.android.com/guide/topics/renderscript/migrate");
49 extern "C" void rsContextFinish(RsContext rsc) __DEPRECATED_IN(
50     31,
51     "RenderScript is deprecated. See "
52     "https://developer.android.com/guide/topics/renderscript/migrate");
53 extern "C" void rsContextDump(RsContext rsc, int32_t bits) __DEPRECATED_IN(
54     31,
55     "RenderScript is deprecated. See "
56     "https://developer.android.com/guide/topics/renderscript/migrate");
57 extern "C" void rsContextSetPriority(RsContext rsc, int32_t priority)
58     __DEPRECATED_IN(
59         31,
60         "RenderScript is deprecated. See "
61         "https://developer.android.com/guide/topics/renderscript/migrate");
62 extern "C" void rsContextDestroyWorker(RsContext rsc) __DEPRECATED_IN(
63     31,
64     "RenderScript is deprecated. See "
65     "https://developer.android.com/guide/topics/renderscript/migrate");
66 extern "C" RsMessageToClientType rsContextGetMessage(
67     RsContext rsc, void* data, size_t data_length, size_t* receiveLen,
68     size_t receiveLen_length, uint32_t* usrID, size_t usrID_length)
69     __DEPRECATED_IN(
70         31,
71         "RenderScript is deprecated. See "
72         "https://developer.android.com/guide/topics/renderscript/migrate");
73 extern "C" RsMessageToClientType rsContextPeekMessage(RsContext rsc,
74                                                       size_t* receiveLen,
75                                                       size_t receiveLen_length,
76                                                       uint32_t* usrID,
77                                                       size_t usrID_length)
78     __DEPRECATED_IN(
79         31,
80         "RenderScript is deprecated. See "
81         "https://developer.android.com/guide/topics/renderscript/migrate");
82 extern "C" void rsContextSendMessage(RsContext rsc, uint32_t id,
83                                      const uint8_t* data, size_t data_length)
84     __DEPRECATED_IN(
85         31,
86         "RenderScript is deprecated. See "
87         "https://developer.android.com/guide/topics/renderscript/migrate");
88 extern "C" void rsContextInitToClient(RsContext rsc) __DEPRECATED_IN(
89     31,
90     "RenderScript is deprecated. See "
91     "https://developer.android.com/guide/topics/renderscript/migrate");
92 extern "C" void rsContextDeinitToClient(RsContext rsc) __DEPRECATED_IN(
93     31,
94     "RenderScript is deprecated. See "
95     "https://developer.android.com/guide/topics/renderscript/migrate");
96 extern "C" void rsContextSetCacheDir(RsContext rsc, const char* cacheDir,
97                                      size_t cacheDir_length)
98     __DEPRECATED_IN(
99         31,
100         "RenderScript is deprecated. See "
101         "https://developer.android.com/guide/topics/renderscript/migrate");
102 extern "C" void rsaContextSetNativeLibDir(RsContext con, char* libDir,
103                                           size_t length)
104     __DEPRECATED_IN(
105         31,
106         "RenderScript is deprecated. See "
107         "https://developer.android.com/guide/topics/renderscript/migrate");
108 
109 // BaseObject
110 extern "C" void rsAssignName(RsContext rsc, RsObjectBase obj, const char* name,
111                              size_t name_length)
112     __DEPRECATED_IN(
113         31,
114         "RenderScript is deprecated. See "
115         "https://developer.android.com/guide/topics/renderscript/migrate");
116 extern "C" void rsaGetName(RsContext con, void* obj, const char** name)
117     __DEPRECATED_IN(
118         31,
119         "RenderScript is deprecated. See "
120         "https://developer.android.com/guide/topics/renderscript/migrate");
121 extern "C" void rsObjDestroy(RsContext rsc, RsAsyncVoidPtr objPtr)
122     __DEPRECATED_IN(
123         31,
124         "RenderScript is deprecated. See "
125         "https://developer.android.com/guide/topics/renderscript/migrate");
126 
127 // Element
128 extern "C" RsElement rsElementCreate(RsContext rsc, RsDataType mType,
129                                      RsDataKind mKind, bool mNormalized,
130                                      uint32_t mVectorSize)
131     __DEPRECATED_IN(
132         31,
133         "RenderScript is deprecated. See "
134         "https://developer.android.com/guide/topics/renderscript/migrate");
135 extern "C" RsElement rsElementCreate2(
136     RsContext rsc, const RsElement* elements, size_t elements_length,
137     const char** names, size_t names_length_length, const size_t* names_length,
138     const uint32_t* arraySize, size_t arraySize_length)
139     __DEPRECATED_IN(
140         31,
141         "RenderScript is deprecated. See "
142         "https://developer.android.com/guide/topics/renderscript/migrate");
143 extern "C" void rsaElementGetNativeData(RsContext con, RsElement elem,
144                                         uint32_t* elemData,
145                                         uint32_t elemDataSize)
146     __DEPRECATED_IN(
147         31,
148         "RenderScript is deprecated. See "
149         "https://developer.android.com/guide/topics/renderscript/migrate");
150 extern "C" void rsaElementGetSubElements(RsContext con, RsElement elem,
151                                          uintptr_t* ids, const char** names,
152                                          size_t* arraySizes, uint32_t dataSize)
153     __DEPRECATED_IN(
154         31,
155         "RenderScript is deprecated. See "
156         "https://developer.android.com/guide/topics/renderscript/migrate");
157 
158 // Type
159 extern "C" RsType rsTypeCreate(RsContext rsc, RsElement e, uint32_t dimX,
160                                uint32_t dimY, uint32_t dimZ, bool mipmaps,
161                                bool faces, uint32_t yuv)
162     __DEPRECATED_IN(
163         31,
164         "RenderScript is deprecated. See "
165         "https://developer.android.com/guide/topics/renderscript/migrate");
166 extern "C" RsType rsTypeCreate2(RsContext rsc, const RsTypeCreateParams* dat,
167                                 size_t dat_length)
168     __DEPRECATED_IN(
169         31,
170         "RenderScript is deprecated. See "
171         "https://developer.android.com/guide/topics/renderscript/migrate");
172 extern "C" void rsaTypeGetNativeData(RsContext con, RsType type,
173                                      uintptr_t* typeData, uint32_t typeDataSize)
174     __DEPRECATED_IN(
175         31,
176         "RenderScript is deprecated. See "
177         "https://developer.android.com/guide/topics/renderscript/migrate");
178 
179 // Allocation
180 extern "C" RsAllocation rsAllocationCreateTyped(
181     RsContext rsc, RsType vtype, RsAllocationMipmapControl mipmaps,
182     uint32_t usages, uintptr_t ptr)
183     __DEPRECATED_IN(
184         31,
185         "RenderScript is deprecated. See "
186         "https://developer.android.com/guide/topics/renderscript/migrate");
187 extern "C" RsAllocation rsAllocationCreateFromBitmap(
188     RsContext rsc, RsType vtype, RsAllocationMipmapControl mipmaps,
189     const void* data, size_t data_length, uint32_t usages)
190     __DEPRECATED_IN(
191         31,
192         "RenderScript is deprecated. See "
193         "https://developer.android.com/guide/topics/renderscript/migrate");
194 extern "C" RsAllocation rsAllocationCubeCreateFromBitmap(
195     RsContext rsc, RsType vtype, RsAllocationMipmapControl mipmaps,
196     const void* data, size_t data_length, uint32_t usages)
197     __DEPRECATED_IN(
198         31,
199         "RenderScript is deprecated. See "
200         "https://developer.android.com/guide/topics/renderscript/migrate");
201 extern "C" RsAllocation rsAllocationAdapterCreate(RsContext rsc, RsType vtype,
202                                                   RsAllocation baseAlloc)
203     __DEPRECATED_IN(
204         31,
205         "RenderScript is deprecated. See "
206         "https://developer.android.com/guide/topics/renderscript/migrate");
207 extern "C" const void* rsaAllocationGetType(RsContext con, RsAllocation va)
208     __DEPRECATED_IN(
209         31,
210         "RenderScript is deprecated. See "
211         "https://developer.android.com/guide/topics/renderscript/migrate");
212 extern "C" RsNativeWindow rsAllocationGetSurface(RsContext rsc,
213                                                  RsAllocation alloc)
214     __DEPRECATED_IN(
215         31,
216         "RenderScript is deprecated. See "
217         "https://developer.android.com/guide/topics/renderscript/migrate");
218 extern "C" void rsAllocationSetupBufferQueue(RsContext rsc, RsAllocation alloc,
219                                              uint32_t numAlloc)
220     __DEPRECATED_IN(
221         31,
222         "RenderScript is deprecated. See "
223         "https://developer.android.com/guide/topics/renderscript/migrate");
224 extern "C" void rsAllocationShareBufferQueue(RsContext rsc, RsAllocation alloc1,
225                                              RsAllocation alloc2)
226     __DEPRECATED_IN(
227         31,
228         "RenderScript is deprecated. See "
229         "https://developer.android.com/guide/topics/renderscript/migrate");
230 extern "C" void rsAllocationSetSurface(RsContext rsc, RsAllocation alloc,
231                                        RsNativeWindow sur)
232     __DEPRECATED_IN(
233         31,
234         "RenderScript is deprecated. See "
235         "https://developer.android.com/guide/topics/renderscript/migrate");
236 extern "C" void rsAllocationAdapterOffset(RsContext rsc, RsAllocation alloc,
237                                           const uint32_t* offsets,
238                                           size_t offsets_length)
239     __DEPRECATED_IN(
240         31,
241         "RenderScript is deprecated. See "
242         "https://developer.android.com/guide/topics/renderscript/migrate");
243 extern "C" void rsAllocationCopyToBitmap(RsContext rsc, RsAllocation alloc,
244                                          void* data, size_t data_length)
245     __DEPRECATED_IN(
246         31,
247         "RenderScript is deprecated. See "
248         "https://developer.android.com/guide/topics/renderscript/migrate");
249 extern "C" void* rsAllocationGetPointer(RsContext rsc, RsAllocation va,
250                                         uint32_t lod,
251                                         RsAllocationCubemapFace face,
252                                         uint32_t z, uint32_t array,
253                                         size_t* stride, size_t stride_length)
254     __DEPRECATED_IN(
255         31,
256         "RenderScript is deprecated. See "
257         "https://developer.android.com/guide/topics/renderscript/migrate");
258 extern "C" void rsAllocation1DData(RsContext rsc, RsAllocation va,
259                                    uint32_t xoff, uint32_t lod, uint32_t count,
260                                    const void* data, size_t data_length)
261     __DEPRECATED_IN(
262         31,
263         "RenderScript is deprecated. See "
264         "https://developer.android.com/guide/topics/renderscript/migrate");
265 extern "C" void rsAllocation1DElementData(RsContext rsc, RsAllocation va,
266                                           uint32_t x, uint32_t lod,
267                                           const void* data, size_t data_length,
268                                           size_t comp_offset)
269     __DEPRECATED_IN(
270         31,
271         "RenderScript is deprecated. See "
272         "https://developer.android.com/guide/topics/renderscript/migrate");
273 extern "C" void rsAllocationElementData(RsContext rsc, RsAllocation va,
274                                         uint32_t x, uint32_t y, uint32_t z,
275                                         uint32_t lod, const void* data,
276                                         size_t data_length, size_t comp_offset)
277     __DEPRECATED_IN(
278         31,
279         "RenderScript is deprecated. See "
280         "https://developer.android.com/guide/topics/renderscript/migrate");
281 extern "C" void rsAllocation2DData(RsContext rsc, RsAllocation va,
282                                    uint32_t xoff, uint32_t yoff, uint32_t lod,
283                                    RsAllocationCubemapFace face, uint32_t w,
284                                    uint32_t h, const void* data,
285                                    size_t data_length, size_t stride)
286     __DEPRECATED_IN(
287         31,
288         "RenderScript is deprecated. See "
289         "https://developer.android.com/guide/topics/renderscript/migrate");
290 extern "C" void rsAllocation3DData(RsContext rsc, RsAllocation va,
291                                    uint32_t xoff, uint32_t yoff, uint32_t zoff,
292                                    uint32_t lod, uint32_t w, uint32_t h,
293                                    uint32_t d, const void* data,
294                                    size_t data_length, size_t stride)
295     __DEPRECATED_IN(
296         31,
297         "RenderScript is deprecated. See "
298         "https://developer.android.com/guide/topics/renderscript/migrate");
299 extern "C" void rsAllocationGenerateMipmaps(RsContext rsc, RsAllocation va)
300     __DEPRECATED_IN(
301         31,
302         "RenderScript is deprecated. See "
303         "https://developer.android.com/guide/topics/renderscript/migrate");
304 extern "C" void rsAllocationRead(RsContext rsc, RsAllocation va, void* data,
305                                  size_t data_length)
306     __DEPRECATED_IN(
307         31,
308         "RenderScript is deprecated. See "
309         "https://developer.android.com/guide/topics/renderscript/migrate");
310 extern "C" void rsAllocation1DRead(RsContext rsc, RsAllocation va,
311                                    uint32_t xoff, uint32_t lod, uint32_t count,
312                                    void* data, size_t data_length)
313     __DEPRECATED_IN(
314         31,
315         "RenderScript is deprecated. See "
316         "https://developer.android.com/guide/topics/renderscript/migrate");
317 extern "C" void rsAllocationElementRead(RsContext rsc, RsAllocation va,
318                                         uint32_t x, uint32_t y, uint32_t z,
319                                         uint32_t lod, void* data,
320                                         size_t data_length, size_t comp_offset)
321     __DEPRECATED_IN(
322         31,
323         "RenderScript is deprecated. See "
324         "https://developer.android.com/guide/topics/renderscript/migrate");
325 extern "C" void rsAllocation2DRead(RsContext rsc, RsAllocation va,
326                                    uint32_t xoff, uint32_t yoff, uint32_t lod,
327                                    RsAllocationCubemapFace face, uint32_t w,
328                                    uint32_t h, void* data, size_t data_length,
329                                    size_t stride)
330     __DEPRECATED_IN(
331         31,
332         "RenderScript is deprecated. See "
333         "https://developer.android.com/guide/topics/renderscript/migrate");
334 extern "C" void rsAllocation3DRead(RsContext rsc, RsAllocation va,
335                                    uint32_t xoff, uint32_t yoff, uint32_t zoff,
336                                    uint32_t lod, uint32_t w, uint32_t h,
337                                    uint32_t d, void* data, size_t data_length,
338                                    size_t stride)
339     __DEPRECATED_IN(
340         31,
341         "RenderScript is deprecated. See "
342         "https://developer.android.com/guide/topics/renderscript/migrate");
343 extern "C" void rsAllocationSyncAll(RsContext rsc, RsAllocation va,
344                                     RsAllocationUsageType src)
345     __DEPRECATED_IN(
346         31,
347         "RenderScript is deprecated. See "
348         "https://developer.android.com/guide/topics/renderscript/migrate");
349 extern "C" void rsAllocationResize1D(RsContext rsc, RsAllocation va,
350                                      uint32_t dimX)
351     __DEPRECATED_IN(
352         31,
353         "RenderScript is deprecated. See "
354         "https://developer.android.com/guide/topics/renderscript/migrate");
355 extern "C" void rsAllocationCopy2DRange(RsContext rsc, RsAllocation dest,
356                                         uint32_t destXoff, uint32_t destYoff,
357                                         uint32_t destMip, uint32_t destFace,
358                                         uint32_t width, uint32_t height,
359                                         RsAllocation src, uint32_t srcXoff,
360                                         uint32_t srcYoff, uint32_t srcMip,
361                                         uint32_t srcFace)
362     __DEPRECATED_IN(
363         31,
364         "RenderScript is deprecated. See "
365         "https://developer.android.com/guide/topics/renderscript/migrate");
366 extern "C" void rsAllocationCopy3DRange(RsContext rsc, RsAllocation dest,
367                                         uint32_t destXoff, uint32_t destYoff,
368                                         uint32_t destZoff, uint32_t destMip,
369                                         uint32_t width, uint32_t height,
370                                         uint32_t depth, RsAllocation src,
371                                         uint32_t srcXoff, uint32_t srcYoff,
372                                         uint32_t srcZoff, uint32_t srcMip)
373     __DEPRECATED_IN(
374         31,
375         "RenderScript is deprecated. See "
376         "https://developer.android.com/guide/topics/renderscript/migrate");
377 extern "C" void rsAllocationIoSend(RsContext rsc, RsAllocation alloc)
378     __DEPRECATED_IN(
379         31,
380         "RenderScript is deprecated. See "
381         "https://developer.android.com/guide/topics/renderscript/migrate");
382 extern "C" int64_t rsAllocationIoReceive(RsContext rsc, RsAllocation alloc)
383     __DEPRECATED_IN(
384         31,
385         "RenderScript is deprecated. See "
386         "https://developer.android.com/guide/topics/renderscript/migrate");
387 
388 // ScriptGroup
389 extern "C" RsScriptGroup rsScriptGroupCreate(
390     RsContext rsc, RsScriptKernelID* kernels, size_t kernels_length,
391     RsScriptKernelID* src, size_t src_length, RsScriptKernelID* dstK,
392     size_t dstK_length, RsScriptFieldID* dstF, size_t dstF_length,
393     const RsType* type, size_t type_length)
394     __DEPRECATED_IN(
395         31,
396         "RenderScript is deprecated. See "
397         "https://developer.android.com/guide/topics/renderscript/migrate");
398 extern "C" RsScriptGroup2 rsScriptGroup2Create(
399     RsContext rsc, const char* name, size_t name_length, const char* cacheDir,
400     size_t cacheDir_length, RsClosure* closures, size_t closures_length)
401     __DEPRECATED_IN(
402         31,
403         "RenderScript is deprecated. See "
404         "https://developer.android.com/guide/topics/renderscript/migrate");
405 extern "C" RsClosure rsClosureCreate(
406     RsContext rsc, RsScriptKernelID kernelID, RsAllocation returnValue,
407     RsScriptFieldID* fieldIDs, size_t fieldIDs_length, const int64_t* values,
408     size_t values_length, const int* sizes, size_t sizes_length,
409     RsClosure* depClosures, size_t depClosures_length,
410     RsScriptFieldID* depFieldIDs, size_t depFieldIDs_length)
411     __DEPRECATED_IN(
412         31,
413         "RenderScript is deprecated. See "
414         "https://developer.android.com/guide/topics/renderscript/migrate");
415 extern "C" RsClosure rsInvokeClosureCreate(
416     RsContext rsc, RsScriptInvokeID invokeID, const void* params,
417     size_t params_length, const RsScriptFieldID* fieldIDs,
418     size_t fieldIDs_length, const int64_t* values, size_t values_length,
419     const int* sizes, size_t sizes_length)
420     __DEPRECATED_IN(
421         31,
422         "RenderScript is deprecated. See "
423         "https://developer.android.com/guide/topics/renderscript/migrate");
424 extern "C" void rsClosureSetArg(RsContext rsc, RsClosure closureID,
425                                 uint32_t index, uintptr_t value, int valueSize)
426     __DEPRECATED_IN(
427         31,
428         "RenderScript is deprecated. See "
429         "https://developer.android.com/guide/topics/renderscript/migrate");
430 extern "C" void rsClosureSetGlobal(RsContext rsc, RsClosure closureID,
431                                    RsScriptFieldID fieldID, int64_t value,
432                                    int valueSize)
433     __DEPRECATED_IN(
434         31,
435         "RenderScript is deprecated. See "
436         "https://developer.android.com/guide/topics/renderscript/migrate");
437 extern "C" RsScriptKernelID rsScriptKernelIDCreate(RsContext rsc, RsScript sid,
438                                                    int slot, int sig)
439     __DEPRECATED_IN(
440         31,
441         "RenderScript is deprecated. See "
442         "https://developer.android.com/guide/topics/renderscript/migrate");
443 extern "C" RsScriptInvokeID rsScriptInvokeIDCreate(RsContext rsc, RsScript s,
444                                                    uint32_t slot)
445     __DEPRECATED_IN(
446         31,
447         "RenderScript is deprecated. See "
448         "https://developer.android.com/guide/topics/renderscript/migrate");
449 extern "C" RsScriptFieldID rsScriptFieldIDCreate(RsContext rsc, RsScript sid,
450                                                  int slot)
451     __DEPRECATED_IN(
452         31,
453         "RenderScript is deprecated. See "
454         "https://developer.android.com/guide/topics/renderscript/migrate");
455 extern "C" void rsScriptGroupSetOutput(RsContext rsc, RsScriptGroup group,
456                                        RsScriptKernelID kernel,
457                                        RsAllocation alloc)
458     __DEPRECATED_IN(
459         31,
460         "RenderScript is deprecated. See "
461         "https://developer.android.com/guide/topics/renderscript/migrate");
462 extern "C" void rsScriptGroupSetInput(RsContext rsc, RsScriptGroup group,
463                                       RsScriptKernelID kernel,
464                                       RsAllocation alloc)
465     __DEPRECATED_IN(
466         31,
467         "RenderScript is deprecated. See "
468         "https://developer.android.com/guide/topics/renderscript/migrate");
469 extern "C" void rsScriptGroupExecute(RsContext rsc, RsScriptGroup group)
470     __DEPRECATED_IN(
471         31,
472         "RenderScript is deprecated. See "
473         "https://developer.android.com/guide/topics/renderscript/migrate");
474 
475 // Sampler
476 extern "C" RsSampler rsSamplerCreate(RsContext rsc, RsSamplerValue magFilter,
477                                      RsSamplerValue minFilter,
478                                      RsSamplerValue wrapS, RsSamplerValue wrapT,
479                                      RsSamplerValue wrapR, float mAniso)
480     __DEPRECATED_IN(
481         31,
482         "RenderScript is deprecated. See "
483         "https://developer.android.com/guide/topics/renderscript/migrate");
484 
485 // Script
486 extern "C" RsScript rsScriptCCreate(RsContext rsc, const char* resName,
487                                     size_t resName_length, const char* cacheDir,
488                                     size_t cacheDir_length, const char* text,
489                                     size_t text_length)
490     __DEPRECATED_IN(
491         31,
492         "RenderScript is deprecated. See "
493         "https://developer.android.com/guide/topics/renderscript/migrate");
494 extern "C" RsScript rsScriptIntrinsicCreate(RsContext rsc, uint32_t id,
495                                             RsElement eid)
496     __DEPRECATED_IN(
497         31,
498         "RenderScript is deprecated. See "
499         "https://developer.android.com/guide/topics/renderscript/migrate");
500 extern "C" void rsScriptBindAllocation(RsContext rsc, RsScript vtm,
501                                        RsAllocation va, uint32_t slot)
502     __DEPRECATED_IN(
503         31,
504         "RenderScript is deprecated. See "
505         "https://developer.android.com/guide/topics/renderscript/migrate");
506 extern "C" void rsScriptSetTimeZone(RsContext rsc, RsScript s,
507                                     const char* timeZone,
508                                     size_t timeZone_length)
509     __DEPRECATED_IN(
510         31,
511         "RenderScript is deprecated. See "
512         "https://developer.android.com/guide/topics/renderscript/migrate");
513 extern "C" void rsScriptInvoke(RsContext rsc, RsScript s, uint32_t slot)
514     __DEPRECATED_IN(
515         31,
516         "RenderScript is deprecated. See "
517         "https://developer.android.com/guide/topics/renderscript/migrate");
518 extern "C" void rsScriptInvokeV(RsContext rsc, RsScript s, uint32_t slot,
519                                 const void* data, size_t data_length)
520     __DEPRECATED_IN(
521         31,
522         "RenderScript is deprecated. See "
523         "https://developer.android.com/guide/topics/renderscript/migrate");
524 extern "C" void rsScriptForEach(RsContext rsc, RsScript s, uint32_t slot,
525                                 RsAllocation ain, RsAllocation aout,
526                                 const void* usr, size_t usr_length,
527                                 const RsScriptCall* sc, size_t sc_length)
528     __DEPRECATED_IN(
529         31,
530         "RenderScript is deprecated. See "
531         "https://developer.android.com/guide/topics/renderscript/migrate");
532 extern "C" void rsScriptForEachMulti(RsContext rsc, RsScript s, uint32_t slot,
533                                      RsAllocation* ains, size_t ains_length,
534                                      RsAllocation aout, const void* usr,
535                                      size_t usr_length, const RsScriptCall* sc,
536                                      size_t sc_length)
537     __DEPRECATED_IN(
538         31,
539         "RenderScript is deprecated. See "
540         "https://developer.android.com/guide/topics/renderscript/migrate");
541 extern "C" void rsScriptReduce(RsContext rsc, RsScript s, uint32_t slot,
542                                RsAllocation* ains, size_t ains_length,
543                                RsAllocation aout, const RsScriptCall* sc,
544                                size_t sc_length)
545     __DEPRECATED_IN(
546         31,
547         "RenderScript is deprecated. See "
548         "https://developer.android.com/guide/topics/renderscript/migrate");
549 extern "C" void rsScriptSetVarI(RsContext rsc, RsScript s, uint32_t slot,
550                                 int value)
551     __DEPRECATED_IN(
552         31,
553         "RenderScript is deprecated. See "
554         "https://developer.android.com/guide/topics/renderscript/migrate");
555 extern "C" void rsScriptSetVarObj(RsContext rsc, RsScript s, uint32_t slot,
556                                   RsObjectBase value)
557     __DEPRECATED_IN(
558         31,
559         "RenderScript is deprecated. See "
560         "https://developer.android.com/guide/topics/renderscript/migrate");
561 extern "C" void rsScriptSetVarJ(RsContext rsc, RsScript s, uint32_t slot,
562                                 int64_t value)
563     __DEPRECATED_IN(
564         31,
565         "RenderScript is deprecated. See "
566         "https://developer.android.com/guide/topics/renderscript/migrate");
567 extern "C" void rsScriptSetVarF(RsContext rsc, RsScript s, uint32_t slot,
568                                 float value)
569     __DEPRECATED_IN(
570         31,
571         "RenderScript is deprecated. See "
572         "https://developer.android.com/guide/topics/renderscript/migrate");
573 extern "C" void rsScriptSetVarD(RsContext rsc, RsScript s, uint32_t slot,
574                                 double value)
575     __DEPRECATED_IN(
576         31,
577         "RenderScript is deprecated. See "
578         "https://developer.android.com/guide/topics/renderscript/migrate");
579 extern "C" void rsScriptSetVarV(RsContext rsc, RsScript s, uint32_t slot,
580                                 const void* data, size_t data_length)
581     __DEPRECATED_IN(
582         31,
583         "RenderScript is deprecated. See "
584         "https://developer.android.com/guide/topics/renderscript/migrate");
585 extern "C" void rsScriptGetVarV(RsContext rsc, RsScript s, uint32_t slot,
586                                 void* data, size_t data_length)
587     __DEPRECATED_IN(
588         31,
589         "RenderScript is deprecated. See "
590         "https://developer.android.com/guide/topics/renderscript/migrate");
591 extern "C" void rsScriptSetVarVE(RsContext rsc, RsScript s, uint32_t slot,
592                                  const void* data, size_t data_length,
593                                  RsElement e, const uint32_t* dims,
594                                  size_t dims_length)
595     __DEPRECATED_IN(
596         31,
597         "RenderScript is deprecated. See "
598         "https://developer.android.com/guide/topics/renderscript/migrate");
599 
600 // Graphics
601 extern "C" RsContext rsContextCreateGL(RsDevice vdev, uint32_t version,
602                                        uint32_t sdkVersion, RsSurfaceConfig sc,
603                                        uint32_t dpi)
604     __DEPRECATED_IN(
605         31,
606         "RenderScript is deprecated. See "
607         "https://developer.android.com/guide/topics/renderscript/migrate");
608 extern "C" void rsContextSetSurface(RsContext rsc, uint32_t width,
609                                     uint32_t height, RsNativeWindow sur)
610     __DEPRECATED_IN(
611         31,
612         "RenderScript is deprecated. See "
613         "https://developer.android.com/guide/topics/renderscript/migrate");
614 extern "C" void rsContextPause(RsContext rsc) __DEPRECATED_IN(
615     31,
616     "RenderScript is deprecated. See "
617     "https://developer.android.com/guide/topics/renderscript/migrate");
618 extern "C" void rsContextResume(RsContext rsc) __DEPRECATED_IN(
619     31,
620     "RenderScript is deprecated. See "
621     "https://developer.android.com/guide/topics/renderscript/migrate");
622 extern "C" void rsContextBindProgramStore(RsContext rsc, RsProgramStore pgm)
623     __DEPRECATED_IN(
624         31,
625         "RenderScript is deprecated. See "
626         "https://developer.android.com/guide/topics/renderscript/migrate");
627 extern "C" void rsContextBindProgramFragment(RsContext rsc,
628                                              RsProgramFragment pgm)
629     __DEPRECATED_IN(
630         31,
631         "RenderScript is deprecated. See "
632         "https://developer.android.com/guide/topics/renderscript/migrate");
633 extern "C" void rsContextBindProgramVertex(RsContext rsc, RsProgramVertex pgm)
634     __DEPRECATED_IN(
635         31,
636         "RenderScript is deprecated. See "
637         "https://developer.android.com/guide/topics/renderscript/migrate");
638 extern "C" void rsContextBindProgramRaster(RsContext rsc, RsProgramRaster pgm)
639     __DEPRECATED_IN(
640         31,
641         "RenderScript is deprecated. See "
642         "https://developer.android.com/guide/topics/renderscript/migrate");
643 extern "C" void rsContextBindFont(RsContext rsc, RsFont pgm) __DEPRECATED_IN(
644     31,
645     "RenderScript is deprecated. See "
646     "https://developer.android.com/guide/topics/renderscript/migrate");
647 extern "C" void rsContextBindRootScript(RsContext rsc, RsScript sampler)
648     __DEPRECATED_IN(
649         31,
650         "RenderScript is deprecated. See "
651         "https://developer.android.com/guide/topics/renderscript/migrate");
652 
653 extern "C" RsProgramStore rsProgramStoreCreate(
654     RsContext rsc, bool colorMaskR, bool colorMaskG, bool colorMaskB,
655     bool colorMaskA, bool depthMask, bool ditherEnable, RsBlendSrcFunc srcFunc,
656     RsBlendDstFunc destFunc, RsDepthFunc depthFunc)
657     __DEPRECATED_IN(
658         31,
659         "RenderScript is deprecated. See "
660         "https://developer.android.com/guide/topics/renderscript/migrate");
661 extern "C" RsProgramRaster rsProgramRasterCreate(RsContext rsc,
662                                                  bool pointSprite,
663                                                  RsCullMode cull)
664     __DEPRECATED_IN(
665         31,
666         "RenderScript is deprecated. See "
667         "https://developer.android.com/guide/topics/renderscript/migrate");
668 extern "C" RsProgramFragment rsProgramFragmentCreate(
669     RsContext rsc, const char* shaderText, size_t shaderText_length,
670     const char** textureNames, size_t textureNames_length_length,
671     const size_t* textureNames_length, const uintptr_t* params,
672     size_t params_length)
673     __DEPRECATED_IN(
674         31,
675         "RenderScript is deprecated. See "
676         "https://developer.android.com/guide/topics/renderscript/migrate");
677 extern "C" RsProgramVertex rsProgramVertexCreate(
678     RsContext rsc, const char* shaderText, size_t shaderText_length,
679     const char** textureNames, size_t textureNames_length_length,
680     const size_t* textureNames_length, const uintptr_t* params,
681     size_t params_length)
682     __DEPRECATED_IN(
683         31,
684         "RenderScript is deprecated. See "
685         "https://developer.android.com/guide/topics/renderscript/migrate");
686 extern "C" RsFont rsFontCreateFromFile(RsContext rsc, const char* name,
687                                        size_t name_length, float fontSize,
688                                        uint32_t dpi)
689     __DEPRECATED_IN(
690         31,
691         "RenderScript is deprecated. See "
692         "https://developer.android.com/guide/topics/renderscript/migrate");
693 extern "C" RsFont rsFontCreateFromMemory(RsContext rsc, const char* name,
694                                          size_t name_length, float fontSize,
695                                          uint32_t dpi, const void* data,
696                                          size_t data_length)
697     __DEPRECATED_IN(
698         31,
699         "RenderScript is deprecated. See "
700         "https://developer.android.com/guide/topics/renderscript/migrate");
701 extern "C" RsMesh rsMeshCreate(RsContext rsc, RsAllocation* vtx,
702                                size_t vtx_length, RsAllocation* idx,
703                                size_t idx_length, uint32_t* primType,
704                                size_t primType_length)
705     __DEPRECATED_IN(
706         31,
707         "RenderScript is deprecated. See "
708         "https://developer.android.com/guide/topics/renderscript/migrate");
709 extern "C" void rsProgramBindConstants(RsContext rsc, RsProgram vp,
710                                        uint32_t slot, RsAllocation constants)
711     __DEPRECATED_IN(
712         31,
713         "RenderScript is deprecated. See "
714         "https://developer.android.com/guide/topics/renderscript/migrate");
715 extern "C" void rsProgramBindTexture(RsContext rsc, RsProgramFragment pf,
716                                      uint32_t slot, RsAllocation a)
717     __DEPRECATED_IN(
718         31,
719         "RenderScript is deprecated. See "
720         "https://developer.android.com/guide/topics/renderscript/migrate");
721 extern "C" void rsProgramBindSampler(RsContext rsc, RsProgramFragment pf,
722                                      uint32_t slot, RsSampler s)
723     __DEPRECATED_IN(
724         31,
725         "RenderScript is deprecated. See "
726         "https://developer.android.com/guide/topics/renderscript/migrate");
727 
728 extern "C" RsObjectBase rsaFileA3DGetEntryByIndex(RsContext con, uint32_t index,
729                                                   RsFile file)
730     __DEPRECATED_IN(
731         31,
732         "RenderScript is deprecated. See "
733         "https://developer.android.com/guide/topics/renderscript/migrate");
734 extern "C" RsFile rsaFileA3DCreateFromMemory(RsContext con, const void* data,
735                                              uint32_t len)
736     __DEPRECATED_IN(
737         31,
738         "RenderScript is deprecated. See "
739         "https://developer.android.com/guide/topics/renderscript/migrate");
740 extern "C" RsFile rsaFileA3DCreateFromAsset(RsContext con, void* _asset)
741     __DEPRECATED_IN(
742         31,
743         "RenderScript is deprecated. See "
744         "https://developer.android.com/guide/topics/renderscript/migrate");
745 extern "C" RsFile rsaFileA3DCreateFromFile(RsContext con, const char* path)
746     __DEPRECATED_IN(
747         31,
748         "RenderScript is deprecated. See "
749         "https://developer.android.com/guide/topics/renderscript/migrate");
750 extern "C" void rsaFileA3DGetNumIndexEntries(RsContext con, int32_t* numEntries,
751                                              RsFile file)
752     __DEPRECATED_IN(
753         31,
754         "RenderScript is deprecated. See "
755         "https://developer.android.com/guide/topics/renderscript/migrate");
756 extern "C" void rsaFileA3DGetIndexEntries(RsContext con,
757                                           RsFileIndexEntry* fileEntries,
758                                           uint32_t numEntries, RsFile file)
759     __DEPRECATED_IN(
760         31,
761         "RenderScript is deprecated. See "
762         "https://developer.android.com/guide/topics/renderscript/migrate");
763 extern "C" void rsaMeshGetVertexBufferCount(RsContext con, RsMesh mv,
764                                             int32_t* numVtx)
765     __DEPRECATED_IN(
766         31,
767         "RenderScript is deprecated. See "
768         "https://developer.android.com/guide/topics/renderscript/migrate");
769 extern "C" void rsaMeshGetIndexCount(RsContext con, RsMesh mv, int32_t* numIdx)
770     __DEPRECATED_IN(
771         31,
772         "RenderScript is deprecated. See "
773         "https://developer.android.com/guide/topics/renderscript/migrate");
774 extern "C" void rsaMeshGetVertices(RsContext con, RsMesh mv,
775                                    RsAllocation* vtxData, uint32_t vtxDataCount)
776     __DEPRECATED_IN(
777         31,
778         "RenderScript is deprecated. See "
779         "https://developer.android.com/guide/topics/renderscript/migrate");
780 extern "C" void rsaMeshGetIndices(RsContext con, RsMesh mv, RsAllocation* va,
781                                   uint32_t* primType, uint32_t idxDataCount)
782     __DEPRECATED_IN(
783         31,
784         "RenderScript is deprecated. See "
785         "https://developer.android.com/guide/topics/renderscript/migrate");
786 
787 #endif // ANDROID_RS_API_STUBS_H
788