| 13 | |
| 14 | |
| 15 | LLGL_EXPORT const char* ToString(const ShaderType t) |
| 16 | { |
| 17 | using T = ShaderType; |
| 18 | |
| 19 | switch (t) |
| 20 | { |
| 21 | case T::Undefined: return "<undefined>"; |
| 22 | case T::Vertex: return "vertex"; |
| 23 | case T::TessControl: return "tessellation control"; |
| 24 | case T::TessEvaluation: return "tessellation evaluation"; |
| 25 | case T::Geometry: return "geometry"; |
| 26 | case T::Fragment: return "fragment"; |
| 27 | case T::Compute: return "compute"; |
| 28 | } |
| 29 | |
| 30 | return nullptr; |
| 31 | } |
| 32 | |
| 33 | LLGL_EXPORT const char* ToString(const ErrorType t) |
| 34 | { |
no outgoing calls
no test coverage detected