engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
FTexture2DResource类 参考

FTextureResource implementation for streamable 2D textures. 更多...

#include <Texture2DResource.h>

+ 类 FTexture2DResource 继承关系图:

Public 成员函数

void CacheSamplerStateInitializer (const UTexture2D *InOwner)
 Set the value of Filter, AddressU, AddressV, AddressW and MipBias from FStreamableTextureResource on the gamethread.
 
 FTexture2DResource (UTexture2D *InOwner, const FStreamableRenderResourceState &InPostInitState)
 Minimal initialization constructor. 更多...
 
virtual ~FTexture2DResource ()
 Destructor, freeing MipData in the case of resource being destroyed without ever having been initialized by the rendering thread via InitRHI.
 
- Public 成员函数 继承自 FStreamableTextureResource
virtual uint32 GetSizeX () const final override
 Returns the width of the texture in pixels.
 
virtual uint32 GetSizeY () const final override
 Returns the height of the texture in pixels.
 
virtual uint32 GetSizeZ () const final override
 Returns the depth of the texture in pixels.
 
virtual void InitRHI () final override
 Initializes the RHI resources used by this resource. 更多...
 
void RefreshSamplerStates ()
 Returns the default mip map bias for this texture.
 
virtual void ReleaseRHI () final override
 Releases the RHI resources used by this resource. 更多...
 
- Public 成员函数 继承自 FTexture
 FTexture ()
 Default constructor.
 
virtual FString GetFriendlyName () const override
 
virtual uint32 GetSizeX () const
 Returns the width of the texture in pixels.
 
virtual uint32 GetSizeY () const
 Returns the height of the texture in pixels.
 
virtual uint32 GetSizeZ () const
 Returns the depth of the texture in pixels.
 
virtual void ReleaseRHI () override
 Releases the RHI resources used by this resource. 更多...
 
- Public 成员函数 继承自 FRenderResource
 FRenderResource ()
 Default constructor.
 
 FRenderResource (ERHIFeatureLevel::Type InFeatureLevel)
 Constructor when we know what feature level this resource should support
 
virtual FString GetFriendlyName () const
 
virtual void InitDynamicRHI ()
 Initializes the dynamic RHI resource and/or RHI render target used by this resource. 更多...
 
virtual void InitResource ()
 Initializes the resource. 更多...
 
virtual void InitRHI ()
 Initializes the RHI resources used by this resource. 更多...
 
virtual void ReleaseDynamicRHI ()
 Releases the dynamic RHI resource and/or RHI render target resources used by this resource. 更多...
 
virtual void ReleaseResource ()
 Prepares the resource for deletion. 更多...
 
virtual void ReleaseRHI ()
 Releases the RHI resources used by this resource. 更多...
 
void UpdateRHI ()
 If the resource's RHI resources have been initialized, then release and reinitialize it. 更多...
 
virtual ~FRenderResource ()
 Destructor used to catch unreleased resources.
 

友元

class UTexture2D
 Texture streaming command classes that need to be friends in order to call Update/FinalizeMipCount.
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 FRenderResource
static void InitPreRHIResources ()
 Initialize all resources initialized before the RHI was initialized
 
- Public 属性 继承自 FTexture
bool bGreyScaleFormat
 true if the texture is in a greyscale texture format.
 
bool bIgnoreGammaConversions
 true if the texture is in the same gamma space as the intended rendertarget (e.g. 更多...
 
bool bSRGB
 Is the pixel data in this texture sRGB?
 
FSamplerStateRHIRef DeferredPassSamplerStateRHI
 Sampler state to be used in deferred passes when discontinuities in ddx / ddy would cause too blurry of a mip to be used.
 
double LastRenderTime
 The last time the texture has been bound
 
FMipBiasFade MipBiasFade
 Base values for fading in/out mip-levels.
 
FSamplerStateRHIRef SamplerStateRHI
 The sampler state to use for the texture.
 
FTextureRHIRef TextureRHI
 The texture's RHI resource.
 
- Protected 属性 继承自 FStreamableTextureResource
bool bUsePartiallyResidentMips = false
 Whether this texture should be updated using the virtual address mapping for each mip.
 
ETextureCreateFlags CreationFlags = TexCreate_None
 Creation flags of the texture
 
TEnumAsByte< ESamplerFilter > Filter = SF_Point
 Sample config
 
TextureGroup LODGroup = TEXTUREGROUP_World
 The asset LOD group
 
EMipFadeSettings MipFadeSetting = MipFade_Normal
 Mip fade settings
 
EPixelFormat PixelFormat = PF_Unknown
 Format of the texture
 
const FTexturePlatformData * PlatformData
 Platform data should be ref counted eventually to remove any synchronization needed when the asset is rebuild.
 
uint32 SizeX = 0
 The width this resource, when all mips are streamed in.
 
uint32 SizeY = 0
 The height when all mips are streamed in.
 
uint32 SizeZ = 0
 The depth when all mips are streamed in.
 
FStreamableRenderResourceState State
 Different states for streaming synchronization.
 
FName TextureName
 The FName of the texture asset
 

详细描述

FTextureResource implementation for streamable 2D textures.

构造及析构函数说明

◆ FTexture2DResource()

FTexture2DResource::FTexture2DResource ( UTexture2D *  InOwner,
const FStreamableRenderResourceState &  InPostInitState 
)

Minimal initialization constructor.

参数
InOwnerUTexture2D which this FTexture2DResource represents.
InPostInitStateThe renderthread coherent state the resource will have once InitRHI() will be called.

该类的文档由以下文件生成: