TextureFactory
Description
- Derived from
- Extended by
-
DirectX11TextureFactory sealed
DirectX12TextureFactory sealed
DirectX9TextureFactory sealed
OpenGLESTextureFactory sealed
OpenGLTextureFactory sealed
Abstract base class for ITextureFactory implementations.
These protected fields must be initialized by subclasses in the constructor:
The default implementation of ITextureFactory.ValidateTextureFormat uses TextureFormat.Generalize
Protected / Methods
DoCreateTexture2D
Creates a new instance of ITexture2D.
- RenderException
-
If a graphics subsystem error has occurred.
Protected / Attributes
availableVideoMemory
The available video memory, in bytes.
This field must be initialized by subclasses during construction.
maximumSize
Returns the maximum size of a single texture resource in bytes or 0
if none.
This field must be initialized by subclasses during construction.
textureSizeMaximum
The maximum texture size (always a power of two).
This field must be initialized by subclasses during construction.
textureSizeMustBePowerOfTwo
The texture size must be a power of two, but width and height can still be different.
This field must be initialized by subclasses during construction.