Navigation
API > API/Runtime > API/Runtime/Engine
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
| Type | Name | Description | |
|---|---|---|---|
FTexture2DDynamicResource
(
UTexture2DDynamic* InOwner |
Initialization constructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FTexture2DRHIRef | Returns the Texture2DRHI, which can be used for locking/unlocking the mips. | ||
| void | WriteRawToTexture_RenderThread
(
TArrayView64< const uint8 > RawData |
Overridden from FTexture
| Type | Name | Description | |
|---|---|---|---|
| uint32 | GetSizeX () |
Returns the width of the texture in pixels. | |
| uint32 | GetSizeY () |
Returns the height of the texture in pixels. |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| void | InitRHI
(
FRHICommandListBase& RHICmdList |
Called when the resource is initialized. This is only called by the rendering thread. | |
| void | ReleaseRHI () |
Called when the resource is released. This is only called by the rendering thread. |