In past time, I have spent some effort to make SGX work for 3D demos.  Now I share some work I have done. Hope that can be helpful!