Load the WGL_NV_DX_interop entry points in FunctionsWGL.

BUG=540829

Change-Id: Iab080789f2a21b900e2641aa97c0e3392d007391
Reviewed-on: https://chromium-review.googlesource.com/316802
Reviewed-by: Corentin Wallez <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
This commit is contained in:
Geoff Lang committed 2015-12-09 16:27:48 +00:00
1 parent 7f1cd75b98
commit 3d89043607
2 files changed
+29 -1

No files matched your search

+19 -1
View File
@@ -85,7 +85,15 @@ FunctionsWGL::FunctionsWGL()
queryPbufferARB(nullptr),
bindTexImageARB(nullptr),
releaseTexImageARB(nullptr),
setPbufferAttribARB(nullptr)
setPbufferAttribARB(nullptr),
dxSetResourceShareHandleNV(nullptr),
dxOpenDeviceNV(nullptr),
dxCloseDeviceNV(nullptr),
dxRegisterObjectNV(nullptr),
dxUnregisterObjectNV(nullptr),
dxObjectAccessNV(nullptr),
dxLockObjectsNV(nullptr),
dxUnlockObjectsNV(nullptr)
{
}
@@ -154,6 +162,16 @@ void FunctionsWGL::initialize(HMODULE glModule, HDC context)
GetWGLExtensionProcAddress(glModule, getProcAddress, extensions, "WGL_ARB_render_texture", "wglBindTexImageARB", &bindTexImageARB);
GetWGLExtensionProcAddress(glModule, getProcAddress, extensions, "WGL_ARB_render_texture", "wglReleaseTexImageARB", &releaseTexImageARB);
GetWGLExtensionProcAddress(glModule, getProcAddress, extensions, "WGL_ARB_render_texture", "wglSetPbufferAttribARB", &setPbufferAttribARB);
// WGL_NV_DX_interop
GetWGLExtensionProcAddress(glModule, getProcAddress, extensions, "WGL_NV_DX_interop", "wglDXSetResourceShareHandleNV", &dxSetResourceShareHandleNV);
GetWGLExtensionProcAddress(glModule, getProcAddress, extensions, "WGL_NV_DX_interop", "wglDXOpenDeviceNV", &dxOpenDeviceNV);
GetWGLExtensionProcAddress(glModule, getProcAddress, extensions, "WGL_NV_DX_interop", "wglDXCloseDeviceNV", &dxCloseDeviceNV);
GetWGLExtensionProcAddress(glModule, getProcAddress, extensions, "WGL_NV_DX_interop", "wglDXRegisterObjectNV", &dxRegisterObjectNV);
GetWGLExtensionProcAddress(glModule, getProcAddress, extensions, "WGL_NV_DX_interop", "wglDXUnregisterObjectNV", &dxUnregisterObjectNV);
GetWGLExtensionProcAddress(glModule, getProcAddress, extensions, "WGL_NV_DX_interop", "wglDXObjectAccessNV", &dxObjectAccessNV);
GetWGLExtensionProcAddress(glModule, getProcAddress, extensions, "WGL_NV_DX_interop", "wglDXLockObjectsNV", &dxLockObjectsNV);
GetWGLExtensionProcAddress(glModule, getProcAddress, extensions, "WGL_NV_DX_interop", "wglDXUnlockObjectsNV", &dxUnlockObjectsNV);
}
bool FunctionsWGL::hasExtension(const std::string &ext) const
@@ -77,6 +77,16 @@ class FunctionsWGL : angle::NonCopyable
PFNWGLBINDTEXIMAGEARBPROC bindTexImageARB;
PFNWGLRELEASETEXIMAGEARBPROC releaseTexImageARB;
PFNWGLSETPBUFFERATTRIBARBPROC setPbufferAttribARB;
// WGL_NV_DX_interop
PFNWGLDXSETRESOURCESHAREHANDLENVPROC dxSetResourceShareHandleNV;
PFNWGLDXOPENDEVICENVPROC dxOpenDeviceNV;
PFNWGLDXCLOSEDEVICENVPROC dxCloseDeviceNV;
PFNWGLDXREGISTEROBJECTNVPROC dxRegisterObjectNV;
PFNWGLDXUNREGISTEROBJECTNVPROC dxUnregisterObjectNV;
PFNWGLDXOBJECTACCESSNVPROC dxObjectAccessNV;
PFNWGLDXLOCKOBJECTSNVPROC dxLockObjectsNV;
PFNWGLDXUNLOCKOBJECTSNVPROC dxUnlockObjectsNV;
};
}