Navigation
API > API/Runtime > API/Runtime/Engine
A dynamic 2D texture resource.
| Name | FTexture2DDynamicResource |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/TextureResource.h |
| Include Path | #include "TextureResource.h" |
Syntax
class FTexture2DDynamicResource : public FTextureResource
Inheritance Hierarchy
- FRenderResource → FTexture → FTextureResource → FTexture2DDynamicResource
- FTexture → FTextureResource → FTexture2DDynamicResource
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTexture2DDynamicResource
(
UTexture2DDynamic* InOwner |
Initialization constructor. | TextureResource.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Owner | UTexture2DDynamic * | The owner of this resource. | TextureResource.h | |
| Texture2DRHI | FTextureRHIRef | Texture2D reference, used for locking/unlocking the mips. | TextureResource.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTextureRHIRef GetTexture2DRHI() |
Returns the Texture2DRHI, which can be used for locking/unlocking the mips. | TextureResource.h | |
void WriteRawToTexture_RenderThread
(
TArrayView64< const uint8 > RawData |
TextureResource.h |
Overridden from FTexture
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual uint32 GetSizeX() |
Returns the width of the texture in pixels. | TextureResource.h | |
virtual uint32 GetSizeY() |
Returns the height of the texture in pixels. | TextureResource.h |
Overridden from FRenderResource
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitRHI
(
FRHICommandListBase& RHICmdList |
Called when the resource is initialized. This is only called by the rendering thread. | TextureResource.h | |
virtual void ReleaseRHI() |
Called when the resource is released. This is only called by the rendering thread. | TextureResource.h |