Class ForwardRenderPath
Forward path.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class ForwardRenderPath : CameraRenderPath, IDisposable
  Constructors
ForwardRenderPath(RenderManager)
Initializes a new instance of the ForwardRenderPath class.
Declaration
public ForwardRenderPath(RenderManager renderManager)
  Parameters
| Type | Name | Description | 
|---|---|---|
| RenderManager | renderManager | The render manager.  | 
      
Fields
DistortionPassIsEnabled
Indicates whether the Distortion pass is available.
Declaration
public bool DistortionPassIsEnabled
  Field Value
| Type | Description | 
|---|---|
| bool | 
Forward_Default
The forward pass index.
Declaration
public const int Forward_Default = 2
  Field Value
| Type | Description | 
|---|---|
| int | 
Forward_Distortion
The Distortion pass index.
Declaration
public const int Forward_Distortion = 1
  Field Value
| Type | Description | 
|---|---|
| int | 
Forward_ZPrePass
The ZPrepass index.
Declaration
public const int Forward_ZPrePass = 0
  Field Value
| Type | Description | 
|---|---|
| int | 
ZPrePassIsEnabled
Indicates if the ZPrePass is available.
Declaration
public bool ZPrePassIsEnabled
  Field Value
| Type | Description | 
|---|---|
| bool | 
Properties
DefaultPathId
Gets the default path Id. Every RenderPath should define a default pass.
Declaration
public override int DefaultPathId { get; }
  Property Value
| Type | Description | 
|---|---|
| int | 
Overrides
Methods
CameraRender(CameraDrawContext, CommandBuffer)
Render this scene.
Declaration
protected override 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.  | 
      
Overrides
Collect(DrawContext)
Collect data to perform draw.
Declaration
public override void Collect(DrawContext drawContext)
  Parameters
| Type | Name | Description | 
|---|---|---|
| DrawContext | drawContext | The context to draw.  | 
      
Overrides
CreateNewCameraDrawContext(RenderPipeline, Camera)
Create a new draw context.
Declaration
public override 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.  | 
      
Overrides
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()