UTexture::GetResourcePostInitState

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

Choose your operating system:

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
(
    const FTexturePlatformData * PlatformData,
    bool bAllowStreaming,
    int32 MinRequestMipCount,
    int32 MaxMipCount,
    bool bSkipCanBeLoaded
) 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.