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

FTextureResource type for 2D render target textures. 更多...

#include <TextureResource.h>

+ 类 FTextureRenderTarget2DResource 继承关系图:

Public 成员函数

virtual void ClampSize (int32 SizeX, int32 SizeY) override
 Clamp size of the render target resource to max values 更多...
 
 FTextureRenderTarget2DResource (const class UTextureRenderTarget2D *InOwner)
 Constructor 更多...
 
virtual float GetDisplayGamma () const override
 Render target resource should be sampled in linear color space 更多...
 
virtual uint32 GetSizeX () const override
 
virtual FIntPoint GetSizeXY () const override
 
virtual uint32 GetSizeY () const override
 
virtual class FTextureRenderTarget2DResource * GetTextureRenderTarget2DResource () override
 2D texture RT resource interface
 
FTexture2DRHIRef GetTextureRHI ()
 
virtual void InitDynamicRHI () override
 Initializes the dynamic RHI resource and/or RHI render target used by this resource. 更多...
 
virtual void ReleaseDynamicRHI () override
 Releases the dynamic RHI resource and/or RHI render target resources used by this resource. 更多...
 
- Public 成员函数 继承自 FTextureRenderTargetResource
 FTextureRenderTargetResource ()
 Constructor, initializing ClearLink.
 
virtual float GetDisplayGamma () const
 Render target resource should be sampled in linear color space 更多...
 
virtual uint32 GetSizeX () const =0
 Returns the width of the texture in pixels.
 
virtual uint32 GetSizeY () const =0
 Returns the height of the texture in pixels.
 
- 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.
 
- Public 成员函数 继承自 FRenderTarget
virtual ENGINE_API float GetDisplayGamma () const
 
virtual ENGINE_API FRHIGPUMask GetGPUMask (FRHICommandListImmediate &RHICmdList) const
 Returns the GPU nodes on which to render this rendertarget.
 
virtual ENGINE_API const FTexture2DRHIRef & GetRenderTargetTexture () const
 Accessor for the surface RHI when setting this render target 更多...
 
virtual bool HasToggleFreezeCommand ()
 Returns if there is a command to toggle freezerendering
 
virtual void ProcessToggleFreezeCommand ()
 Handles freezing/unfreezing of rendering
 
ENGINE_API bool ReadFloat16Pixels (TArray< FFloat16Color > &OutputBuffer, ECubeFace CubeFace=CubeFace_PosX)
 Reads the viewport's displayed pixels into the given color buffer. 更多...
 
ENGINE_API bool ReadLinearColorPixels (TArray< FLinearColor > &OutputBuffer, FReadSurfaceDataFlags InFlags=FReadSurfaceDataFlags(RCM_MinMax, CubeFace_MAX), FIntRect InRect=FIntRect(0, 0, 0, 0))
 Reads the viewport's displayed pixels into the given color buffer. 更多...
 
ENGINE_API bool ReadPixels (TArray< FColor > &OutImageData, FReadSurfaceDataFlags InFlags=FReadSurfaceDataFlags(RCM_UNorm, CubeFace_MAX), FIntRect InRect=FIntRect(0, 0, 0, 0))
 Reads the viewport's displayed pixels into a preallocated color buffer. 更多...
 
ENGINE_API bool ReadPixelsPtr (FColor *OutImageBytes, FReadSurfaceDataFlags InFlags=FReadSurfaceDataFlags(RCM_UNorm, CubeFace_MAX), FIntRect InSrcRect=FIntRect(0, 0, 0, 0))
 Reads the viewport's displayed pixels into a preallocated color buffer. 更多...
 
- Public 成员函数 继承自 FDeferredUpdateResource
 FDeferredUpdateResource ()
 Constructor, initializing UpdateListLink.
 
ENGINE_API void FlushDeferredResourceUpdate (FRHICommandListImmediate &RHICmdList)
 Performs a deferred resource update on this resource if it exists in the UpdateList.
 

Protected 成员函数

virtual void UpdateDeferredResource (FRHICommandListImmediate &RHICmdList, bool bClearRenderTarget=true) override
 Updates (resolves) the render target texture. 更多...
 
- Protected 成员函数 继承自 FRenderTarget
bool ReadFloat16Pixels (FFloat16Color *OutImageBytes, ECubeFace CubeFace=CubeFace_PosX)
 Reads the viewport's displayed pixels into a preallocated color buffer. 更多...
 
