Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GraphicsResourceUsage Enum

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

    Identifies expected resource use during rendering. The usage directly reflects whether a resource is accessible by the CPU and/or the GPU.

    [DataContract]
    public enum GraphicsResourceUsage

    Fields

    Name Description
    Default

    A resource that requires read and write access by the GPU. This is likely to be the most common usage choice.

    Dynamic

    A resource that is accessible by both the GPU (read only) and the CPU (write only). A dynamic resource is a good choice for a resource that will be updated by the CPU at least once per frame. To update a dynamic resource, use a Map method.

    Immutable

    A resource that can only be read by the GPU. It cannot be written by the GPU, and cannot be accessed at all by the CPU. This type of resource must be initialized when it is created, since it cannot be changed after creation.

    Staging

    A resource that supports data transfer (copy) from the GPU to the CPU.

    Extension Methods

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

    Back to top

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