![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ResourceSize.h>
Struct used to count up the amount of memory used by a resource. This is typically used for assets via UObject::GetResourceSizeEx(...).
|
explicit |
Default constructor.
|
explicit |
Construct using a given mode.
| FResourceSizeEx::FResourceSizeEx | ( | const EResourceSizeMode::Type | InResourceSizeMode, |
| const SIZE_T | InDedicatedSystemMemoryBytes, | ||
| const SIZE_T | InDedicatedVideoMemoryBytes | ||
| ) |
Construct from known sizes.
| FResourceSizeEx::FResourceSizeEx | ( | const EResourceSizeMode::Type | InResourceSizeMode, |
| const SIZE_T | InUnknownMemoryBytes | ||
| ) |
Construct from legacy unknown size. Deliberately explicit to avoid accidental use.
| FResourceSizeEx & FResourceSizeEx::AddDedicatedSystemMemoryBytes | ( | const FName & | Tag, |
| const SIZE_T | InMemoryBytes | ||
| ) |
| FResourceSizeEx & FResourceSizeEx::AddDedicatedSystemMemoryBytes | ( | const SIZE_T | InMemoryBytes | ) |
Add the given number of bytes to the dedicated system memory count.
| FResourceSizeEx & FResourceSizeEx::AddDedicatedVideoMemoryBytes | ( | const FName & | Tag, |
| const SIZE_T | InMemoryBytes | ||
| ) |
| FResourceSizeEx & FResourceSizeEx::AddDedicatedVideoMemoryBytes | ( | const SIZE_T | InMemoryBytes | ) |
Add the given number of bytes to the dedicated video memory count.
| FResourceSizeEx & FResourceSizeEx::AddUnknownMemoryBytes | ( | const FName & | Tag, |
| const SIZE_T | InMemoryBytes | ||
| ) |
| FResourceSizeEx & FResourceSizeEx::AddUnknownMemoryBytes | ( | const SIZE_T | InMemoryBytes | ) |
Add the given number of bytes to the unknown memory count.
| SIZE_T FResourceSizeEx::GetDedicatedSystemMemoryBytes | ( | ) | const |
Get the number of bytes allocated from dedicated system memory.
| SIZE_T FResourceSizeEx::GetDedicatedVideoMemoryBytes | ( | ) | const |
Get the number of bytes allocated from dedicated video memory.
| EResourceSizeMode::Type FResourceSizeEx::GetResourceSizeMode | ( | ) | const |
Get the type of resource size held in this struct.
| SIZE_T FResourceSizeEx::GetTotalMemoryBytes | ( | ) | const |
Get the total number of bytes allocated from any memory.
| SIZE_T FResourceSizeEx::GetUnknownMemoryBytes | ( | ) | const |
Get the number of bytes allocated from unknown memory.
| void FResourceSizeEx::LogSummary | ( | FOutputDevice & | Ar | ) | const |
| FResourceSizeEx & FResourceSizeEx::operator+= | ( | const FResourceSizeEx & | InRHS | ) |
Add another FResourceSizeEx to this one.