Class CameraRenderPath
Logical element that groups every Drawable component which shares the same feature/s. It establishes a drawing order, where every component from the same layer is rendered within the same batch.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public abstract class CameraRenderPath : RenderPath
Constructors
CameraRenderPath(RenderManager)
Initializes a new instance of the CameraRenderPath class.
Declaration
public CameraRenderPath(RenderManager renderManager)
Parameters
Type | Name | Description |
---|---|---|
RenderManager | renderManager | The rendering manager. |
Fields
RenderToFrameBuffer
Render to Frame Buffer.
Declaration
protected RenderToFrameBuffer RenderToFrameBuffer
Field Value
Type | Description |
---|---|
RenderToFrameBuffer |
Methods
CameraRender(CameraDrawContext, CommandBuffer)
Renders this scene.
Declaration
protected abstract void CameraRender(CameraDrawContext drawContext, CommandBuffer commandBuffer)
Parameters
Type | Name | Description |
---|---|---|
CameraDrawContext | drawContext | The context to draw. |
CommandBuffer | commandBuffer | The command buffer used to render this scene. |
CreateNewCameraDrawContext(RenderPipeline, Camera)
Creates a new draw context.
Declaration
public virtual CameraDrawContext CreateNewCameraDrawContext(RenderPipeline renderPipeline, Camera camera)
Parameters
Type | Name | Description |
---|---|---|
RenderPipeline | renderPipeline | The render pipeline. |
Camera | camera | The camera. |
Returns
Type | Description |
---|---|
CameraDrawContext | The render context. |
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
RegisterDrawContext(CameraDrawContext)
Registers the draw context.
Declaration
public virtual void RegisterDrawContext(CameraDrawContext drawContext)
Parameters
Type | Name | Description |
---|---|---|
CameraDrawContext | drawContext | The draw context. |
Render(DrawContext, CommandBuffer)
Renders all batches collected by the specified DrawContext.
Declaration
public override void Render(DrawContext drawContext, CommandBuffer commandBuffer)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The DrawContext. |
CommandBuffer | commandBuffer | The command buffer used to render this context. |
Overrides
RenderPassesInternal(DrawContext, CommandBuffer)
Renders all passes.
Declaration
protected override void RenderPassesInternal(DrawContext drawContext, CommandBuffer commandBuffer)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The drawing context. |
CommandBuffer | commandBuffer | The command buffer. |
Overrides
UnregisterDrawContext(CameraDrawContext)
Unregisters the draw context.
Declaration
public virtual void UnregisterDrawContext(CameraDrawContext cameraDrawContext)
Parameters
Type | Name | Description |
---|---|---|
CameraDrawContext | cameraDrawContext | The draw context. |