class

FMiriGraphicsAsyncImageLoader

Decodes UI images off the main thread so swapping an icon in a list never hitches a frame. The decode function runs on the worker: it must not touch the GPU or any main-thread state. Upload stays with the caller, which takes finished pixels on the main thread.

Module
MiriGraphics
Header
#include "MiriGraphics/FMiriGraphicsAsyncImageLoader.h"
Namespace
Mowo

Type aliases

AliasDescription
using FDecodeFn = std::function<bool(const std::string& path, FMiriGraphicsDecodedImage& out)>

Constructors

SignatureNameDescription
explicit FMiriGraphicsAsyncImageLoader(FDecodeFn decoder)FMiriGraphicsAsyncImageLoader
~FMiriGraphicsAsyncImageLoader()~FMiriGraphicsAsyncImageLoader
FMiriGraphicsAsyncImageLoader(const FMiriGraphicsAsyncImageLoader&) = deleteFMiriGraphicsAsyncImageLoader

Public functions

ReturnsNameDescription
FMiriGraphicsAsyncImageLoader&operator=
EMiriGraphicsImageStateRequest
EMiriGraphicsImageStateGetState
boolTake
voidInvalidateForgets a finished or failed entry so a changed file decodes again.
size_tPendingCount
voidWaitIdle

Function details

FMiriGraphicsAsyncImageLoader

C++
explicit FMiriGraphicsAsyncImageLoader(FDecodeFn decoder)

~FMiriGraphicsAsyncImageLoader

C++
~FMiriGraphicsAsyncImageLoader()

FMiriGraphicsAsyncImageLoader

C++
FMiriGraphicsAsyncImageLoader(const FMiriGraphicsAsyncImageLoader&) = delete

operator=

C++
FMiriGraphicsAsyncImageLoader& operator=(const FMiriGraphicsAsyncImageLoader&) = delete

Request

C++
EMiriGraphicsImageState Request(const std::string& path)

GetState

C++
EMiriGraphicsImageState GetState(const std::string& path) const

Take

C++
bool Take(const std::string& path, FMiriGraphicsDecodedImage& out)

Invalidate

C++
void Invalidate(const std::string& path)

Forgets a finished or failed entry so a changed file decodes again.

PendingCount

C++
size_t PendingCount() const

WaitIdle

C++
void WaitIdle()
Generated from MiriGraphics/FMiriGraphicsAsyncImageLoader.h via mirigraphics.json · Dec 5, 2026Version 1.1.0