Add EGLContext and DeviceContextManager

Summary:
EGLContext is a utility to render with OpenGL without an attached display (that is, without a monitor).

DeviceContextManager allows us to avoid unnecessary context creations and releases. See docstrings for more info.

Reviewed By: jcjohnson

Differential Revision: D36562551

fbshipit-source-id: eb0d2a2f85555ee110e203d435a44ad243281d2c
This commit is contained in:
Krzysztof Chalupka
2022-07-22 09:43:05 -07:00
committed by Facebook GitHub Bot
parent 54c75b4114
commit 78bb6d17fa
5 changed files with 852 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ class TestBuild(unittest.TestCase):
root_dir = get_pytorch3d_dir() / "pytorch3d"
for module_file in root_dir.glob("**/*.py"):
if module_file.stem in ("__init__", "plotly_vis"):
if module_file.stem in ("__init__", "plotly_vis", "opengl_utils"):
continue
relative_module = str(module_file.relative_to(root_dir))[:-3]
module = "pytorch3d." + relative_module.replace("/", ".")