TextureOwnership Type alias

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 CreateTextureArgs.ownership

TextureOwnership = TextureCacheOwnership | "external"

Defined in

Last Updated: 15 March, 2024