Struct RenderContext
The high-level renderer context. Used to collect the draw calls for the scene rendering. Can be used to perform a custom rendering.
Assembly: FlaxEngine.dll
File: Engine/Graphics/RenderContext.h
Syntax
public struct RenderContext
Constructors
RenderContext()
Declaration
public RenderContext() = default
RenderContext(SceneRenderTask* task)
Fields
Buffers
The render buffers that contain drawing state (eg. LOD transitions) and scene buffers (eg. GBuffer, DDGI, Shadow Maps).
Declaration
public RenderBuffers* Buffers = nullptr
Field Value
|
RenderBuffers
|
GPULocker
The GPU access locking critical section to protect data access when performing multi-threaded rendering.
Declaration
public static CriticalSection GPULocker
Field Value
|
CriticalSection
|
List
The render list that collects draw calls.
Declaration
public RenderList* List = nullptr
Field Value
|
RenderList
|
LodProxyView
The proxy render view used to synchronize objects level of detail during rendering (eg. during shadow maps rendering passes). It's optional.
Declaration
public RenderView* LodProxyView = nullptr
Field Value
|
RenderView
|
Task
The scene rendering task that is a source of renderable objects (optional).
Declaration
public SceneRenderTask* Task = nullptr
Field Value
|
SceneRenderTask
|