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