Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
GraphicsResourceState.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 namespace SiliconStudio.Paradox.Graphics
4 {
5  /// <summary>
6  /// Describes the lifetime state of a graphics resource.
7  /// </summary>
9  {
10  /// <summary>
11  /// Resource is active and available for use.
12  /// </summary>
13  Active = 0,
14 
15  /// <summary>
16  /// Resource is in a reduced state (partially or completely destroyed) because application is in the background.
17  /// Context should still be alive.
18  /// This is useful for freeing dynamic resources such as FBO, that could be easily restored when application is resumed.
19  /// </summary>
20  Paused = 1,
21 
22  /// <summary>
23  /// Resource has been destroyed due to graphics device being destroyed.
24  /// It will need to be recreated or reloaded when rendering resume.
25  /// </summary>
26  Destroyed = 2,
27 
28  // Not sure if this one will be useful yet (in case of async reloading?)
29  // Reloading = 3,
30  }
31 }
Resource has been destroyed due to graphics device being destroyed. It will need to be recreated or r...
GraphicsResourceLifetimeState
Describes the lifetime state of a graphics resource.
Resource is active and available for use.