- Protected 成员函数 继承自 FDeferredUpdateResource
ENGINE_API void AddToDeferredUpdateList (bool OnlyUpdateOnce)
 Add this resource to deferred update list 更多...
 
ENGINE_API void RemoveFromDeferredUpdateList ()
 Remove this resource from deferred update list
 
virtual void UpdateDeferredResource (FRHICommandListImmediate &RHICmdList, bool bClearRenderTarget=true)=0
 Updates (resolves) the render target texture. 更多...
 

友元

class UTextureRenderTarget2D
 Updates (resolves) the render target texture. 更多...
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 FTextureRenderTargetResource
static ENGINE_API bool IsSupportedFormat (EPixelFormat Format)
 Return true if a render target of the given format is allowed for creation
 
- 静态 Public 成员函数 继承自 FRenderResource
static void InitPreRHIResources ()
 Initialize all resources initialized before the RHI was initialized
 
- 静态 Public 成员函数 继承自 FDeferredUpdateResource
static void ResetNeedsUpdate ()
 This is reset after all viewports have been rendered
 
static ENGINE_API void UpdateResources (FRHICommandListImmediate &RHICmdList)
 Iterate over the global list of resources that need to be updated and call UpdateResource on each one.
 
- 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.
 

详细描述

FTextureResource type for 2D render target textures.

构造及析构函数说明

◆ FTextureRenderTarget2DResource()

FTextureRenderTarget2DResource::FTextureRenderTarget2DResource ( const class UTextureRenderTarget2D *  InOwner)

Constructor

参数
InOwner- 2d texture object to create a resource for

成员函数说明

◆ ClampSize()

virtual void FTextureRenderTarget2DResource::ClampSize ( int32  SizeX,
int32  SizeY 
)
overridevirtual

Clamp size of the render target resource to max values

参数
MaxSizeXmax allowed width
MaxSizeYmax allowed height

重载 FTextureRenderTargetResource .

◆ GetDisplayGamma()

virtual float FTextureRenderTarget2DResource::GetDisplayGamma ( ) const
overridevirtual

Render target resource should be sampled in linear color space

返回
display gamma expected for rendering to this render target

重载 FTextureRenderTargetResource .

◆ GetSizeX()

virtual uint32 FTextureRenderTarget2DResource::GetSizeX ( ) const
overridevirtual
返回
width of the target

实现了 FTextureRenderTargetResource.

◆ GetSizeXY()

virtual FIntPoint FTextureRenderTarget2DResource::GetSizeXY ( ) const
overridevirtual
返回
dimensions of the target

实现了 FTextureRenderTargetResource.

◆ GetSizeY()

virtual uint32 FTextureRenderTarget2DResource::GetSizeY ( ) const
overridevirtual
返回
height of the target

实现了 FTextureRenderTargetResource.

◆ GetTextureRHI()

FTexture2DRHIRef FTextureRenderTarget2DResource::GetTextureRHI ( )
inline
返回
TextureRHI for rendering

◆ InitDynamicRHI()

virtual void FTextureRenderTarget2DResource::InitDynamicRHI ( )
overridevirtual

Initializes the dynamic RHI resource and/or RHI render target used by this resource.

Called when the resource is initialized, or when reseting all RHI resources. Resources that need to initialize after a D3D device reset must implement this function. This is only called by the rendering thread.

重载 FRenderResource .

◆ ReleaseDynamicRHI()

virtual void FTextureRenderTarget2DResource::ReleaseDynamicRHI ( )
overridevirtual

Releases the dynamic RHI resource and/or RHI render target resources used by this resource.

Called when the resource is released, or when reseting all RHI resources. Resources that need to release before a D3D device reset must implement this function. This is only called by the rendering thread.

重载 FRenderResource .

◆ UpdateDeferredResource()

virtual void FTextureRenderTarget2DResource::UpdateDeferredResource ( FRHICommandListImmediate &  RHICmdList,
bool  bClearRenderTarget = true 
)
overrideprotectedvirtual

Updates (resolves) the render target texture.

Optionally clears the contents of the render target to green. This is only called by the rendering thread.

实现了 FDeferredUpdateResource.

友元及相关函数文档

◆ UTextureRenderTarget2D

friend class UTextureRenderTarget2D
friend

Updates (resolves) the render target texture.

Optionally clears the contents of the render target to green. This is only called by the rendering thread.


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