engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
FResourceSizeEx结构体 参考

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(...).

构造及析构函数说明

◆ FResourceSizeEx()

FResourceSizeEx::FResourceSizeEx ( const EResourceSizeMode::Type  InResourceSizeMode,
const SIZE_T  InUnknownMemoryBytes 
)
inline

Construct from legacy unknown size.

Deliberately explicit to avoid accidental use.

成员函数说明

◆ AddDedicatedSystemMemoryBytes()

FResourceSizeEx & FResourceSizeEx::AddDedicatedSystemMemoryBytes ( const SIZE_T  InMemoryBytes)
inline

Add the given number of bytes to the dedicated system memory count.

参见
DedicatedSystemMemoryBytes for a description of that memory type.

◆ AddDedicatedVideoMemoryBytes()

FResourceSizeEx & FResourceSizeEx::AddDedicatedVideoMemoryBytes ( const SIZE_T  InMemoryBytes)
inline

Add the given number of bytes to the dedicated video memory count.

参见
DedicatedVideoMemoryBytes for a description of that memory type.

◆ AddSharedSystemMemoryBytes()

FResourceSizeEx & FResourceSizeEx::AddSharedSystemMemoryBytes ( const SIZE_T  InMemoryBytes)
inline

Add the given number of bytes to the shared system memory count.

参见
SharedSystemMemoryBytes for a description of that memory type.

◆ AddSharedVideoMemoryBytes()

FResourceSizeEx & FResourceSizeEx::AddSharedVideoMemoryBytes ( const SIZE_T  InMemoryBytes)
inline

Add the given number of bytes to the shared video memory count.

参见
SharedVideoMemoryBytes for a description of that memory type.

◆ AddUnknownMemoryBytes()

FResourceSizeEx & FResourceSizeEx::AddUnknownMemoryBytes ( const SIZE_T  InMemoryBytes)
inline

Add the given number of bytes to the unknown memory count.

参见
UnknownMemoryBytes for a description of that memory type.

◆ GetDedicatedSystemMemoryBytes()

SIZE_T FResourceSizeEx::GetDedicatedSystemMemoryBytes ( ) const
inline

Get the number of bytes allocated from dedicated system memory.

参见
DedicatedSystemMemoryBytes for a description of that memory type.

◆ GetDedicatedVideoMemoryBytes()

SIZE_T FResourceSizeEx::GetDedicatedVideoMemoryBytes ( ) const
inline

Get the number of bytes allocated from dedicated video memory.

参见
DedicatedVideoMemoryBytes for a description of that memory type.

◆ GetSharedSystemMemoryBytes()

SIZE_T FResourceSizeEx::GetSharedSystemMemoryBytes ( ) const
inline

Get the number of bytes allocated from shared system memory.

参见
SharedSystemMemoryBytes for a description of that memory type.

◆ GetSharedVideoMemoryBytes()

SIZE_T FResourceSizeEx::GetSharedVideoMemoryBytes ( ) const
inline

Get the number of bytes allocated from shared video memory.

参见
SharedVideoMemoryBytes for a description of that memory type.

◆ GetUnknownMemoryBytes()

SIZE_T FResourceSizeEx::GetUnknownMemoryBytes ( ) const
inline

Get the number of bytes allocated from unknown memory.

参见
UnknownMemoryBytes for a description of that memory type.

该结构体的文档由以下文件生成: