Skip to main content

ResourceEntry

ResourceEntry

Kind: global class

resourceEntry.resource_id : number

Kind: instance property of ResourceEntry

resourceEntry.resource_descriptor : ResourceDescriptor.<T> | null

Kind: instance property of ResourceEntry

resourceEntry.resource_version : number

Every time resource is modified - version increases

Kind: instance property of ResourceEntry

resourceEntry.resource : T | null

Actual resource handle

Kind: instance property of ResourceEntry

resourceEntry.imported : boolean

Imported or transient resource. Transient resource only exists in the graph, it will be reclaimed once the execution is done

Kind: instance property of ResourceEntry

resourceEntry.producer : RenderPassNode | null

Node that created this resource

Kind: instance property of ResourceEntry

resourceEntry.last : RenderPassNode | null

Kind: instance property of ResourceEntry

resourceEntry.create(resources)

Creates actual resource

Kind: instance method of ResourceEntry

ParamType
resourcesRenderResourceManager

resourceEntry.destroy(resources)

De-allocated memory for the resource

Kind: instance method of ResourceEntry

ParamType
resourcesRenderResourceManager