TextureOwnership Type
TextureOwnership = TextureCacheOwnership | "external"
Describes the ownership of a RenderTexture, which controls when the texture is disposed of.
- TextureCacheOwnership indicates that the texture will be disposed of when the IModelConnection is closed, and that attempting
to create or look up a texture with the same
key
as an existing cached texture will always return the cached texture instead of creating a new one. - "external" indicates that the lifetime of the texture will be controlled externally, e.g. by a Decorator, in which case the owner of the
texture is responsible for calling its
dispose
method when it is no longer needed.
@see ownership
Defined in
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.