FTexture2DDynamicResource

A dynamic 2D texture resource.

Choose your operating system:

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.