Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GraphicsDevice.CreateSharedData<T> Delegate

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

    A delegate called to create shareable data. See remarks.

    public delegate T CreateSharedData<out T>(GraphicsDevice device)
        where T : class, IDisposable;
    Parameters
    Type Name Description
    GraphicsDevice device
    Returns
    Type Description
    T

    A new instance of the data to share.

    Type Parameters
    Name Description
    T

    Type of the data to create.

    Remarks

    Because this method is being called from a lock region, this method should not be time consuming.


    Extension Methods

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

    Back to top

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