Click or drag to resize
AB4D logo

TextureCache Methods

The TextureCache type exposes the following members.

Methods
 NameDescription
Public methodCacheTexture(ShaderResourceView, Boolean, Object) CacheTexture stores the texture (as ShaderResourceView) as cached texture created from the originalObject.
Public methodCacheTexture(ShaderResourceView, Boolean, String) CacheTexture stores the texture (as ShaderResourceView) as cached texture created from the originalObject.
Public methodCleanupCache Cleans all disposed objects from cache
Public methodGetTextureFromFile Checks if a texture with specified fileName was already loaded and cached. In this case the method returns a cached texture and increases its reference count. Otherwise null is returned. You need to dispose the texture when it is not used any more.
Public methodGetTextureFromObject Check cache and tries to find a texture that was created from the originalObject. If texture is not found, null is returned. The texture needs to be disposed when it is not used any more.
Top
See Also