engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IRuntimeAssetCacheBuilder类 参考abstract

Interface for runtime asset cache cache builders. 更多...

#include <RuntimeAssetCachePluginInterface.h>

被 URuntimeAssetCacheBuilder_ObjectBase 继承.

Public 成员函数

virtual FVoidPtrParam Build ()=0
 Does the work of creating serialized cache entry. 更多...
 
virtual bool CachedAssetVersionIsUpToDate (int32 CachedAssetVersion)
 Check if the cached asset is up to date. 更多...
 
virtual FString GetAssetUniqueName () const =0
 Returns the name uniquely describing the asset. 更多...
 
virtual int32 GetAssetVersion ()=0
 Gets asset version to rebuild cache if cached asset is too old. 更多...
 
virtual const TCHAR * GetBucketConfigName () const =0
 Get the builder type name. 更多...
 
virtual const TCHAR * GetBuilderName () const =0
 Get the name of cache builder, this is used as part of the cache key. 更多...
 
virtual bool IsBuildThreadSafe () const =0
 Gets whether Build function is threadsafe 更多...
 
virtual void SerializeData (FArchive &Ar, FVoidPtrParam InData)
 Serializes data into archive 更多...
 
virtual bool ShouldBuildAsynchronously () const
 Gets whether Build function must be called asynchronously. 更多...
 

详细描述

Interface for runtime asset cache cache builders.

This API will be called concurrently.

成员函数说明

◆ Build()

virtual FVoidPtrParam IRuntimeAssetCacheBuilder::Build ( )
pure virtual

Does the work of creating serialized cache entry.

返回
Pointer to contiguous memory block with serialized cache entry on success, nullptr otherwise.

◆ CachedAssetVersionIsUpToDate()

virtual bool IRuntimeAssetCacheBuilder::CachedAssetVersionIsUpToDate ( int32  CachedAssetVersion)
inlinevirtual

Check if the cached asset is up to date.

If the current AssetVersion is greater than the cached AssetVersion, the cached asset will be re-built.

返回
Whether the cached asset is good (return true) or needs to be rebuilt (return false).

◆ GetAssetUniqueName()

virtual FString IRuntimeAssetCacheBuilder::GetAssetUniqueName ( ) const
pure virtual

Returns the name uniquely describing the asset.

返回
Asset unique name.

◆ GetAssetVersion()

virtual int32 IRuntimeAssetCacheBuilder::GetAssetVersion ( )
pure virtual

Gets asset version to rebuild cache if cached asset is too old.

返回
Asset version.

◆ GetBucketConfigName()

virtual const TCHAR * IRuntimeAssetCacheBuilder::GetBucketConfigName ( ) const
pure virtual

Get the builder type name.

This is used to categorize cached data to buckets.

返回
Type name of builder.

◆ GetBuilderName()

virtual const TCHAR * IRuntimeAssetCacheBuilder::GetBuilderName ( ) const
pure virtual

Get the name of cache builder, this is used as part of the cache key.

返回
Name of cache builder

◆ IsBuildThreadSafe()

virtual bool IRuntimeAssetCacheBuilder::IsBuildThreadSafe ( ) const
pure virtual

Gets whether Build function is threadsafe

返回
true if Build is threadsafe, false otherwise.

◆ SerializeData()

virtual void IRuntimeAssetCacheBuilder::SerializeData ( FArchive &  Ar,
FVoidPtrParam  InData 
)
inlinevirtual

Serializes data into archive

参数
ArArchive to serialize to.
InDataData to serialize.

◆ ShouldBuildAsynchronously()

virtual bool IRuntimeAssetCacheBuilder::ShouldBuildAsynchronously ( ) const
inlinevirtual

Gets whether Build function must be called asynchronously.

返回
true if Build should be called asynchronously, false otherwise.

该类的文档由以下文件生成: