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

The public interface of the renderer module. 更多...

#include <RendererInterface.h>

+ 类 IRendererModule 继承关系图:

Public 成员函数

virtual FSceneInterface * AllocateScene (UWorld *World, bool bInRequiresHitProxies, bool bCreateFXSystem, ERHIFeatureLevel::Type InFeatureLevel)=0
 Allocates a new instance of the private FScene implementation for the given world. 更多...
 
virtual class FSceneViewStateInterface * AllocateViewState ()=0
 Allocates a new instance of the private scene manager implementation of FSceneViewStateInterface
 
virtual void BeginRenderingViewFamily (FCanvas *Canvas, FSceneViewFamily *ViewFamily)=0
 Call from the game thread to send a message to the rendering thread to being rendering this view family.
 
virtual void CreateAndInitSingleView (FRHICommandListImmediate &RHICmdList, class FSceneViewFamily *ViewFamily, const struct FSceneViewInitOptions *ViewInitOptions)=0
 Call from the render thread to create and initalize a new FViewInfo with the specified options, and add it to the specified view family.
 
virtual void DebugLogOnCrash ()=0
 Renderer gets a chance to log some useful crash data
 
 DECLARE_MULTICAST_DELEGATE_TwoParams (FOnResolvedSceneColor, FRHICommandListImmediate &, class FSceneRenderTargets &)
 Delegate that is called upon resolving scene color.
 
virtual void DrawRectangle (FRHICommandList &RHICmdList, float X, float Y, float SizeX, float SizeY, float U, float V, float SizeU, float SizeV, FIntPoint TargetSize, FIntPoint TextureSize, const TShaderRefBase< FShader, FShaderMapPointerTable > &VertexShader, EDrawRectangleFlags Flags=EDRF_Default)=0
 Draws a quad with the given vertex positions and UVs in denormalized pixel/texel coordinates. 更多...
 
virtual void DrawTileMesh (FRHICommandListImmediate &RHICmdList, struct FMeshPassProcessorRenderState &DrawRenderState, const FSceneView &View, FMeshBatch &Mesh, bool bIsHitTesting, const class FHitProxyId &HitProxyId, bool bUse128bitRT=false)=0
 Draws a tile mesh element with the specified view.
 
virtual void FlushVirtualTextureCache ()=0
 Evict all data from virtual texture caches
 
virtual uint32 GetNumDynamicLightsAffectingPrimitive (const class FPrimitiveSceneInfo *PrimitiveSceneInfo, const class FLightCacheInterface *LCI)=0
 
virtual FOnResolvedSceneColor & GetResolvedSceneColorCallbacks ()=0
 Accessor for post scene color resolve delegates
 
virtual void LoadPendingVirtualTextureTiles (FRHICommandListImmediate &RHICmdList, ERHIFeatureLevel::Type FeatureLevel)=0
 Ensure that any tiles requested by 'RequestVirtualTextureTilesForRegion' are loaded, must be called from render thread
 
virtual void PerFrameCleanupIfSkipRenderer ()=0
 Performs necessary per-frame cleanup. 更多...
 
virtual void ReallocateSceneRenderTargets ()=0
 Forces reallocation of scene render targets.
 
virtual void RegisterCustomCullingImpl (ICustomCulling *impl)=0
 Register/unregister a custom occlusion culling implementation
 
virtual void RequestVirtualTextureTiles (const FVector2D &InScreenSpaceSize, int32 InMipLevel)=0
 Provided a list of packed virtual texture tile ids, let the VT system request them. 更多...
 
virtual void SceneRenderTargetsSetBufferSize (uint32 SizeX, uint32 SizeY)=0
 Sets the buffer size of the render targets.
 
virtual void UpdateStaticDrawLists ()=0
 Updates all static draw lists for each allocated scene.
 
virtual void UpdateStaticDrawListsForMaterials (const TArray< const FMaterial * > &Materials)=0
 Updates static draw lists for the given set of materials for each allocated scene.
 
- Public 成员函数 继承自 IModuleInterface
virtual bool IsGameModule () const
 Returns true if this module hosts gameplay code 更多...
 
virtual void PostLoadCallback ()
 Called after the module has been reloaded
 
virtual void PreUnloadCallback ()
 Called before the module has been unloaded
 
virtual void ShutdownModule ()
 Called before the module is unloaded, right before the module object is destroyed. 更多...
 
virtual void StartupModule ()
 Called right after the module DLL has been loaded and the module object has been created Load dependent modules here, and they will be guaranteed to be available during ShutdownModule. 更多...
 
virtual bool SupportsAutomaticShutdown ()
 Override this to set whether your module would like cleanup on application shutdown 更多...
 
virtual bool SupportsDynamicReloading ()
 Override this to set whether your module is allowed to be unloaded on the fly 更多...
 
virtual ~IModuleInterface ()
 Note: Even though this is an interface class we need a virtual destructor here because modules are deleted via a pointer to this interface

 

详细描述

The public interface of the renderer module.

成员函数说明

◆ AllocateScene()

virtual FSceneInterface * IRendererModule::AllocateScene ( UWorld *  World,
bool  bInRequiresHitProxies,
bool  bCreateFXSystem,
ERHIFeatureLevel::Type  InFeatureLevel 
)
pure virtual

Allocates a new instance of the private FScene implementation for the given world.

参数
World- An optional world to associate with the scene.
bInRequiresHitProxies- Indicates that hit proxies should be rendered in the scene.

◆ DrawRectangle()

virtual void IRendererModule::DrawRectangle ( FRHICommandList &  RHICmdList,
float  X,
float  Y,
float  SizeX,
float  SizeY,
float  U,
float  V,
float  SizeU,
float  SizeV,
FIntPoint  TargetSize,
FIntPoint  TextureSize,
const TShaderRefBase< FShader, FShaderMapPointerTable > &  VertexShader,
EDrawRectangleFlags  Flags = EDRF_Default 
)
pure virtual

Draws a quad with the given vertex positions and UVs in denormalized pixel/texel coordinates.

The platform-dependent mapping from pixels to texels is done automatically. Note that the positions are affected by the current viewport. NOTE: DrawRectangle should be used in the vertex shader to calculate the correct position and uv for vertices.

X, Y Position in screen pixels of the top left corner of the quad SizeX, SizeY Size in screen pixels of the quad U, V Position in texels of the top left corner of the quad's UV's SizeU, SizeV Size in texels of the quad's UV's TargetSizeX, TargetSizeY Size in screen pixels of the target surface TextureSize Size in texels of the source texture VertexShader The vertex shader used for rendering Flags see EDrawRectangleFlags

◆ GetNumDynamicLightsAffectingPrimitive()

virtual uint32 IRendererModule::GetNumDynamicLightsAffectingPrimitive ( const class FPrimitiveSceneInfo *  PrimitiveSceneInfo,
const class FLightCacheInterface *  LCI 
)
pure virtual
返回
The number of lights that affect a primitive.

◆ PerFrameCleanupIfSkipRenderer()

virtual void IRendererModule::PerFrameCleanupIfSkipRenderer ( )
pure virtual

Performs necessary per-frame cleanup.

Only use when rendering through scene renderer (i.e. BeginRenderingViewFamily) is skipped

◆ RequestVirtualTextureTiles()

virtual void IRendererModule::RequestVirtualTextureTiles ( const FVector2D &  InScreenSpaceSize,
int32  InMipLevel 
)
pure virtual

Provided a list of packed virtual texture tile ids, let the VT system request them.

Note this should be called as long as the tiles are needed.


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