engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FTexture类 参考

A textures resource. 更多...

#include <RenderResource.h>

+ 类 FTexture 继承关系图:

Public 成员函数

 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.
 

Public 属性

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.
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 FRenderResource
static void InitPreRHIResources ()
 Initialize all resources initialized before the RHI was initialized
 

详细描述

A textures resource.

成员函数说明

◆ GetFriendlyName()

virtual FString FTexture::GetFriendlyName ( ) const
inlineoverridevirtual
返回
The resource's friendly name. Typically a UObject name.

重载 FRenderResource .

被 FWebBrowserTextureResource 重载.

◆ ReleaseRHI()

virtual void FTexture::ReleaseRHI ( )
inlineoverridevirtual

Releases the RHI resources used by this resource.

Called when leaving the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.

重载 FRenderResource .

被 FStreamableTextureResource, FSkyTextureCubeResource, FTexture2DDynamicResource, FTextureWithSRV , 以及 FTextureWithRDG 重载.

类成员变量说明

◆ bIgnoreGammaConversions

bool FTexture::bIgnoreGammaConversions

true if the texture is in the same gamma space as the intended rendertarget (e.g.

screenshots). The texture will have sRGB==false and bIgnoreGammaConversions==true, causing a non-sRGB texture lookup and no gamma-correction in the shader.


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