Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GraphicsResource Class

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

    GraphicsResource class

    System.Object → DisposeBase → ComponentBase → GraphicsResourceBase → GraphicsResource
    Derived from GraphicsResource: Buffer Texture

    public abstract class GraphicsResource : GraphicsResourceBase, IDisposable, IComponent, IReferencable, ICollectorHolder
    Name Description
    Constructors
    GraphicsResource()
    GraphicsResource(GraphicsDevice)
    GraphicsResource(GraphicsDevice, String)
    Properties
    IsDebugMode
    NativeShaderResourceView

    Gets or sets the ShaderResourceView attached to this GraphicsResource. Note that only Texture, Texture3D, RenderTarget2D, RenderTarget3D, DepthStencil are using this ShaderResourceView

    NativeUnorderedAccessView

    Gets or sets the UnorderedAccessView attached to this GraphicsResource.

    Methods
    OnDestroyed()
    OnNameChanged()
    | Improve this Doc View Source

    Constructors


    GraphicsResource()

    protected GraphicsResource()

    GraphicsResource(GraphicsDevice)

    protected GraphicsResource(GraphicsDevice device)
    Parameters
    Type Name Description
    GraphicsDevice device

    GraphicsResource(GraphicsDevice, String)

    protected GraphicsResource(GraphicsDevice device, string name)
    Parameters
    Type Name Description
    GraphicsDevice device
    System.String name
    | Improve this Doc View Source

    Properties


    IsDebugMode

    protected bool IsDebugMode { get; }
    Property Value
    Type Description
    System.Boolean

    NativeShaderResourceView

    Gets or sets the ShaderResourceView attached to this GraphicsResource. Note that only Texture, Texture3D, RenderTarget2D, RenderTarget3D, DepthStencil are using this ShaderResourceView

    protected ShaderResourceView NativeShaderResourceView { get; set; }
    Property Value
    Type Description
    SharpDX.Direct3D11.ShaderResourceView

    The device child.


    NativeUnorderedAccessView

    Gets or sets the UnorderedAccessView attached to this GraphicsResource.

    protected UnorderedAccessView NativeUnorderedAccessView { get; set; }
    Property Value
    Type Description
    SharpDX.Direct3D11.UnorderedAccessView

    The device child.

    | Improve this Doc View Source

    Methods


    OnDestroyed()

    protected override void OnDestroyed()
    Overrides
    GraphicsResourceBase.OnDestroyed()

    OnNameChanged()

    protected override void OnNameChanged()
    Overrides
    ComponentBase.OnNameChanged()

    Inherited Members

    GraphicsResourceBase.NativeResource
    GraphicsResourceBase.NativeDeviceChild
    GraphicsResourceBase.OnRecreate()
    GraphicsResourceBase.NativeDevice
    GraphicsResourceBase.Reload
    GraphicsResourceBase.GraphicsDevice
    GraphicsResourceBase.Destroyed
    GraphicsResourceBase.OnPause()
    GraphicsResourceBase.OnResume()
    GraphicsResourceBase.Destroy()
    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.ToString()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    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