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.
| void FTexturePlatformData::SerializeCooked | ( | FArchive & | Ar, |
| class UTexture * | Owner, | ||
| bool | bStreamable | ||
| ) |
Serialization for cooked builds.
| Ar | Archive to serialize with |
| Owner | Owner texture |
| bStreamable | Store some mips inline, only used during cooking |
| 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. |
| TIndirectArray<struct FTexture2DMipMap> FTexturePlatformData::Mips |
Mip data or VT data.
one or the other.
| uint32 FTexturePlatformData::PackedData |
Packed bits [b31: CubeMap], [b30: HasOptData], [b29-0: NumSlices].
See bit masks below.