1Name 2 3 MESA_framebuffer_swap_xy 4 5Name Strings 6 7 GL_MESA_framebuffer_swap_xy 8 9Contact 10 11 Cici Ruan <ruanc@chromium.org> 12 13Contributors 14 15 Cici Ruan, Google 16 Kristian Kristensen, Google 17 Fritz Koenig, Google 18 Rob Clark, Google 19 Chad Versace, Google 20 21Status 22 23 Proposal 24 25Version 26 27 Last Modified Date: April 8, 2020 28 Revision: 1 29 30Number 31 32 OpenGL Extension 549 33 OpenGL ES Extension 328 34 35Dependencies 36 37 Requires OpenGL ES 3.1 or OpenGL 4.3 for FramebufferParameteri. 38 39Overview 40 41 This extension defines a new framebuffer parameter, 42 GL_FRAMEBUFFER_SWAP_XY_MESA, that changes the behavior of the reads and 43 writes to the framebuffer attachment points. When 44 GL_FRAMEBUFFER_SWAP_XY_MESA is GL_TRUE, render commands and pixel transfer 45 operations access the backing store of each attachment point with an 46 xy-swapped coordinate system. This xy-inversion is relative to the 47 coordinate system set when GL_FRAMEBUFFER_SWAP_XY_MESA is GL_FALSE. 48 49 Access through TexSubImage2D and similar calls will notice the effect of 50 the swap when they are not attached to framebuffer objects because 51 GL_FRAMEBUFFER_SWAP_XY_MESA is associated with the framebuffer object and 52 not the attachment points. 53 54 The application should notice the display width and height are also swapped 55 when GL_FRAMEBUFFER_SWAP_XY_MESA is GL_TRUE. 56 57 This extension is mainly for pre-rotation and recommended to use it with 58 MESA_framebuffer_flip_x and MESA_framebuffer_flip_y to have rotated 59 result. 60 61IP Status 62 63 None 64 65Issues 66 67 None 68 69New Procedures and Functions 70 71 None 72 73New Types 74 75 None 76 77New Tokens 78 79 Accepted by the <pname> argument of FramebufferParameteri and 80 GetFramebufferParameteriv: 81 82 GL_FRAMEBUFFER_SWAP_XY_MESA 0x8BBD 83 84 Interactions with OpenGL ES 3.1 and any other versions and 85 extensions that provide the entry points FramebufferParameteri 86 and GetFramebufferParameteriv 87 88 Token GL_FRAMEBUFFER_SWAP_XY_MESA is accepted as the <pname> argument of 89 FramebufferParameteri and GetFramebufferParameteriv. 90 91Errors 92 93 None 94 95Revision History 96 97 Version 1, 2020/04/08 98 - Initial draft (Cici Ruan) 99