MCPcopy Create free account
hub / github.com/LibreVR/Revive / CreateSharedTextureGL

Method CreateSharedTextureGL

Revive/TextureD3D.cpp:338–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338bool 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
350void TextureD3D::DeleteSharedTextureGL(unsigned int name)
351{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected