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

FTextureResource type for cube render target textures. 更多...

#include <TextureResource.h>

+ 类 FTextureRenderTargetCubeResource 继承关系图:

Public 成员函数

 FTextureRenderTargetCubeResource (const class UTextureRenderTargetCube *InOwner)
 Constructor 更多...
 
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 FTextureRenderTargetCubeResource * GetTextureRenderTargetCubeResource ()
 Cube texture RT resource interface
 
FTextureCubeRHIRef GetTextureRHI ()
 
virtual void InitDynamicRHI () override
 Initializes the dynamic RHI resource and/or RHI render target used by this resource. 更多...
 
ENGINE_API bool ReadPixels (TArray< FColor > &OutImageData, FReadSurfaceDataFlags InFlags, FIntRect InRect=FIntRect(0, 0, 0, 0))
 Copy the texels of a single face of the cube into an array. 更多...
 
ENGINE_API bool ReadPixels (TArray< FFloat16Color > &OutImageData, FReadSurfaceDataFlags InFlags, FIntRect InRect=FIntRect(0, 0, 0, 0))
 Copy the texels of a single face of the cube into an array. 更多...
 
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. 更多...
 

额外继承的成员函数

- 静态 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 cube render target textures.

构造及析构函数说明

◆ FTextureRenderTargetCubeResource()

FTextureRenderTargetCubeResource::FTextureRenderTargetCubeResource ( const class UTextureRenderTargetCube *  InOwner)
inline

Constructor

参数
InOwner- cube texture object to create a resource for

成员函数说明

◆ GetDisplayGamma()

float FTextureRenderTargetCubeResource::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 FTextureRenderTargetCubeResource::GetSizeX ( ) const
overridevirtual
返回
width of the target

实现了 FTextureRenderTargetResource.

◆ GetSizeXY()

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

实现了 FTextureRenderTargetResource.

◆ GetSizeY()

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

实现了 FTextureRenderTargetResource.

◆ GetTextureRHI()

FTextureCubeRHIRef FTextureRenderTargetCubeResource::GetTextureRHI ( )
inline
返回
TextureRHI for rendering

◆ InitDynamicRHI()

virtual void FTextureRenderTargetCubeResource::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 .

◆ ReadPixels() [1/2]

ENGINE_API bool FTextureRenderTargetCubeResource::ReadPixels ( TArray< FColor > &  OutImageData,
FReadSurfaceDataFlags  InFlags,
FIntRect  InRect = FIntRect(0, 0, 0, 0) 
)

Copy the texels of a single face of the cube into an array.

参数
OutImageData- float16 values will be stored in this array.
InFlags- read flags. ensure cubeface member has been set.
InRect- Rectangle of texels to copy.
返回
true if the read succeeded.

◆ ReadPixels() [2/2]

ENGINE_API bool FTextureRenderTargetCubeResource::ReadPixels ( TArray< FFloat16Color > &  OutImageData,
FReadSurfaceDataFlags  InFlags,
FIntRect  InRect = FIntRect(0, 0, 0, 0) 
)

Copy the texels of a single face of the cube into an array.

参数
OutImageData- float16 values will be stored in this array.
InFlags- read flags. ensure cubeface member has been set.
InRect- Rectangle of texels to copy.
返回
true if the read succeeded.

◆ ReleaseDynamicRHI()

virtual void FTextureRenderTargetCubeResource::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 FTextureRenderTargetCubeResource::UpdateDeferredResource ( FRHICommandListImmediate &  RHICmdList,
bool  bClearRenderTarget = true 
)
overrideprotectedvirtual

Updates (resolves) the render target texture.

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

实现了 FDeferredUpdateResource.


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