GraphicsAPI reference
Class Texture
Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device
A texture that pipelines sample.
public abstract class Texture : GraphicsResource, IDisposableInheritance
object ← GraphicsResource ← Texture
Implements
Inherited Members
GraphicsResource.Dispose(), GraphicsResource.Release(), GraphicsResource.Expire(), GraphicsResource.MarkLost(), GraphicsResource.Device, GraphicsResource.Name, GraphicsResource.Handle, GraphicsResource.IsDisposed, GraphicsResource.IsLost, GraphicsResource.OwnedBy, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Texture(IGraphicsDevice, in TextureDescription)
Creates the texture object.
protected Texture(IGraphicsDevice device, in TextureDescription description)Parameters
device IGraphicsDevice
description TextureDescription
Properties
Description
The creation description (for a render target’s colour texture: its size and format).
public TextureDescription Description { get; }Property Value
Format
Texel format.
public TextureFormat Format { get; }Property Value
Height
Height in texels.
public int Height { get; }Property Value
OwnerTarget
The render target this texture is the colour of, or null for an ordinary texture.
public virtual RenderTarget? OwnerTarget { get; }Property Value
Width
Width in texels.
public int Width { get; }