Especially in Metal, but probably in OpenGL, I'm sure you get access to the actual resolution buffer you can render into.