UTexture::GetResourcePostInitState

Calculates the render resource initial state, expected to be used in InitResource() for derived classes implementing streaming.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Engine/Texture.h"

Source

/Engine/Source/Runtime/Engine/Private/Texture.cpp

Syntax

FStreamableRenderResourceState GetResourcePostInitState
(
    FTexturePlatformData * PlatformData,
    bool bAllowStreaming,
    int32 MinRequestMipCount,
    int32 MaxMipCount
) const

Remarks

Calculates the render resource initial state, expected to be used in InitResource() for derived classes implementing streaming.

Returns

The state to be passed to FStreamableTextureResource.

Parameters

Parameter

Description

PlatformData

the asset platform data.

bAllowStreaming

where streaming is allowed, might still be disabled based on asset settings.

MaxMipCount

optional limitation on the max mip count.

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