2
Vote

Tracking of GraphicsResources

description

Each graphics resource is using a native graphics device. Sometimes (e.g. ApplyChanges, DeviceReset, DeviceLost) the native device is disposed and recreated. When this happens, all the references of GraphicsResource become invalid and needs to be wired up again.

comments

Glatzemann wrote Dec 7, 2011 at 7:42 AM

Basic tracking was implemented in revision #12700. Effect, VertexBuffer, DynamicVertexBuffer, IndexBuffer and DynamicIndexBuffer are now recreated after destroying/resetting the GraphicsDevice.