Well it allows to display a picture onto a vr device by
1) duplicating the picture (for each eye)
2) applying the inverse geometrical deformation to compensate for oculus/vr lenses deformation
See this for details; note that the one i provided you with is GLES compliant (and is found in the comments of the url below)