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

Platform-specific data used by the texture resource at runtime. 更多...

#include <Texture.h>

Public 成员函数

bool CanBeLoaded () const
 Return true if at least one mip can be loaded either from DDC or disk.
 
ENGINE_API FTexturePlatformData ()
 Default constructor.
 
int32 GetNumNonOptionalMips () const
 Return the number of mips that streamable but not optional.
 
int32 GetNumNonStreamingMips () const
 Return the number of mips that are not streamable.
 
bool IsReadyForAsyncPostLoad () const
 Return whether TryLoadMips() would stall because async loaded mips are not yet available.
 
void Serialize (FArchive &Ar, class UTexture *Owner)
 Serialization.
 
void SerializeCooked (FArchive &Ar, class UTexture *Owner, bool bStreamable)
 Serialization for cooked builds. 更多...
 
bool TryLoadMips (int32 FirstMipToLoad, void **OutMipData, UTexture *Texture)
 Try to load mips from the derived data cache. 更多...
 
ENGINE_API ~FTexturePlatformData ()
 Destructor.
 

Public 属性

TIndirectArray< struct FTexture2DMipMap > Mips
 Mip data or VT data. 更多...
 
FOptTexturePlatformData OptData
 Additional data required by some platforms.
 
uint32 PackedData
 Packed bits [b31: CubeMap], [b30: HasOptData], [b29-0: NumSlices]. 更多...
 
EPixelFormat PixelFormat
 Format in which mip data is stored.
 
int32 SizeX
 Width of the texture.
 
int32 SizeY
 Height of the texture.
 

详细描述

Platform-specific data used by the texture resource at runtime.

成员函数说明

◆ SerializeCooked()

void FTexturePlatformData::SerializeCooked ( FArchive &  Ar,
class UTexture *  Owner,
bool  bStreamable 
)

Serialization for cooked builds.

参数
ArArchive to serialize with
OwnerOwner texture
bStreamableStore some mips inline, only used during cooking

◆ TryLoadMips()

bool FTexturePlatformData::TryLoadMips ( int32  FirstMipToLoad,
void **  OutMipData,
UTexture *  Texture 
)

Try to load mips from the derived data cache.

参数
FirstMipToLoad- The first mip index to load.
OutMipData- Must point to an array of pointers with at least Texture.Mips.Num() - FirstMipToLoad + 1 entries. Upon return those pointers will contain mip data.
Texture- The texture to load mips for.
返回
true if all requested mips have been loaded.

类成员变量说明

◆ Mips

TIndirectArray<struct FTexture2DMipMap> FTexturePlatformData::Mips

Mip data or VT data.

one or the other.

◆ PackedData

uint32 FTexturePlatformData::PackedData

Packed bits [b31: CubeMap], [b30: HasOptData], [b29-0: NumSlices].

See bit masks below.


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