Class TexturePool
- Namespace
- HelixToolkit.SharpDX.Render
- Assembly
- HelixToolkit.SharpDX.dll
public sealed class TexturePool : DisposeObject, IDisposable
- Inheritance
-
TexturePool
- Implements
- Inherited Members
Constructors
TexturePool(IDevice3DResources, Texture2DDescription)
public TexturePool(IDevice3DResources deviceResourse, Texture2DDescription desc)
Parameters
deviceResourseIDevice3DResourcesdescTexture2DDescription
Properties
Height
public int Height { get; }
Property Value
Width
public int Width { get; }
Property Value
Methods
Get(Format)
Gets the off screen texture with specified format. After using it, make sure to call Dispose() to return it back into the pool.
public ShaderResourceViewProxy Get(Format format)
Parameters
formatFormatThe format.
Returns
OnDispose(bool)
Disposes of object resources.
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesboolIf true, managed resources should be disposed of in addition to unmanaged resources.