![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Texture.h>
Public Attributes | |
| int32 | SizeX |
| int32 | SizeY |
| uint32 | PackedData |
| EPixelFormat | PixelFormat |
| FOptTexturePlatformData | OptData |
| TIndirectArray< struct FTexture2DMipMap > | Mips |
| struct FVirtualTextureBuiltData * | VTData =nullptr |
| TRefCountPtr< const struct FSharedImage > | CPUCopy |
Platform-specific data used by the texture resource at runtime.
| FTexturePlatformData::FTexturePlatformData | ( | ) |
Default constructor.
| FTexturePlatformData::~FTexturePlatformData | ( | ) |
Destructor.
| bool FTexturePlatformData::CanBeLoaded | ( | ) | const |
Return true if at least one mip can be loaded either from DDC or disk.
|
inline |
|
inline |
|
inline |
| EPixelFormat FTexturePlatformData::GetLayerPixelFormat | ( | uint32 | LayerIndex | ) | const |
|
inline |
| int32 FTexturePlatformData::GetNumNonOptionalMips | ( | ) | const |
Return the number of mips that streamable but not optional.
Return the number of mips that are not streamable.
|
inline |
| int32 FTexturePlatformData::GetNumVTMips | ( | ) | const |
Return the size of the texture pixel data in bytes, not including headers or alignment.
|
inline |
| bool FTexturePlatformData::IsReadyForAsyncPostLoad | ( | ) | const |
Return whether TryLoadMips() would stall because async loaded mips are not yet available.
| void FTexturePlatformData::SerializeCooked | ( | FArchive & | Ar, |
| class UTexture * | Owner, | ||
| bool | bStreamable, | ||
| const bool | bSerializeMipData | ||
| ) |
Serialization for cooked builds.
| Ar | Archive to serialize with |
| Owner | Owner texture |
| bStreamable | set up serialization to stream some mips |
| bSerializeMipData | if false, no mip bulk data will be serialized. This should only be false when an alternate All Mip Data Provider is attached. |
|
inline |
|
inline |
| bool FTexturePlatformData::TryLoadMips | ( | int32 | FirstMipToLoad, |
| void ** | OutMipData, | ||
| FStringView | DebugContext | ||
| ) |
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. |
| DebugContext | - A string used for debug tracking and logging. Usually Texture->GetPathName() |
| bool FTexturePlatformData::TryLoadMipsWithSizes | ( | int32 | FirstMipToLoad, |
| void ** | OutMipData, | ||
| int64 * | OutMipSize, | ||
| FStringView | DebugContext | ||
| ) |
| TRefCountPtr<const struct FSharedImage> FTexturePlatformData::CPUCopy |
This is only valid if the texture availability is CPU only, see GetHasCpuCopy()
| TIndirectArray<struct FTexture2DMipMap> FTexturePlatformData::Mips |
Mip data or VT data. one or the other.
| FOptTexturePlatformData FTexturePlatformData::OptData |
Additional data required by some platforms.
| uint32 FTexturePlatformData::PackedData |
Packed bits [b31: CubeMap], [b30: HasOptData], [b29-0: NumSlices]. See bit masks below.
| EPixelFormat FTexturePlatformData::PixelFormat |
Format in which mip data is stored.
| int32 FTexturePlatformData::SizeX |
Width of the texture.
| int32 FTexturePlatformData::SizeY |
Height of the texture.
| struct FVirtualTextureBuiltData* FTexturePlatformData::VTData =nullptr |