How to print MTLPixelFormat?

I'd like to get some information about an

MTLPixelFormat
object, which I get by
MTLTexture.pixelFormat
.

However when I print it, it just prints "MTLPixelFormat".
debugPrint just prints out "__C.MTLPixelFormat"

How can I actually get which pixel format this means?

How to print MTLPixelFormat?
 
 
Q