Function Surface.preferredFormat

Retreive an optimal texture format for this Surface.

TextureFormat preferredFormat (
  Adapter adapter
) @trusted const;