Skip to content

Implement a solution for regenerating content of dynamic resources when the context is lost #3312

@mvaligursky

Description

@mvaligursky

When a webgl context is lost, dynamically generated resources are invalidated and their content is lost. Examples:

  • content of render target textures (this includes runtime lightmaps, area light LUTs, one time rendered shadow maps ..)
  • content of dynamically generated VBs and IBs (instanced geometry VB, many others)

Ideally we should have a solution allowing this to be handled - either by the engine internally if possible (if a cpu storage of the data exists, which it does for VB/IB), or by exposing some events for the user to regenerate their data.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions