IResourceConsumer

Description

interface Tinman.Engine.Rendering.IResourceConsumer

Extended by

ResourceCache sealed

Callback for ResourceLoader class.

Public / Methods

Consume​Loaded​Resource


public method ConsumeLoadedResource → (4)

name in : string

The resource name, as provided to the resource loader.

handle in : IResourceHandle

The resource handle, as provided to the resource loader.

resource in : IResource own

The GPU resource object or null if error in is not null.

error in : TinmanError

The error that has occurred while loading the resource or null on success (i.e. resource in is not null).

Called by ResourceLoader to provide loaded GPU resource objects.

If the IResourceHandle.CreateResource method has returned null, this callback will not be invoked.