Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Rendering
Inheritance Hierarchy
- FRenderResource
- FTexture
- FTextureResource
- FStreamableTextureResource
- FTexture2DResource
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Rendering/Texture2DResource.h |
| Include | #include "Rendering/Texture2DResource.h" |
Syntax
class FTexture2DResource : public FStreamableTextureResource
Remarks
FTextureResource implementation for streamable 2D textures.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTexture2DResource
(
UTexture2D* InOwner, |
Minimal initialization constructor.Minimal initialization constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor, freeing MipData in the case of resource being destroyed without ever having been initialized by the rendering thread via InitRHI. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CacheSamplerStateInitializer
(
const UTexture2D* InOwner |
Set the value of Filter, AddressU, AddressV, AddressW and MipBias from FStreamableTextureResource on the gamethread. | |
| uint32 | CalculateTightPackedMipSize
(
int32 SizeX, |
Returns mip size in bytes; fills OutPitch | |
| void | WarnRequiresTightPackedMip
(
int32 SizeX, |
Warn if "Pitch" is not compatible with tight-packed requirement |
Overridden from FStreamableTextureResource
| Type | Name | Description | |
|---|---|---|---|
| uint64 | GetPlatformMipsSize
(
uint32 NumMips |
Returns the platform mip size for the given mip count. |
Overridden from FTextureResource
| Type | Name | Description | |
|---|---|---|---|
| FTexture2DResource * | Dynamic cast methods. | ||
| const FTexture2DResource * | Dynamic cast methods (const). | ||
| bool | IsProxy () |
Returns true if the resource is proxying another one. |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| void | InitRHI
(
FRHICommandListBase& RHICmdList |
Initializes the RHI resources used by this resource. |