Class TextureMetadata

Namespace
Elegy.Common.Assets
Assembly
Elegy.Common.dll

Represents info about the texture, without its actual data.

public class TextureMetadata
Inheritance
TextureMetadata
Inherited Members

Properties

BytesPerPixel

Number of bytes per pixel.

public uint BytesPerPixel { get; init; }

Property Value

uint

Components

Components per pixel (RGB, grayscale, RGBA...)

public uint Components { get; init; }

Property Value

uint

Compression

Type of texture compression, if any.

public TextureCompression Compression { get; init; }

Property Value

TextureCompression

CpuAccess

Whether it can be read from/written to by the CPU.

public bool CpuAccess { get; init; }

Property Value

bool

Depth

Depth in pixels.

public uint Depth { get; init; }

Property Value

uint

Float

Is this a floating-point texture?

public bool Float { get; init; }

Property Value

bool

Height

Height in pixels.

public uint Height { get; init; }

Property Value

uint

Is1D

Is this a 1D texture?

public bool Is1D { get; }

Property Value

bool

Is2D

Is this a 2D texture?

public bool Is2D { get; }

Property Value

bool

Is3D

Is this a 3D texture?

public bool Is3D { get; }

Property Value

bool

NoSampling

Whether this doesn't need sampling.

public bool NoSampling { get; init; }

Property Value

bool

ShaderWrite

Whether it can be written to by the shader.

public bool ShaderWrite { get; init; }

Property Value

bool

Srgb

Is this an SRGB texture?

public bool Srgb { get; init; }

Property Value

bool

Width

Width in pixels.

public uint Width { get; init; }

Property Value

uint