FTexture2DResource

[FTextureResource](API\Runtime\Engine\FTextureResource) implementation for streamable 2D textures.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/TextureResource.h

Include

#include "TextureResource.h"

Syntax

class FTexture2DResource : public FTextureResource

Remarks

FTextureResource implementation for streamable 2D textures.

Constructors

Name Description

Public function

FTexture2DResource

(
    UTexture2D* InOwner,
    int32 InitialMipCount
)

Minimal initialization constructor.

Minimal initialization constructor.

Destructors

Name Description

Public function Virtual

~FTexture2DResource()

Destructor, freeing MipData in the case of resource being destroyed without ever having been initialized by the rendering thread via InitRHI.

Functions

Name Description

Public function Const

int32

 

GetCurrentFirstMip()

Returns the current first mip (always valid)

Public function

FTexture2DRH...

 

GetTexture2DRHI()

Accessor

Public function

void

 

UpdateTexture

(
    FTexture2DRHIRef& InTextureRHI,
    int32 InFirstMip
)

Overridden from FTextureResource

Name Description

Public function Virtual

void

 

RefreshSamplerStates()

Releases and recreates any sampler state objects. used when updating mip map bias offset

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.

Overridden from FRenderResource

Name Description

Public function Virtual Const

FString

 

GetFriendlyName()

Public function Virtual

void

 

InitRHI()

Called when the resource is initialized. This is only called by the rendering thread.

Public function Virtual

void

 

ReleaseRHI()

Called when the resource is released. This is only called by the rendering thread.

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