| 135 | } |
| 136 | |
| 137 | bool TextureGL::CreateSharedTextureGL(unsigned int* outName) |
| 138 | { |
| 139 | // We don't actually share a texture, we just create a new one in the current context |
| 140 | glCreateTextures(GL_TEXTURE_2D, 1, &m_InteropTexture); |
| 141 | glTextureParameteri(m_InteropTexture, GL_TEXTURE_BASE_LEVEL, 0); |
| 142 | glTextureParameteri(m_InteropTexture, GL_TEXTURE_MAX_LEVEL, 0); |
| 143 | glTextureStorage2D(m_InteropTexture, 1, GL_RGBA8, m_Width, m_Height); |
| 144 | *outName = m_InteropTexture; |
| 145 | return true; |
| 146 | } |
| 147 | |
| 148 | void TextureGL::DeleteSharedTextureGL(unsigned int name) |
| 149 | { |
nothing calls this directly
no outgoing calls
no test coverage detected