engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TQuantizedLightSampleBulkData< QuantizedLightSampleType > 模板结构体 参考

Bulk data array of FQuantizedLightSamples 更多...

#include <LightMap.h>

+ 类 TQuantizedLightSampleBulkData< QuantizedLightSampleType > 继承关系图:

Public 成员函数

virtual int32 GetElementSize () const
 Returns size in bytes of single element. 更多...
 
virtual bool RequiresSingleElementSerialization (FArchive &Ar)
 Returns whether single element serialization is required given an archive. 更多...
 
virtual void SerializeElement (FArchive &Ar, void *Data, int64 ElementIndex)
 Serializes an element at a time allowing and dealing with endian conversion and backward compatiblity. 更多...
 
- Public 成员函数 继承自 FUntypedBulkData
bool CanLoadFromDisk () const
 Returns true if the data can be loaded from disk.
 
void ClearBulkDataFlags (uint32 BulkDataFlagsToClear)
 Clears the passed in bulk data flags. 更多...
 
IBulkDataIORequest * CreateStreamingRequest (EAsyncIOPriorityAndFlags Priority, FBulkDataIORequestCallBack *CompleteCallback, uint8 *UserSuppliedMemory) const
 Create an async read request for the bulk data. 更多...
 
IBulkDataIORequest * CreateStreamingRequest (int64 OffsetInBulkData, int64 BytesToRead, EAsyncIOPriorityAndFlags Priority, FBulkDataIORequestCallBack *CompleteCallback, uint8 *UserSuppliedMemory) const
 Create an async read request for the bulk data. 更多...
 
bool DoesExist () const
 Returns true if the data references a file that currently exists and can be referenced by the file system.
 
void ForceBulkDataResident ()
 Forces the bulk data to be resident in memory and detaches the archive.
 
 FUntypedBulkData ()
 Constructor, initializing all member variables.
 
 FUntypedBulkData (const FUntypedBulkData &Other)
 Copy constructor. 更多...
 
uint32 GetBulkDataAlignment () const
 Gets the current bulk data alignment. 更多...
 
uint32 GetBulkDataFlags () const
 Gets the current bulk data flags. 更多...
 
int64 GetBulkDataOffsetInFile () const
 Returns the offset into the file the bulk data is located at. 更多...
 
int64 GetBulkDataSize () const
 Returns the size of the bulk data in bytes. 更多...
 
int64 GetBulkDataSizeOnDisk () const
 Returns the size of the bulk data on disk. 更多...
 
void GetCopy (void **Dest, bool bDiscardInternalCopy=true)
 Retrieves a copy of the bulk data. 更多...
 
template<typename ElementType >
FBulkDataBuffer< ElementType > GetCopyAsBuffer (int64 RequestedElementCount, bool bDiscardInternalCopy)
 Returns a copy encapsulated by a FBulkDataBuffer. 更多...
 
FName GetDecompressionFormat () const
 Returns flags usable to decompress the bulk data 更多...
 
int64 GetElementCount () const
 Returns the number of elements in this bulk data array. 更多...
 
virtual int32 GetElementSize () const =0
 Returns size in bytes of single element. 更多...
 
const FString & GetFilename () const
 Returns the filename this bulkdata resides in 更多...
 
FIoFilenameHash GetIoFilenameHash () const
 Returns the io filename hash associated with this bulk data. 更多...
 
bool IsAsyncLoadingComplete () const
 Returns whether the bulk data asynchronous load has completed. 更多...
 
bool IsAvailableForUse () const
 Returns whether this bulk data is used 更多...
 
bool IsBulkDataLoaded () const
 Returns whether the bulk data is currently loaded and resident in memory. 更多...
 
bool IsInlined () const
 Returns whether this bulk data is currently stored inline or not 更多...
 
bool IsInSeparateFile () const
 Returns whether this bulk data is currently stored in it's own file or not 更多...
 
bool IsLocked () const
 Checks if this bulk is locked
 
bool IsOptional () const
 Returns whether this bulk data represents optional data or not 更多...
 
bool IsStoredCompressedOnDisk () const
 Returns whether the bulk data is stored compressed on disk. 更多...
 
bool IsUsingIODispatcher () const
 Returns whether this bulk data is accessed via the IoDispatcher or not. 更多...
 
bool LoadBulkDataWithFileReader ()
 Load the bulk data using a file reader. 更多...
 
void * Lock (uint32 LockFlags)
 Locks the bulk data and returns a pointer to it. 更多...
 
