main: Add code to check that a format is supported by the GPU before exposing.