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
| Type | Name | Description |
|---|---|---|
static constexpr int32_t | kGroupColor | UE's Texture Group, in the spelling ToBuildOptions already reads. Default 0. |
static constexpr int32_t | kGroupNormal | Default 1. |
static constexpr int32_t | kGroupLinear | Default 2. |
static constexpr int32_t | kGroupHdr | Default 3. |
static constexpr int32_t | kMaxSizeDefault | maxSize 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_t | kMaxSizeUnlimited | Default -1. |
bool | generateMipmaps | Default true. |
bool | sRGB | Default true. |
int32_t | compression | Default -1. |
int32_t | mipFilter | Default 0. |
int32_t | group | Default 0. |
int32_t | maxSize | Default kMaxSizeDefault. |
float | alphaCoverageCutoff | Alpha-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. |
float | rdoLambda | Rate-distortion lambda for BC7 (MtexBuildOptions::bc7RdoLambda); 0 = off. Higher packs smaller under zstd and costs quality. Default 0.0f. |
bool | virtualTexture | Also 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_t | kFilterDefault | How 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_t | kFilterNearest | Default 1. |
static constexpr int32_t | kFilterBilinear | Default 2. |
static constexpr int32_t | kFilterTrilinear | Default 3. |
static constexpr int32_t | kFilterAnisotropic | Default 4. |
int32_t | filter | Default kFilterDefault. |
bool | filterMipBlend | Nearest/Bilinear only: blend between two mip levels instead of choosing one. Off keeps pixel art crisp at every distance. Default false. |
int32_t | anisotropy | Anisotropic only: 2, 4, 8 or 16 (0 = 16). r.MaxAnisotropy still caps it. Default 0. |
int32_t | nearestUpscale | Integer 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_t | kMaxNearestUpscale | Default 16. |
static constexpr int32_t | kAlphaCoveragePresetCount | Default 5. |
static constexpr float kAlphaCoveragePresets[kAlphaCoveragePresetCount] = | ||
static constexpr int32_t | kRdoPresetCount | Default 5. |
static constexpr float kRdoPresets[kRdoPresetCount] = |
Public functions
| Returns | Name | Description |
|---|---|---|
TextureSampling | Sampling | |
int32_t | AlphaCoveragePresetIndex | |
int32_t | RdoPresetIndex | |
bool | EffectiveSrgb | The colour space the sampler must actually use. |
Function details
Sampling
C++
TextureSampling Sampling() constAlphaCoveragePresetIndex
C++
static int32_t AlphaCoveragePresetIndex(float cutoff)RdoPresetIndex
C++
static int32_t RdoPresetIndex(float lambda)EffectiveSrgb
C++
bool EffectiveSrgb() constThe 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