The same way shared memory works on general purpose computers.<p>Your porn browser declares it wants to share its window buffer with the WM, the kernel maps the buffer into WM&#x27;s GPU address space and now WM&#x27;s shaders can read from this buffer.