     }
 }
 
+internal extension SDLPixelFormat.Format {
+    
+    /// Get the human readable name of a pixel format
+    var formatName: String {
+        return String(cString: SDL_GetPixelFormatName(rawValue))
+    }
+}
+
 public extension SDLPixelFormat.Format {
     
     /// SDL_PIXELFORMAT_INDEX1LSB

    
    /// Get the human readable name of a pixel format.
    public var description: String {
        let name = debugDescription
        return name.split(separator: "_").last.flatMap { String($0) } ?? debugDescription
    }
}


extension SDLPixelFormat.Format: CustomDebugStringConvertible {
    
    public var debugDescription: String {
        return formatName
    }
}