const void * LockReadOnly () const
 Locks the bulk data and returns a read-only pointer to it. 更多...
 
IAsyncReadFileHandle * OpenAsyncReadHandle () const
 Opens a new IAsyncReadFileHandle that references the file that the BulkData object represents. 更多...
 
FUntypedBulkData & operator= (const FUntypedBulkData &Other)
 Copies the source array into this one after detaching from archive. 更多...
 
void * Realloc (int64 InElementCount)
 Change size of locked bulk data. 更多...
 
void RemoveBulkData ()
 Clears/ removes the bulk data and resets element count to 0.
 
void ResetBulkDataFlags (uint32 BulkDataFlagsToSet)
 Enable the given flags and disable all other flags. 更多...
 
void Serialize (FArchive &Ar, UObject *Owner, int32 Idx=INDEX_NONE, bool bAttemptFileMapping=false, EFileRegionType FileRegionType=EFileRegionType::None)
 Serialize function used to serialize this bulk data structure. 更多...
 
void SerializeBulkData (FArchive &Ar, void *Data)
 Serialize just the bulk data portion to/ from the passed in memory. 更多...
 
void SetBulkDataAlignment (uint32 BulkDataAlignmentToSet)
 Sets the passed in bulk data alignment. 更多...
 
void SetBulkDataFlags (uint32 BulkDataFlagsToSet)
 Enables the given flags without affecting any previously set flags. 更多...
 
bool StartAsyncLoading ()
 Initiates a new asynchronous operation to load the dulkdata from disk assuming that it is not already loaded. 更多...
 
void StoreCompressedOnDisk (ECompressionFlags CompressionFlags)
 Sets whether we should store the data compressed on disk. 更多...
 
bool UnloadBulkData ()
 Deallocates bulk data without detaching the archive, so that further bulk data accesses require a reload. 更多...
 
void Unlock () const
 Unlocks bulk data after which point the pointer returned by Lock no longer is valid.
 
virtual ~FUntypedBulkData ()
 Virtual destructor, free'ing allocated memory.
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 FUntypedBulkData
static void DumpBulkDataUsage (FOutputDevice &Log)
 Dumps detailed information of bulk data usage. 更多...
 
- Protected 成员函数 继承自 FUntypedBulkData
virtual bool RequiresSingleElementSerialization (FArchive &Ar)
 Returns whether single element serialization is required given an archive. 更多...
 
virtual void SerializeElement (FArchive &Ar, void *Data, int64 ElementIndex)=0
 Serializes a single element at a time, allowing backward compatible serialization and endian swapping to be performed. 更多...
 
virtual void SerializeElements (FArchive &Ar, void *Data)
 Serializes all elements, a single element at a time, allowing backward compatible serialization and endian swapping to be performed. 更多...
 
- Protected 属性 继承自 FUntypedBulkData
FString Filename
 name of the package file containing the bulkdata
 
TWeakObjectPtr< UPackage > Package
 weak pointer to the linker this bulk data originally belonged to.
 

详细描述

template<class QuantizedLightSampleType>
struct TQuantizedLightSampleBulkData< QuantizedLightSampleType >

Bulk data array of FQuantizedLightSamples

成员函数说明

◆ GetElementSize()

template<class QuantizedLightSampleType >
virtual int32 TQuantizedLightSampleBulkData< QuantizedLightSampleType >::GetElementSize ( ) const
virtual

Returns size in bytes of single element.

返回
Size in bytes of single element

实现了 FUntypedBulkData.

◆ RequiresSingleElementSerialization()

template<class QuantizedLightSampleType >
virtual bool TQuantizedLightSampleBulkData< QuantizedLightSampleType >::RequiresSingleElementSerialization ( FArchive &  Ar)
virtual

Returns whether single element serialization is required given an archive.

This e.g. can be the case if the serialization for an element changes and the single element serialization code handles backward compatibility.

重载 FUntypedBulkData .

◆ SerializeElement()

template<class QuantizedLightSampleType >
virtual void TQuantizedLightSampleBulkData< QuantizedLightSampleType >::SerializeElement ( FArchive &  Ar,
void *  Data,
int64  ElementIndex 
)
virtual

Serializes an element at a time allowing and dealing with endian conversion and backward compatiblity.

参数
ArArchive to serialize with
DataBase pointer to data
ElementIndexElement index to serialize

实现了 FUntypedBulkData.


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