FStreamableTextureResource

The rendering resource streamable texture.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Rendering/StreamableTextureResource.h

Include

#include "Rendering/StreamableTextureResource.h"

Syntax

class FStreamableTextureResource : public FTextureResource

Remarks

The rendering resource streamable texture.

Variables

Name Description

Protected variable

TEnumAsByte< ES...

 

AddressU

Protected variable

TEnumAsByte< ES...

 

AddressV

Protected variable

TEnumAsByte< ES...

 

AddressW

Protected variable

bool

 

bUsePartiallyResidentMips

Whether this texture should be updated using the virtual address mapping for each mip.

Protected variable

ETextureCreateF...

 

CreationFlags

Creation flags of the texture

Protected variable

TEnumAsByte< ES...

 

Filter

Sample config

Protected variable

TextureGroup

 

LODGroup

The asset LOD group

Protected variable

float

 

MipBias

Protected variable

EMipFadeSetting...

 

MipFadeSetting

Mip fade settings

Protected variable

EPixelFormat

 

PixelFormat

Format of the texture

Protected variable

const FTextureP...

 

PlatformData

Platform data should be ref counted eventually to remove any synchronization needed when the asset is rebuild.

Protected variable

uint32

 

SizeX

The width this resource, when all mips are streamed in.

Protected variable

uint32

 

SizeY

The height when all mips are streamed in.

Protected variable

uint32

 

SizeZ

The depth when all mips are streamed in.

Protected variable

FStreamableRend...

 

State

Different states for streaming synchronization.

Protected variable

FName

 

TextureName

The FName of the texture asset

Constructors

Name Description

Public function

FStreamableTextureResource

(
    UTexture* InOwner,
    const FTexturePlatformData* In...,
    const FStreamableRenderResourceStat...,
    bool bAllowPartiallyResidentMips
)

Functions

Name Description

Protected function

void

 

CreatePartiallyResidentTexture()

Protected function

void

 

CreateTexture()

Public function

void

 

FinalizeStreaming

(
    FRHITexture* InTextureRHI
)

Public function Const

ETextureCrea...

 

GetCreationFlags()

Return the texture creation flags, does not include TexCreate_Virtual as it could change per mip. Use IsTextureRHIPartiallyResident() instead.

Public function Const

int32

 

GetCurrentFirstMip()

Get the current first mip index, of this renderthread resource. Non streaming asset always return 0.

Public function Const

TextureGroup

 

GetLODGroup()

Public function Const

EPixelFormat

 

GetPixelFormat()

Public function Const

const FTextu...

 

GetPlatformMip

(
    int32 MipIdx
)

Return the platform data mips, zero based on the resource mip count and not to the asset mip count.

Public function Const

TArrayView< ...

 

GetPlatformMipsView()

Return the platform data mips, zero based on the resource mip count and not to the asset mip count.

Public function Const

FStreamableR...

 

GetPostInitState()

Get the state it will be in after InitRHI() gets called. Used to synchronize UStreamableRenderResource.CacheStreamableResourceState in CreateResource().

Public function Const

FStreamableR...

 

GetState()

This is only coherent sync on the rendering thread. To get the gamethread coherent value, use UStreamableRenderResource.CacheStreamableResourceState.

Public function Const

const FName ...

 

GetTextureName()

Public function

void

 

RefreshSamplerStates()

Returns the default mip map bias for this texture.

Overridden from FTextureResource

Name Description

Public function Virtual

FStreamableT...

 

GetStreamableTextureResource()

Dynamic cast methods.

Public function Virtual Const

const FStrea...

 

GetStreamableTextureResource()

Dynamic cast methods (const).

Overridden from FTexture

Name Description

Public function Virtual Const

uint32

 

GetSizeX()

Returns the width of the texture in pixels.

Public function Virtual Const

uint32

 

GetSizeY()

Returns the height of the texture in pixels.

Public function Virtual Const

uint32

 

GetSizeZ()

Returns the depth of the texture in pixels.

Overridden from FRenderResource

Name Description

Public function Virtual

void

 

InitRHI()

Initializes the RHI resources used by this resource.

Public function Virtual

void

 

ReleaseRHI()

Releases the RHI resources used by this resource.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss