Skip to content

Class ImageImporter

Namespace: Apogee.Content.Import
Assembly: Apogee.Content.dll

PNG and JPEG images into KTX 2 files with their mip chains, GPU-compressed () unless the settings say otherwise.

public sealed class ImageImporter : IAssetImporter

Inheritance

object ← ImageImporter

Implements

IAssetImporter

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

Extensions

The extensions it takes, with the dot, in lower case.

public IReadOnlyList<string> Extensions { get; }

Property Value

IReadOnlyList<string>

Fingerprint

Everything that changes what it writes and is not in the asset or its .import.xml: its own version, the version and the options of the tools it calls.

public string Fingerprint { get; }

Property Value

string

Name

Names the importer in the key.

public string Name { get; }

Property Value

string

Methods

Import(ImportContext)

The artifact of the asset, or null when the asset is not one (a shader module that only other shaders import): it then has no entry in the index.

public ImportResult? Import(ImportContext context)

Parameters

context ImportContext

Returns

ImportResult?

Exceptions

ContentException

The asset cannot be imported.