FTexture2DResource

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

Windows
MacOS
Linux

Inheritance Hierarchy

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.

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 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.

References

Module

Engine

Header

Runtime/Engine/Public/TextureResource.h

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