IPreloadingResourceHandle

Description

interface Tinman.Engine.Rendering.IPreloadingResourceHandle

Derived from

IResourceHandle

Extended by

IModelGeometry
IModelTexture
TextureHandle abstract

Base interface for classes that act as handles for loading/creating graphics resources, with optional support for preloading resource data in a background thread.

Public / Methods

Preload​Resource


[OwnerReturn] [ThreadSafe]
public method PreloadResource → ()

returns → IResourceData

The preloaded resource data or null if this resource handle does not support resp. require preloading.

Preloads resource data, without creating the resource object.

Calling IResourceHandle.CreateResource on the returned resource will perform no additional loading, which means that all necessary data is already present in memory.

IOException

If an I/O error has occurred while preloading the resource data.

ValidatingException

If the data reader has reported an error, for example because of an unsupported file format feature.

Public / Attributes

Can​Preload​Resource


public attribute CanPreloadResource → (get)

value : bool

true if preloading is supported (i.e. PreloadResource will never return null),
false if preloading is not supported (i.e. PreloadResource always returns null).

Does this resource handle support preloading?