ResourceEntry
ResourceEntry
Kind: global class
- ResourceEntry
- .resource_id :
number - .resource_descriptor :
ResourceDescriptor.<T>|null - .resource_version :
number - .resource :
T|null - .imported :
boolean - .producer :
RenderPassNode|null - .last :
RenderPassNode|null - .create(resources)
- .destroy(resources)
- .isImported() ⇒
boolean - .isTransient() ⇒
boolean
- .resource_id :
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
| Param | Type |
|---|---|
| resources | RenderResourceManager |
resourceEntry.destroy(resources)
De-allocated memory for the resource
Kind: instance method of ResourceEntry
| Param | Type |
|---|---|
| resources | RenderResourceManager |
resourceEntry.isImported() ⇒ boolean
Kind: instance method of ResourceEntry
resourceEntry.isTransient() ⇒ boolean
Kind: instance method of ResourceEntry