Table of Contents

Class Texture2DBase

Namespace
SharpDX.Toolkit.Graphics
Assembly
HelixToolkit.SharpDX.dll

Abstract class front end to SharpDX.Direct3D11.Texture2D.

public abstract class Texture2DBase : Texture, IComponent, INotifyPropertyChanged, IDisposable, IComparable<Texture>
Inheritance
Texture2DBase
Implements
Derived
Inherited Members

Constructors

Texture2DBase(Device, Texture2D)

Specialised constructor for use only by derived classes.

protected Texture2DBase(Device device, Texture2D texture)

Parameters

device Device

The SharpDX.Direct3D11.Device.

texture Texture2D

The texture.

Texture2DBase(Device, Texture2DDescription)

Initializes a new instance of the Texture2DBase class.

protected Texture2DBase(Device device, Texture2DDescription description2D)

Parameters

device Device

The SharpDX.Direct3D11.Device.

description2D Texture2DDescription

The description.

Texture2DBase(Device, Texture2DDescription, DataBox[])

Initializes a new instance of the Texture2DBase class.

protected Texture2DBase(Device device, Texture2DDescription description2D, DataBox[] dataBoxes)

Parameters

device Device

The SharpDX.Direct3D11.Device.

description2D Texture2DDescription

The description.

dataBoxes DataBox[]

A variable-length parameters list containing data rectangles.

Fields

Resource

protected readonly Texture2D Resource

Field Value

Texture2D

Methods

Dispose(bool)

protected override void Dispose(bool disposeManagedResources)

Parameters

disposeManagedResources bool

GetDefaultViewFormat()

protected virtual Format GetDefaultViewFormat()

Returns

Format

NewDescription(int, int, PixelFormat, TextureFlags, int, int, ResourceUsage)

protected static Texture2DDescription NewDescription(int width, int height, PixelFormat format, TextureFlags textureFlags, int mipCount, int arraySize, ResourceUsage usage)

Parameters

width int
height int
format PixelFormat
textureFlags TextureFlags
mipCount int
arraySize int
usage ResourceUsage

Returns

Texture2DDescription

Operators

implicit operator Surface?(Texture2DBase)

SharpDX.DXGI.Surface casting operator.

public static implicit operator Surface?(Texture2DBase from)

Parameters

from Texture2DBase

From the Texture1D.

Returns

Surface