This is a resources organized in the context.
Context resources live in GPU until either (1) or (2) happened.
This means that if we fail to identify when we can free memory we'll fill up out GPU memory.
To organize this we fall back to reference counting:
Every time we like this kind of resource to outlive a certain context we need to call retain. When we are done with it we use release. If more than one owner exists release won't harm the resource.
Classes that create a resource will internally call releaseLater() to let them fail if retain isn't used explicitly.
Generated using TypeDoc