Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of CV*TextureCache in GL/Metal HgiIntrop #2828

Conversation

jasonfielder
Copy link

@jasonfielder jasonfielder commented Nov 22, 2023

Description of Change(s)

CVMetalTextureCache and CVOpenGLTextureCache was used to create the OpenGL and Metal resource handles to a shared GPU texture. This contained a memory leak, and was ultimately not necessary for the GL/Metal interop as the textures were only recreated when the OpenGL FBO resolution changed.

This PR removes the use of the CV*TextureCaches, simplifying the implementation and fixing the reported memory leak.

Fixes Issue(s)

  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

@jesschimein
Copy link
Contributor

Filed as internal issue #USD-8983

@jasonfielder jasonfielder marked this pull request as ready for review November 22, 2023 19:48
@pixar-oss pixar-oss merged commit e426f4c into PixarAnimationStudios:dev Dec 15, 2023
5 checks passed
@jasonfielder jasonfielder deleted the metal-gl-interop-remove-cvtexturecache branch January 30, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants