FTextureResource type for render target textures. 更多...
#include <TextureResource.h>
类 FTextureRenderTargetResource 继承关系图:Public 成员函数 | |
| 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. | |
静态 Public 成员函数 | |
| 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. | |
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. 更多... | |
FTextureResource type for render target textures.
|
virtual |
Render target resource should be sampled in linear color space
重载 FRenderTarget .
被 FTextureRenderTarget2DArrayResource, FTextureRenderTargetVolumeResource, FTextureRenderTarget2DResource , 以及 FTextureRenderTargetCubeResource 重载.