DirectX11TextureFactory

Description

sealed class Tinman.AddOns.DirectX11.DirectX11TextureFactory

Derived from

TextureFactory abstract

Full source code is included in the Tinman 3D SDK download.

Implementation of the ITextureFactory interface that uses a Direct3D 11 ID3D11DeviceContext COM object.

For custom texture formats, the TextureFormat.FormatIdentifier method must return the DXGI_FORMAT_* in Vec4I.X, the other components are not used.

Public / Constructors

Direct​X11​Texture​Factory


public constructor DirectX11TextureFactory → (3)

context in : IntPtr

The ID3D11DeviceContext* COM pointer.

availableVideoMemory in : int64

[>=0]
See ITextureFactory.AvailableVideoMemory.

maximumSize opt : int64 = 0

[>=0]
See ITextureFactory.MaximumSize.

Creates a new instance of DirectX11TextureFactory.