Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    GraphicsResourceLifetimeState Enum

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    Describes the lifetime state of a graphics resource.

    public enum GraphicsResourceLifetimeState

    Fields

    Name Description
    Active

    Resource is active and available for use.

    Destroyed

    Resource has been destroyed due to graphics device being destroyed. It will need to be recreated or reloaded when rendering resume.

    Paused

    Resource is in a reduced state (partially or completely destroyed) because application is in the background. Context should still be alive. This is useful for freeing dynamic resources such as FBO, that could be easily restored when application is resumed.

    Extension Methods

    ComponentBaseExtensions.DisposeBy<GraphicsResourceLifetimeState>(ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<GraphicsResourceLifetimeState>(ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation