Texture resource type for webbrowser textures. 更多...
#include <WebBrowserTextureResource.h>
类 FWebBrowserTextureResource 继承关系图:类 | |
| struct | FRenderParams |
| Parameters for the Render method. 更多... | |
Public 成员函数 | |
| FWebBrowserTextureResource (UWebBrowserTexture &InOwner, FIntPoint &InOwnerDim, SIZE_T &InOwnerSize) | |
| Creates and initializes a new instance. 更多... | |
| virtual FString | GetFriendlyName () const override |
| virtual uint32 | GetSizeX () const override |
| Returns the width of the texture in pixels. | |
| virtual uint32 | GetSizeY () const override |
| Returns the height of the texture in pixels. | |
| 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. 更多... | |
| void | Render (const FRenderParams &Params) |
| Render the texture resource. 更多... | |
| virtual | ~FWebBrowserTextureResource () |
| Virtual destructor. | |
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 成员函数 继承自 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. | |
Protected 成员函数 | |
| void | ClearTexture (const FLinearColor &ClearColor) |
| Clear the texture using the given clear color. 更多... | |
| void | CopySample (const TSharedPtr< FWebBrowserTextureSample, ESPMode::ThreadSafe > &Sample, const FLinearColor &ClearColor) |
| Render the given texture sample by using it as or copying it to the render target. 更多... | |
| void | UpdateResourceSize () |
| Calculates the current resource size and notifies the owner texture. | |
| void | UpdateTextureReference (FRHITexture2D *NewTexture) |
| Set the owner's texture reference to the given texture. 更多... | |
Protected 成员函数 继承自 FRenderTarget | |
| bool | ReadFloat16Pixels (FFloat16Color *OutImageBytes, ECubeFace CubeFace=CubeFace_PosX) |
| Reads the viewport's displayed pixels into a preallocated color buffer. 更多... | |
额外继承的成员函数 | |
静态 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. | |
Texture resource type for webbrowser textures.
| FWebBrowserTextureResource::FWebBrowserTextureResource | ( | UWebBrowserTexture & | InOwner, |
| FIntPoint & | InOwnerDim, | ||
| SIZE_T & | InOwnerSize | ||
| ) |
Creates and initializes a new instance.
| InOwner | The Movie texture object to create a resource for (must not be nullptr). |
| InOwnerDim | The initial width and height of the texture. |
| InOwnerSize | The initial memory allocated to the texture. |
|
protected |
Clear the texture using the given clear color.
| ClearColor | The clear color to use. |
|
protected |
Render the given texture sample by using it as or copying it to the render target.
| Sample | The texture sample to copy. |
| ClearColor | The clear color to use for the output texture. |
|
overridevirtual |
|
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 .
|
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 .
| void FWebBrowserTextureResource::Render | ( | const FRenderParams & | Params | ) |
Render the texture resource.
This method is called on the render thread by the WebBrowserTexture that owns this texture resource to clear or redraw the resource using the given parameters.
| Params | Render parameters. |
|
protected |
Set the owner's texture reference to the given texture.
| NewTexture | The texture to set. |