Struct used to count up the amount of memory used by a resource. 更多...
#include <ResourceSize.h>
Public 成员函数 | |
| FResourceSizeEx & | AddDedicatedSystemMemoryBytes (const SIZE_T InMemoryBytes) |
| Add the given number of bytes to the dedicated system memory count. 更多... | |
| FResourceSizeEx & | AddDedicatedVideoMemoryBytes (const SIZE_T InMemoryBytes) |
| Add the given number of bytes to the dedicated video memory count. 更多... | |
| FResourceSizeEx & | AddSharedSystemMemoryBytes (const SIZE_T InMemoryBytes) |
| Add the given number of bytes to the shared system memory count. 更多... | |
| FResourceSizeEx & | AddSharedVideoMemoryBytes (const SIZE_T InMemoryBytes) |
| Add the given number of bytes to the shared video memory count. 更多... | |
| FResourceSizeEx & | AddUnknownMemoryBytes (const SIZE_T InMemoryBytes) |
| Add the given number of bytes to the unknown memory count. 更多... | |
| FResourceSizeEx () | |
| Default constructor. | |
| FResourceSizeEx (const EResourceSizeMode::Type InResourceSizeMode) | |
| Construct using a given mode. | |
| FResourceSizeEx (const EResourceSizeMode::Type InResourceSizeMode, const SIZE_T InDedicatedSystemMemoryBytes, const SIZE_T InSharedSystemMemoryBytes, const SIZE_T InDedicatedVideoMemoryBytes, const SIZE_T InSharedVideoMemoryBytes) | |
| Construct from known sizes. | |
| FResourceSizeEx (const EResourceSizeMode::Type InResourceSizeMode, const SIZE_T InUnknownMemoryBytes) | |
| Construct from legacy unknown size. 更多... | |
| SIZE_T | GetDedicatedSystemMemoryBytes () const |
| Get the number of bytes allocated from dedicated system memory. 更多... | |
| SIZE_T | GetDedicatedVideoMemoryBytes () const |
| Get the number of bytes allocated from dedicated video memory. 更多... | |
| EResourceSizeMode::Type | GetResourceSizeMode () const |
| Get the type of resource size held in this struct. | |
| SIZE_T | GetSharedSystemMemoryBytes () const |
| Get the number of bytes allocated from shared system memory. 更多... | |
| SIZE_T | GetSharedVideoMemoryBytes () const |
| Get the number of bytes allocated from shared video memory. 更多... | |
| SIZE_T | GetTotalMemoryBytes () const |
| Get the total number of bytes allocated from any memory. | |
| SIZE_T | GetUnknownMemoryBytes () const |
| Get the number of bytes allocated from unknown memory. 更多... | |
| FResourceSizeEx & | operator+= (const FResourceSizeEx &InRHS) |
| Add another FResourceSizeEx to this one. | |
友元 | |
| FResourceSizeEx | operator+ (FResourceSizeEx InLHS, const FResourceSizeEx &InRHS) |
| Add two FResourceSizeEx instances together and return a copy. | |
Struct used to count up the amount of memory used by a resource.
This is typically used for assets via UObject::GetResourceSizeEx(...).
|
inline |
Construct from legacy unknown size.
Deliberately explicit to avoid accidental use.
|
inline |
Add the given number of bytes to the dedicated system memory count.
|
inline |
Add the given number of bytes to the dedicated video memory count.
|
inline |
Add the given number of bytes to the shared system memory count.
|
inline |
Add the given number of bytes to the shared video memory count.
|
inline |
Add the given number of bytes to the unknown memory count.
|
inline |
Get the number of bytes allocated from dedicated system memory.
|
inline |
Get the number of bytes allocated from dedicated video memory.
|
inline |
Get the number of bytes allocated from shared system memory.
|
inline |
Get the number of bytes allocated from shared video memory.
|
inline |
Get the number of bytes allocated from unknown memory.