Get the formats supported by the given surface.
the Surface to query the formats from
the formats supported by the surface. [ Formats.undefined ] can be returned to indicate that any format is supported.
See Implementation
Get the formats supported by the given surface.