rsdBcc.h revision bad807405b2b9764372af1ad24bcfd4fb1f33d8e
1/*
2 * Copyright (C) 2009 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 RSD_BCC_H
18#define RSD_BCC_H
19
20#include <rs_hal.h>
21
22
23bool rsdScriptInit(const android::renderscript::Context *, android::renderscript::ScriptC *,
24                   char const *resName, char const *cacheDir,
25                   uint8_t const *bitcode, size_t bitcodeSize,
26                   uint32_t flags, android::renderscript::RsHalSymbolLookupFunc lookupFunc);
27void rsdScriptInvokeFunction(const android::renderscript::Context *dc,
28                             const android::renderscript::Script *script,
29                             uint32_t slot,
30                             const void *params,
31                             size_t paramLength);
32int rsdScriptInvokeRoot(const android::renderscript::Context *dc,
33                        const android::renderscript::Script *script);
34void rsdScriptInvokeInit(const android::renderscript::Context *dc,
35                         const android::renderscript::Script *script);
36
37void rsdScriptSetGlobalVar(const android::renderscript::Context *,
38                           const android::renderscript::Script *,
39                           uint32_t slot, void *data, size_t dataLen);
40void rsdScriptSetGlobalBind(const android::renderscript::Context *,
41                            const android::renderscript::Script *,
42                            uint32_t slot, void *data);
43void rsdScriptSetGlobalObj(const android::renderscript::Context *,
44                           const android::renderscript::Script *,
45                           uint32_t slot, android::renderscript::ObjectBase *data);
46
47void rsdScriptSetGlobal(const android::renderscript::Context *dc,
48                        const android::renderscript::Script *script,
49                        uint32_t slot,
50                        void *data,
51                        size_t dataLength);
52void rsdScriptGetGlobal(const android::renderscript::Context *dc,
53                        const android::renderscript::Script *script,
54                        uint32_t slot,
55                        void *data,
56                        size_t dataLength);
57void rsdScriptDestroy(const android::renderscript::Context *dc,
58                      android::renderscript::Script *script);
59
60
61#endif
62