Class CameraRenderPath
Logical element that groups every Drawable component which shares a same feature/s. It establishes a drawing order, where every component from a same layer is rendered within the same batch.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public abstract class CameraRenderPath : RenderPath, IDisposable
  Constructors
CameraRenderPath(RenderManager)
Initializes a new instance of the CameraRenderPath class.
Declaration
public CameraRenderPath(RenderManager renderManager)
  Parameters
| Type | Name | Description | 
|---|---|---|
| RenderManager | renderManager | The render manager.  | 
      
Fields
RenderToFrameBuffer
Render to Framebuffer.
Declaration
protected RenderToFrameBuffer RenderToFrameBuffer
  Field Value
| Type | Description | 
|---|---|
| RenderToFrameBuffer | 
Methods
CameraRender(CameraDrawContext, CommandBuffer)
Render 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 context.  | 
      
CreateNewCameraDrawContext(RenderPipeline, Camera)
Create 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()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
  Overrides
RegisterDrawContext(CameraDrawContext)
Register the draw context.
Declaration
public virtual void RegisterDrawContext(CameraDrawContext drawContext)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CameraDrawContext | drawContext | The draw context.  | 
      
Render(DrawContext, CommandBuffer)
Render 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)
Render all passes.
Declaration
protected override void RenderPassesInternal(DrawContext drawContext, CommandBuffer commandBuffer)
  Parameters
| Type | Name | Description | 
|---|---|---|
| DrawContext | drawContext | The draw context.  | 
      
| CommandBuffer | commandBuffer | The command buffer.  | 
      
Overrides
UnregisterDrawContext(CameraDrawContext)
Unregister the draw context.
Declaration
public virtual void UnregisterDrawContext(CameraDrawContext cameraDrawContext)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CameraDrawContext | cameraDrawContext | The draw context.  |