![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Texture2DResource.h>
Inheritance diagram for FTexture2DResource:Static Public Member Functions | |
| static uint32 | CalculateTightPackedMipSize (int32 SizeX, int32 SizeY, EPixelFormat PixelFormat, uint32 &OutPitch) |
| static void | WarnRequiresTightPackedMip (int32 SizeX, int32 SizeY, EPixelFormat PixelFormat, uint32 Pitch) |
Static Public Member Functions inherited from FRenderResource | |
| static RENDERCORE_API void | ReleaseRHIForAllResources () |
| static RENDERCORE_API void | InitPreRHIResources () |
| static RENDERCORE_API void | ChangeFeatureLevel (ERHIFeatureLevel::Type NewFeatureLevel) |
| static RENDERCORE_API FName | SetScopeName (FName Name) |
Friends | |
| class | UTexture2D |
| class | FTexture2DUpdate |
| class | FTexture2DMipAllocator_Virtual |
FTextureResource implementation for streamable 2D textures.
| FTexture2DResource::FTexture2DResource | ( | UTexture2D * | InOwner, |
| const FStreamableRenderResourceState & | InState | ||
| ) |
Minimal initialization constructor.
| InOwner | UTexture2D which this FTexture2DResource represents. |
| InPostInitState | The renderthread coherent state the resource will have once InitRHI() will be called. |
Minimal initialization constructor.
| InOwner | UTexture2D which this FTexture2DResource represents. |
| InState |
|
virtual |
Destructor, freeing MipData in the case of resource being destroyed without ever having been initialized by the rendering thread via InitRHI.
| void FTexture2DResource::CacheSamplerStateInitializer | ( | const UTexture2D * | InOwner | ) |
Set the value of Filter, AddressU, AddressV, AddressW and MipBias from FStreamableTextureResource on the gamethread.
|
static |
Returns the platform mip size for the given mip count.
Implements FStreamableTextureResource.
|
inlinevirtual |
Reimplemented from FTextureResource.
|
inlinevirtual |
Reimplemented from FTextureResource.
|
overridevirtual |
Initializes the RHI resources used by this resource. Called when entering the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.
Reimplemented from FStreamableTextureResource.
Returns true if the resource is proxying another one.
Reimplemented from FTextureResource.
|
static |
|
friend |
|
friend |
|
friend |
Texture streaming command classes that need to be friends in order to call Update/FinalizeMipCount.