Interface ITextureUnit

ITextureUnit interface

ITextureUnit represents a texture in the memory that shared between GPU and CPU and can be sampled by the shader, where the Texture only represents a reference to an external file. More details can be found https://en.wikipedia.org/wiki/Texture_mapping_unit

public interface ITextureUnit : IDisposable

Properties

NameDescription
Depth { get; }Gets the height of this texture, for none-3D texture it’s always 1.
Height { get; }Gets the height of this texture.
Magnification { get; set; }Gets or sets the filter mode for magnification.
Minification { get; set; }Gets or sets the filter mode for minification.
Mipmap { get; set; }Gets or sets the filter mode for mipmap.
Scale { get; set; }Gets or sets the scale of the UV coordinate.
Scroll { get; set; }Gets or sets the scroll of the UV coordinate.
Type { get; }Gets the type of this texture unit.
UWrap { get; set; }Gets or sets the wrap mode for texture’s U coordinate.
VWrap { get; set; }Gets or sets the wrap mode for texture’s V coordinate.
Width { get; }Gets the width of this texture.
WWrap { get; set; }Gets or sets the wrap mode for texture’s W coordinate.

See Also