struct

TextureImportSettings

Import settings for textures, as authored in the .mdfmeta sidecar and in the texture editor's Import Settings rail.

Module
AssetSystem
Header
#include "AssetSystem/Assets/TextureAsset.h"
Namespace
Mowo

Properties

TypeNameDescription
static constexpr int32_tkGroupColorUE's Texture Group, in the spelling ToBuildOptions already reads. Default 0.
static constexpr int32_tkGroupNormalDefault 1.
static constexpr int32_tkGroupLinearDefault 2.
static constexpr int32_tkGroupHdrDefault 3.
static constexpr int32_tkMaxSizeDefaultmaxSize carries three states, not two. Default is the UNAUTHORED one: the model-import path then applies r.MaxImportTextureSize and every other path leaves the source resolution alone — exactly what both did before this key could be authored per asset, so every sidecar already on disk keeps its behaviour. Unlimited is the only way to lift the model cap for one texture, and it can only arrive from the editor. Default 0.
static constexpr int32_tkMaxSizeUnlimitedDefault -1.
boolgenerateMipmapsDefault true.
boolsRGBDefault true.
int32_tcompressionDefault -1.
int32_tmipFilterDefault 0.
int32_tgroupDefault 0.
int32_tmaxSizeDefault kMaxSizeDefault.
floatalphaCoverageCutoffAlpha-test threshold whose pass fraction every mip keeps; 0 = off (MtexBuildOptions::alphaCoverageCutoff). The editor offers the presets; 0.5 is the material default cutoff. Default 0.0f.
floatrdoLambdaRate-distortion lambda for BC7 (MtexBuildOptions::bc7RdoLambda); 0 = off. Higher packs smaller under zstd and costs quality. Default 0.0f.
boolvirtualTextureAlso cook a streamed virtual-texture tile file (<source>.mvtiles: every page of every mip, bordered and BC7-compressed) that the virtual-texture disk provider pages in (r.VirtualTexture.Source). The .mtex still cooks — the tile file is an extra, not a replacement. Default false.
static constexpr int32_tkFilterDefaultHow materials sample this texture (TextureFilterMode order). Default is the unauthored state: trilinear + r.MaxAnisotropy, exactly what every texture had before the filter could be chosen. Distinct from mipFilter above, which is the cook's downsample kernel. Default 0.
static constexpr int32_tkFilterNearestDefault 1.
static constexpr int32_tkFilterBilinearDefault 2.
static constexpr int32_tkFilterTrilinearDefault 3.
static constexpr int32_tkFilterAnisotropicDefault 4.
int32_tfilterDefault kFilterDefault.
boolfilterMipBlendNearest/Bilinear only: blend between two mip levels instead of choosing one. Off keeps pixel art crisp at every distance. Default false.
int32_tanisotropyAnisotropic only: 2, 4, 8 or 16 (0 = 16). r.MaxAnisotropy still caps it. Default 0.
int32_tnearestUpscaleInteger nearest-neighbour upscale the cook applies before the mip chain (MtexBuildOptions::nearestUpscale); 1 = off. Keeps low-resolution pixel art crisp under anisotropy and the first mips. Default 1.
static constexpr int32_tkMaxNearestUpscaleDefault 16.
static constexpr int32_tkAlphaCoveragePresetCountDefault 5.
static constexpr float kAlphaCoveragePresets[kAlphaCoveragePresetCount] =
static constexpr int32_tkRdoPresetCountDefault 5.
static constexpr float kRdoPresets[kRdoPresetCount] =

Public functions

ReturnsNameDescription
TextureSamplingSampling
int32_tAlphaCoveragePresetIndex
int32_tRdoPresetIndex
boolEffectiveSrgbThe colour space the sampler must actually use.

Function details

Sampling

C++
TextureSampling Sampling() const

AlphaCoveragePresetIndex

C++
static int32_t AlphaCoveragePresetIndex(float cutoff)

RdoPresetIndex

C++
static int32_t RdoPresetIndex(float lambda)

EffectiveSrgb

C++
bool EffectiveSrgb() const

The colour space the sampler must actually use. A normal map, a mask and an HDR source are linear whatever the sRGB box says, and a normal map decoded through the sRGB transfer function is the one remaining way to get wrong normals now that BC5 reconstructs Z.

Generated from AssetSystem/Assets/TextureAsset.h via assetsystem.json · Nov 4, 2026Version 1.0.0