Jason Sams | 044e2ee | 2011-08-08 16:52:30 -0700 | [diff] [blame] | 1 | /* |
Jean-Luc Brouillet | c5184e2 | 2015-03-13 13:51:24 -0700 | [diff] [blame] | 2 | * Copyright (C) 2015 The Android Open Source Project |
Jason Sams | 044e2ee | 2011-08-08 16:52:30 -0700 | [diff] [blame] | 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 | |
Jean-Luc Brouillet | 4a73004 | 2015-04-02 16:15:25 -0700 | [diff] [blame] | 17 | // Don't edit this file! It is auto-generated by frameworks/rs/api/generate.sh. |
Jean-Luc Brouillet | c5184e2 | 2015-03-13 13:51:24 -0700 | [diff] [blame] | 18 | |
| 19 | /* |
Jean-Luc Brouillet | 20b27d6 | 2015-04-03 14:39:53 -0700 | [diff] [blame] | 20 | * rs_debug.rsh: Debugging Functions |
Jason Sams | 044e2ee | 2011-08-08 16:52:30 -0700 | [diff] [blame] | 21 | * |
Jean-Luc Brouillet | 20b27d6 | 2015-04-03 14:39:53 -0700 | [diff] [blame] | 22 | * The functions below are intended to be used during application developement. |
| 23 | * They should not be used in shipping applications. |
Jason Sams | 044e2ee | 2011-08-08 16:52:30 -0700 | [diff] [blame] | 24 | */ |
Jean-Luc Brouillet | 4a73004 | 2015-04-02 16:15:25 -0700 | [diff] [blame] | 25 | |
Jean-Luc Brouillet | c5184e2 | 2015-03-13 13:51:24 -0700 | [diff] [blame] | 26 | #ifndef RENDERSCRIPT_RS_DEBUG_RSH |
| 27 | #define RENDERSCRIPT_RS_DEBUG_RSH |
Rajeev Sharma | a1dd74c | 2012-07-09 03:14:47 -0700 | [diff] [blame] | 28 | |
Jason Sams | 044e2ee | 2011-08-08 16:52:30 -0700 | [diff] [blame] | 29 | #define RS_DEBUG(a) rsDebug(#a, a) |
| 30 | #define RS_DEBUG_MARKER rsDebug(__FILE__, __LINE__) |
| 31 | |
Jean-Luc Brouillet | c5184e2 | 2015-03-13 13:51:24 -0700 | [diff] [blame] | 32 | /* |
Jean-Luc Brouillet | 20b27d6 | 2015-04-03 14:39:53 -0700 | [diff] [blame] | 33 | * rsDebug: Log a message and values |
| 34 | * |
| 35 | * This function prints a message to the standard log, followed by the provided values. |
| 36 | * |
| 37 | * This function is intended for debugging only and should not be used in shipping |
| 38 | * applications. |
Jean-Luc Brouillet | c5184e2 | 2015-03-13 13:51:24 -0700 | [diff] [blame] | 39 | */ |
| 40 | extern void __attribute__((overloadable)) |
| 41 | rsDebug(const char* message, double a); |
| 42 | |
| 43 | extern void __attribute__((overloadable)) |
| 44 | rsDebug(const char* message, int a); |
| 45 | |
| 46 | extern void __attribute__((overloadable)) |
| 47 | rsDebug(const char* message, uint a); |
| 48 | |
| 49 | extern void __attribute__((overloadable)) |
| 50 | rsDebug(const char* message, long a); |
| 51 | |
| 52 | extern void __attribute__((overloadable)) |
| 53 | rsDebug(const char* message, ulong a); |
| 54 | |
| 55 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 56 | extern void __attribute__((overloadable)) |
| 57 | rsDebug(const char* message, int2 a); |
Jason Sams | 044e2ee | 2011-08-08 16:52:30 -0700 | [diff] [blame] | 58 | #endif |
Jean-Luc Brouillet | c5184e2 | 2015-03-13 13:51:24 -0700 | [diff] [blame] | 59 | |
| 60 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 61 | extern void __attribute__((overloadable)) |
| 62 | rsDebug(const char* message, int3 a); |
| 63 | #endif |
| 64 | |
| 65 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 66 | extern void __attribute__((overloadable)) |
| 67 | rsDebug(const char* message, int4 a); |
| 68 | #endif |
| 69 | |
| 70 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 71 | extern void __attribute__((overloadable)) |
| 72 | rsDebug(const char* message, uint2 a); |
| 73 | #endif |
| 74 | |
| 75 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 76 | extern void __attribute__((overloadable)) |
| 77 | rsDebug(const char* message, uint3 a); |
| 78 | #endif |
| 79 | |
| 80 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 81 | extern void __attribute__((overloadable)) |
| 82 | rsDebug(const char* message, uint4 a); |
| 83 | #endif |
| 84 | |
| 85 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 86 | extern void __attribute__((overloadable)) |
| 87 | rsDebug(const char* message, long2 a); |
| 88 | #endif |
| 89 | |
| 90 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 91 | extern void __attribute__((overloadable)) |
| 92 | rsDebug(const char* message, long3 a); |
| 93 | #endif |
| 94 | |
| 95 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 96 | extern void __attribute__((overloadable)) |
| 97 | rsDebug(const char* message, long4 a); |
| 98 | #endif |
| 99 | |
| 100 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 101 | extern void __attribute__((overloadable)) |
| 102 | rsDebug(const char* message, ulong2 a); |
| 103 | #endif |
| 104 | |
| 105 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 106 | extern void __attribute__((overloadable)) |
| 107 | rsDebug(const char* message, ulong3 a); |
| 108 | #endif |
| 109 | |
| 110 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 111 | extern void __attribute__((overloadable)) |
| 112 | rsDebug(const char* message, ulong4 a); |
| 113 | #endif |
| 114 | |
Jean-Luc Brouillet | 6ba0517 | 2015-04-03 16:39:18 -0700 | [diff] [blame^] | 115 | #if (defined(RS_VERSION) && (RS_VERSION >= 23)) |
| 116 | extern void __attribute__((overloadable)) |
| 117 | rsDebug(const char* message, double2 a); |
| 118 | #endif |
| 119 | |
| 120 | #if (defined(RS_VERSION) && (RS_VERSION >= 23)) |
| 121 | extern void __attribute__((overloadable)) |
| 122 | rsDebug(const char* message, double3 a); |
| 123 | #endif |
| 124 | |
| 125 | #if (defined(RS_VERSION) && (RS_VERSION >= 23)) |
| 126 | extern void __attribute__((overloadable)) |
| 127 | rsDebug(const char* message, double4 a); |
| 128 | #endif |
| 129 | |
Jean-Luc Brouillet | c5184e2 | 2015-03-13 13:51:24 -0700 | [diff] [blame] | 130 | extern void __attribute__((overloadable)) |
| 131 | rsDebug(const char* message, float a); |
| 132 | |
| 133 | extern void __attribute__((overloadable)) |
| 134 | rsDebug(const char* message, float2 a); |
| 135 | |
| 136 | extern void __attribute__((overloadable)) |
| 137 | rsDebug(const char* message, float3 a); |
| 138 | |
| 139 | extern void __attribute__((overloadable)) |
| 140 | rsDebug(const char* message, float4 a); |
| 141 | |
| 142 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 143 | extern void __attribute__((overloadable)) |
| 144 | rsDebug(const char* message, char a); |
| 145 | #endif |
| 146 | |
| 147 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 148 | extern void __attribute__((overloadable)) |
| 149 | rsDebug(const char* message, char2 a); |
| 150 | #endif |
| 151 | |
| 152 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 153 | extern void __attribute__((overloadable)) |
| 154 | rsDebug(const char* message, char3 a); |
| 155 | #endif |
| 156 | |
| 157 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 158 | extern void __attribute__((overloadable)) |
| 159 | rsDebug(const char* message, char4 a); |
| 160 | #endif |
| 161 | |
| 162 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 163 | extern void __attribute__((overloadable)) |
| 164 | rsDebug(const char* message, uchar a); |
| 165 | #endif |
| 166 | |
| 167 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 168 | extern void __attribute__((overloadable)) |
| 169 | rsDebug(const char* message, uchar2 a); |
| 170 | #endif |
| 171 | |
| 172 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 173 | extern void __attribute__((overloadable)) |
| 174 | rsDebug(const char* message, uchar3 a); |
| 175 | #endif |
| 176 | |
| 177 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 178 | extern void __attribute__((overloadable)) |
| 179 | rsDebug(const char* message, uchar4 a); |
| 180 | #endif |
| 181 | |
| 182 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 183 | extern void __attribute__((overloadable)) |
| 184 | rsDebug(const char* message, short a); |
| 185 | #endif |
| 186 | |
| 187 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 188 | extern void __attribute__((overloadable)) |
| 189 | rsDebug(const char* message, short2 a); |
| 190 | #endif |
| 191 | |
| 192 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 193 | extern void __attribute__((overloadable)) |
| 194 | rsDebug(const char* message, short3 a); |
| 195 | #endif |
| 196 | |
| 197 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 198 | extern void __attribute__((overloadable)) |
| 199 | rsDebug(const char* message, short4 a); |
| 200 | #endif |
| 201 | |
| 202 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 203 | extern void __attribute__((overloadable)) |
| 204 | rsDebug(const char* message, ushort a); |
| 205 | #endif |
| 206 | |
| 207 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 208 | extern void __attribute__((overloadable)) |
| 209 | rsDebug(const char* message, ushort2 a); |
| 210 | #endif |
| 211 | |
| 212 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 213 | extern void __attribute__((overloadable)) |
| 214 | rsDebug(const char* message, ushort3 a); |
| 215 | #endif |
| 216 | |
| 217 | #if (defined(RS_VERSION) && (RS_VERSION >= 17)) |
| 218 | extern void __attribute__((overloadable)) |
| 219 | rsDebug(const char* message, ushort4 a); |
| 220 | #endif |
| 221 | |
| 222 | extern void __attribute__((overloadable)) |
| 223 | rsDebug(const char* message, float a, float b); |
| 224 | |
| 225 | extern void __attribute__((overloadable)) |
| 226 | rsDebug(const char* message, float a, float b, float c); |
| 227 | |
| 228 | extern void __attribute__((overloadable)) |
| 229 | rsDebug(const char* message, float a, float b, float c, float d); |
| 230 | |
| 231 | extern void __attribute__((overloadable)) |
| 232 | rsDebug(const char* message, long long a); |
| 233 | |
| 234 | extern void __attribute__((overloadable)) |
| 235 | rsDebug(const char* message, unsigned long long a); |
| 236 | |
| 237 | extern void __attribute__((overloadable)) |
| 238 | rsDebug(const char* message, const void* a); |
| 239 | |
| 240 | extern void __attribute__((overloadable)) |
| 241 | rsDebug(const char* message, const rs_matrix4x4* a); |
| 242 | |
| 243 | extern void __attribute__((overloadable)) |
| 244 | rsDebug(const char* message, const rs_matrix3x3* a); |
| 245 | |
| 246 | extern void __attribute__((overloadable)) |
| 247 | rsDebug(const char* message, const rs_matrix2x2* a); |
| 248 | |
| 249 | #endif // RENDERSCRIPT_RS_DEBUG_RSH |