Table of Contents

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

deviceResourse IDevice3DResources
desc Texture2DDescription

Properties

Height

public int Height { get; }

Property Value

int

Width

public int Width { get; }

Property Value

int

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

format Format

The format.

Returns

ShaderResourceViewProxy

OnDispose(bool)

Disposes of object resources.

protected override void OnDispose(bool disposeManagedResources)

Parameters

disposeManagedResources bool

If true, managed resources should be disposed of in addition to unmanaged resources.