blob: d52590ea13be30489fb2d61364e65b223e6a9dd9 [file] [log] [blame]
Jason Sams044e2ee2011-08-08 16:52:30 -07001/*
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -07002 * Copyright (C) 2015 The Android Open Source Project
Jason Sams044e2ee2011-08-08 16:52:30 -07003 *
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
Jean-Luc Brouillet4a730042015-04-02 16:15:25 -070017// Don't edit this file! It is auto-generated by frameworks/rs/api/generate.sh.
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070018
19/*
20 * rs_debug.rsh: Utility debugging routines
Jason Sams044e2ee2011-08-08 16:52:30 -070021 *
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070022 * Routines intended to be used during application developement. These should
23 * not be used in shipping applications. All print a string and value pair to
24 * the standard log.
Jason Sams044e2ee2011-08-08 16:52:30 -070025 */
Jean-Luc Brouillet4a730042015-04-02 16:15:25 -070026
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070027#ifndef RENDERSCRIPT_RS_DEBUG_RSH
28#define RENDERSCRIPT_RS_DEBUG_RSH
Rajeev Sharmaa1dd74c2012-07-09 03:14:47 -070029
Jason Sams044e2ee2011-08-08 16:52:30 -070030#define RS_DEBUG(a) rsDebug(#a, a)
31#define RS_DEBUG_MARKER rsDebug(__FILE__, __LINE__)
32
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070033/*
34 * Debug function. Prints a string and value to the log.
35 */
36extern void __attribute__((overloadable))
37 rsDebug(const char* message, double a);
38
39extern void __attribute__((overloadable))
40 rsDebug(const char* message, int a);
41
42extern void __attribute__((overloadable))
43 rsDebug(const char* message, uint a);
44
45extern void __attribute__((overloadable))
46 rsDebug(const char* message, long a);
47
48extern void __attribute__((overloadable))
49 rsDebug(const char* message, ulong a);
50
51#if (defined(RS_VERSION) && (RS_VERSION >= 17))
52extern void __attribute__((overloadable))
53 rsDebug(const char* message, int2 a);
Jason Sams044e2ee2011-08-08 16:52:30 -070054#endif
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070055
56#if (defined(RS_VERSION) && (RS_VERSION >= 17))
57extern void __attribute__((overloadable))
58 rsDebug(const char* message, int3 a);
59#endif
60
61#if (defined(RS_VERSION) && (RS_VERSION >= 17))
62extern void __attribute__((overloadable))
63 rsDebug(const char* message, int4 a);
64#endif
65
66#if (defined(RS_VERSION) && (RS_VERSION >= 17))
67extern void __attribute__((overloadable))
68 rsDebug(const char* message, uint2 a);
69#endif
70
71#if (defined(RS_VERSION) && (RS_VERSION >= 17))
72extern void __attribute__((overloadable))
73 rsDebug(const char* message, uint3 a);
74#endif
75
76#if (defined(RS_VERSION) && (RS_VERSION >= 17))
77extern void __attribute__((overloadable))
78 rsDebug(const char* message, uint4 a);
79#endif
80
81#if (defined(RS_VERSION) && (RS_VERSION >= 17))
82extern void __attribute__((overloadable))
83 rsDebug(const char* message, long2 a);
84#endif
85
86#if (defined(RS_VERSION) && (RS_VERSION >= 17))
87extern void __attribute__((overloadable))
88 rsDebug(const char* message, long3 a);
89#endif
90
91#if (defined(RS_VERSION) && (RS_VERSION >= 17))
92extern void __attribute__((overloadable))
93 rsDebug(const char* message, long4 a);
94#endif
95
96#if (defined(RS_VERSION) && (RS_VERSION >= 17))
97extern void __attribute__((overloadable))
98 rsDebug(const char* message, ulong2 a);
99#endif
100
101#if (defined(RS_VERSION) && (RS_VERSION >= 17))
102extern void __attribute__((overloadable))
103 rsDebug(const char* message, ulong3 a);
104#endif
105
106#if (defined(RS_VERSION) && (RS_VERSION >= 17))
107extern void __attribute__((overloadable))
108 rsDebug(const char* message, ulong4 a);
109#endif
110
111extern void __attribute__((overloadable))
112 rsDebug(const char* message, float a);
113
114extern void __attribute__((overloadable))
115 rsDebug(const char* message, float2 a);
116
117extern void __attribute__((overloadable))
118 rsDebug(const char* message, float3 a);
119
120extern void __attribute__((overloadable))
121 rsDebug(const char* message, float4 a);
122
123#if (defined(RS_VERSION) && (RS_VERSION >= 17))
124extern void __attribute__((overloadable))
125 rsDebug(const char* message, char a);
126#endif
127
128#if (defined(RS_VERSION) && (RS_VERSION >= 17))
129extern void __attribute__((overloadable))
130 rsDebug(const char* message, char2 a);
131#endif
132
133#if (defined(RS_VERSION) && (RS_VERSION >= 17))
134extern void __attribute__((overloadable))
135 rsDebug(const char* message, char3 a);
136#endif
137
138#if (defined(RS_VERSION) && (RS_VERSION >= 17))
139extern void __attribute__((overloadable))
140 rsDebug(const char* message, char4 a);
141#endif
142
143#if (defined(RS_VERSION) && (RS_VERSION >= 17))
144extern void __attribute__((overloadable))
145 rsDebug(const char* message, uchar a);
146#endif
147
148#if (defined(RS_VERSION) && (RS_VERSION >= 17))
149extern void __attribute__((overloadable))
150 rsDebug(const char* message, uchar2 a);
151#endif
152
153#if (defined(RS_VERSION) && (RS_VERSION >= 17))
154extern void __attribute__((overloadable))
155 rsDebug(const char* message, uchar3 a);
156#endif
157
158#if (defined(RS_VERSION) && (RS_VERSION >= 17))
159extern void __attribute__((overloadable))
160 rsDebug(const char* message, uchar4 a);
161#endif
162
163#if (defined(RS_VERSION) && (RS_VERSION >= 17))
164extern void __attribute__((overloadable))
165 rsDebug(const char* message, short a);
166#endif
167
168#if (defined(RS_VERSION) && (RS_VERSION >= 17))
169extern void __attribute__((overloadable))
170 rsDebug(const char* message, short2 a);
171#endif
172
173#if (defined(RS_VERSION) && (RS_VERSION >= 17))
174extern void __attribute__((overloadable))
175 rsDebug(const char* message, short3 a);
176#endif
177
178#if (defined(RS_VERSION) && (RS_VERSION >= 17))
179extern void __attribute__((overloadable))
180 rsDebug(const char* message, short4 a);
181#endif
182
183#if (defined(RS_VERSION) && (RS_VERSION >= 17))
184extern void __attribute__((overloadable))
185 rsDebug(const char* message, ushort a);
186#endif
187
188#if (defined(RS_VERSION) && (RS_VERSION >= 17))
189extern void __attribute__((overloadable))
190 rsDebug(const char* message, ushort2 a);
191#endif
192
193#if (defined(RS_VERSION) && (RS_VERSION >= 17))
194extern void __attribute__((overloadable))
195 rsDebug(const char* message, ushort3 a);
196#endif
197
198#if (defined(RS_VERSION) && (RS_VERSION >= 17))
199extern void __attribute__((overloadable))
200 rsDebug(const char* message, ushort4 a);
201#endif
202
203extern void __attribute__((overloadable))
204 rsDebug(const char* message, float a, float b);
205
206extern void __attribute__((overloadable))
207 rsDebug(const char* message, float a, float b, float c);
208
209extern void __attribute__((overloadable))
210 rsDebug(const char* message, float a, float b, float c, float d);
211
212extern void __attribute__((overloadable))
213 rsDebug(const char* message, long long a);
214
215extern void __attribute__((overloadable))
216 rsDebug(const char* message, unsigned long long a);
217
218extern void __attribute__((overloadable))
219 rsDebug(const char* message, const void* a);
220
221extern void __attribute__((overloadable))
222 rsDebug(const char* message, const rs_matrix4x4* a);
223
224extern void __attribute__((overloadable))
225 rsDebug(const char* message, const rs_matrix3x3* a);
226
227extern void __attribute__((overloadable))
228 rsDebug(const char* message, const rs_matrix2x2* a);
229
230#endif // RENDERSCRIPT_RS_DEBUG_RSH