Table of Contents

Class GraphicsResource

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

GraphicsResource class

public abstract class GraphicsResource : GraphicsResourceBase, IDisposable, IComponent, IReferencable, ICollectorHolder
Inheritance
GraphicsResource
Implements
Derived
Inherited Members
Extension Methods

Constructors

GraphicsResource()

protected GraphicsResource()

GraphicsResource(GraphicsDevice)

protected GraphicsResource(GraphicsDevice device)

Parameters

device GraphicsDevice

GraphicsResource(GraphicsDevice, string)

protected GraphicsResource(GraphicsDevice device, string name)

Parameters

device GraphicsDevice
name string

Properties

IsDebugMode

protected bool IsDebugMode { get; }

Property Value

bool

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

ShaderResourceView

The device child.

NativeUnorderedAccessView

Gets or sets the UnorderedAccessView attached to this GraphicsResource.

protected UnorderedAccessView NativeUnorderedAccessView { get; set; }

Property Value

UnorderedAccessView

The device child.

Methods

OnDestroyed()

Called when graphics device has been detected to be internally destroyed.

protected override void OnDestroyed()

OnNameChanged()

Called when Name property was changed.

protected override void OnNameChanged()