| 336 | } |
| 337 | |
| 338 | bool TextureD3D::CreateSharedTextureGL(unsigned int* outName) |
| 339 | { |
| 340 | if (m_pDevice12) |
| 341 | return false; |
| 342 | |
| 343 | glGenTextures(1, outName); |
| 344 | m_hInteropDevice = wglDXOpenDeviceNV(m_pDevice.Get()); |
| 345 | if (m_hInteropDevice) |
| 346 | m_hInteropTarget = wglDXRegisterObjectNV(m_hInteropDevice, m_pTexture.Get(), *outName, GL_TEXTURE_2D, WGL_ACCESS_READ_WRITE_NV); |
| 347 | return m_hInteropDevice != nullptr; |
| 348 | } |
| 349 | |
| 350 | void TextureD3D::DeleteSharedTextureGL(unsigned int name) |
| 351 | { |
nothing calls this directly
no outgoing calls
no test coverage detected