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
| Alias | Description |
|---|---|
using FDecodeFn = std::function<bool(const std::string& path, FMiriGraphicsDecodedImage& out)> |
Constructors
| Signature | Name | Description |
|---|---|---|
explicit FMiriGraphicsAsyncImageLoader(FDecodeFn decoder) | FMiriGraphicsAsyncImageLoader | |
~FMiriGraphicsAsyncImageLoader() | ~FMiriGraphicsAsyncImageLoader | |
FMiriGraphicsAsyncImageLoader(const FMiriGraphicsAsyncImageLoader&) = delete | FMiriGraphicsAsyncImageLoader |
Public functions
| Returns | Name | Description |
|---|---|---|
FMiriGraphicsAsyncImageLoader& | operator= | |
EMiriGraphicsImageState | Request | |
EMiriGraphicsImageState | GetState | |
bool | Take | |
void | Invalidate | Forgets a finished or failed entry so a changed file decodes again. |
size_t | PendingCount | |
void | WaitIdle |
Function details
FMiriGraphicsAsyncImageLoader
C++
explicit FMiriGraphicsAsyncImageLoader(FDecodeFn decoder)~FMiriGraphicsAsyncImageLoader
C++
~FMiriGraphicsAsyncImageLoader()FMiriGraphicsAsyncImageLoader
C++
FMiriGraphicsAsyncImageLoader(const FMiriGraphicsAsyncImageLoader&) = deleteoperator=
C++
FMiriGraphicsAsyncImageLoader& operator=(const FMiriGraphicsAsyncImageLoader&) = deleteRequest
C++
EMiriGraphicsImageState Request(const std::string& path)GetState
C++
EMiriGraphicsImageState GetState(const std::string& path) constTake
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() constWaitIdle
C++
void WaitIdle()Generated from MiriGraphics/FMiriGraphicsAsyncImageLoader.h via mirigraphics.json · Dec 5, 2026Version 1.1.0