FTexture2DDynamicResource

A dynamic 2D texture resource.

Windows
MacOS
Linux

Inheritance Hierarchy

FRenderResource

FTexture

FTextureResource

FTexture2DDynamicResource

References

Module

Engine

Header

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

Include

#include "TextureResource.h"

Syntax

class FTexture2DDynamicResource : public FTextureResource

Remarks

A dynamic 2D texture resource.

Constructors

Name Description

Public function

FTexture2DDynamicResource

(
    UTexture2DDynamic* InOwner
)

Initialization constructor.

Functions

Name Description

Public function

FTexture2DRH...

 

GetTexture2DRHI()

Returns the Texture2DRHI, which can be used for locking/unlocking the mips.

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

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.

Select Skin
Light
Dark

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