| 207 | const int SourceCount = 2; |
| 208 | |
| 209 | int MapSourceToIndex(EShSource source) |
| 210 | { |
| 211 | int index = 0; |
| 212 | |
| 213 | switch (source) { |
| 214 | case EShSourceGlsl: index = 0; break; |
| 215 | case EShSourceHlsl: index = 1; break; |
| 216 | default: break; |
| 217 | } |
| 218 | |
| 219 | assert(index < SourceCount); |
| 220 | |
| 221 | return index; |
| 222 | } |
| 223 | |
| 224 | // only one of these needed for non-ES; ES needs 2 for different precision defaults of built-ins |
| 225 | enum EPrecisionClass { |
no outgoing calls
no test coverage detected