![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <StreamableTextureResource.h>
Inheritance diagram for FStreamableTextureResource:Protected Member Functions | |
| virtual void | CreateTexture (FRHICommandListBase &RHICmdList)=0 |
| virtual void | CreatePartiallyResidentTexture (FRHICommandListBase &RHICmdList)=0 |
Protected Member Functions inherited from FRenderResource | |
| void | SetFeatureLevel (const FStaticFeatureLevel InFeatureLevel) |
| const FStaticFeatureLevel | GetFeatureLevel () const |
| bool | HasValidFeatureLevel () const |
| template<typename T > | |
| FBufferRHIRef | CreateRHIBuffer (FRHICommandListBase &RHICmdList, T &InOutResourceObject, uint32 ResourceCount, EBufferUsageFlags InBufferUsageFlags, const TCHAR *InDebugName) |
| void | SetInitPhase (EInitPhase InInitPhase) |
Protected Attributes | |
| const FTexturePlatformData * | PlatformData |
| FStreamableRenderResourceState | State |
| TEnumAsByte< ESamplerFilter > | Filter = SF_Point |
| TEnumAsByte< ESamplerAddressMode > | AddressU = AM_Wrap |
| TEnumAsByte< ESamplerAddressMode > | AddressV = AM_Wrap |
| TEnumAsByte< ESamplerAddressMode > | AddressW = AM_Wrap |
| float | MipBias = 0 |
| uint32 | SizeX = 0 |
| uint32 | SizeY = 0 |
| uint32 | SizeZ = 0 |
| FName | TextureName |
| EMipFadeSettings | MipFadeSetting = MipFade_Normal |
| TextureGroup | LODGroup = TEXTUREGROUP_World |
| EPixelFormat | PixelFormat = PF_Unknown |
| ETextureCreateFlags | CreationFlags = TexCreate_None |
| bool | bUsePartiallyResidentMips = false |
| int8 | MaxAniso = 0 |
Protected Attributes inherited from FTextureResource | |
| FTextureReferenceRHIRef | TextureReferenceRHI |
The rendering resource streamable texture.
| FStreamableTextureResource::FStreamableTextureResource | ( | UTexture * | InOwner, |
| const FTexturePlatformData * | InPlatformData, | ||
| const FStreamableRenderResourceState & | InPostInitState, | ||
| bool | bAllowPartiallyResidentMips | ||
| ) |
|
protectedpure virtual |
Implemented in FTexture2DArrayResource.
|
protectedpure virtual |
Implemented in FTexture2DArrayResource.
| void FStreamableTextureResource::FinalizeStreaming | ( | FRHICommandListBase & | RHICmdList, |
| FRHITexture * | InTextureRHI | ||
| ) |
| void FStreamableTextureResource::FinalizeStreaming | ( | FRHITexture * | InTextureRHI | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| const FTexture2DMipMap * FStreamableTextureResource::GetPlatformMip | ( | int32 | MipIdx | ) | const |
Returns the platform mip size for the given mip count.
Implemented in FTexture2DArrayResource, FTexture3DResource, and FTexture2DResource.
| TArrayView< const FTexture2DMipMap * > FStreamableTextureResource::GetPlatformMipsView | ( | ) | const |
|
inline |
Returns the width of the texture in pixels.
Reimplemented from FTexture.
Returns the height of the texture in pixels.
Reimplemented from FTexture.
Returns the depth of the texture in pixels.
Reimplemented from FTexture.
|
inline |
|
inlinevirtual |
Reimplemented from FTextureResource.
|
inlinevirtual |
Reimplemented from FTextureResource.
|
inline |
|
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 FRenderResource.
Reimplemented in FTexture2DArrayResource, FTexture3DResource, and FTexture2DResource.
| void FStreamableTextureResource::RefreshSamplerStates | ( | ) |
Returns the default mip map bias for this texture.
|
finaloverridevirtual |
|
protected |
|
protected |
|
protected |
Whether this texture should be updated using the virtual address mapping for each mip.
|
protected |
Creation flags of the texture
|
protected |
Sample config
|
protected |
The asset LOD group
|
protected |
Max anisotropy. if 0, will use r.MaxAnisotropy
|
protected |
|
protected |
Mip fade settings
|
protected |
Format of the texture
|
protected |
Platform data should be ref counted eventually to remove any synchronization needed when the asset is rebuild.
|
protected |
The width this resource, when all mips are streamed in.
|
protected |
The height when all mips are streamed in.
|
protected |
The 3d depth for volume texture or num slices for 2d array when all mips are streamed in. This is NOT USED for cubemap arrays or cubemaps!
|
protected |
Different states for streaming synchronization.