Skip to content

GraphicsAPI reference

Class Texture

Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device

A texture that pipelines sample.

C#
public abstract class Texture : GraphicsResource, IDisposable

Inheritance

object ← GraphicsResource ← Texture

Implements

IDisposable

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.

C#
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).

C#
public TextureDescription Description { get; }

Property Value

TextureDescription

Format

Texel format.

C#
public TextureFormat Format { get; }

Property Value

TextureFormat

Height

Height in texels.

C#
public int Height { get; }

Property Value

int

OwnerTarget

The render target this texture is the colour of, or null for an ordinary texture.

C#
public virtual RenderTarget? OwnerTarget { get; }

Property Value

RenderTarget?

Width

Width in texels.

C#
public int Width { get; }

Property Value

int