FTexturePlatformData

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

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Texture.h

Include

#include "Engine/Texture.h"

Syntax

struct FTexturePlatformData

Remarks

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

Variables

Name Description

Public variable

FTextureAsyncCa...

 

AsyncTask

Async cache task if one is outstanding.

Public variable

FString

 

DerivedDataKey

The key associated with this derived data.

Public variable

TIndirectArray<...

 

Mips

Mip data or VT data. one or the other.

Public variable

int32

 

NumSlices

Number of texture slices.

Public variable

EPixelFormat

 

PixelFormat

Format in which mip data is stored.

Public variable

int32

 

SizeX

Width of the texture.

Public variable

int32

 

SizeY

Height of the texture.

Public variable

FVirtualTexture...

 

VTData

Constructors

Name Description

Public function

FTexturePlatformData()

Default constructor.

Destructors

Name Description

Public function

~FTexturePlatformData()

Destructor.

Functions

Name Description

Public function Const

bool

 

AreDerivedMipsAvailable()

Public function Const

bool

 

AreDerivedVTChunksAvailable()

Public function

void

 

Cache

(
    UTexture& InTexture,
    const FTextureBuildSettings* I...,
    uint32 InFlags,
    ITextureCompressorModule* Comp...
)

Public function

void

 

FinishCache()

Public function Const

EPixelFormat

 

GetLayerPixelFormat

(
    uint32 LayerIndex
)

Public function Const

int32

 

GetNumNonStreamingMips()

Public function Const

int32

 

GetNumVTMips()

Only because we don't want to expose FVirtualTextureBuiltData.

Public function Const

bool

 

IsReadyForAsyncPostLoad()

Return whether TryLoadMips() would stall because async loaded mips are not yet available.

Public function

void

 

Serialize

(
    FArchive& Ar,
    UTexture* Owner
)

Serialization.

Public function

void

 

SerializeCooked

(
    FArchive& Ar,
    UTexture* Owner,
    bool bStreamable
)

Serialization for cooked builds.

Public function

bool

 

TryInlineMipData

(
    int32 FirstMipToLoad
)

Public function

bool

 

TryLoadMips

(
    int32 FirstMipToLoad,
    void** OutMipData
)

Try to load mips from the derived data cache.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback