Class ForwardRenderPath
Forward path.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class ForwardRenderPath : CameraRenderPath
Constructors
ForwardRenderPath(RenderManager)
Initializes a new instance of the ForwardRenderPath class.
Declaration
public ForwardRenderPath(RenderManager renderManager)
Parameters
Type | Name | Description |
---|---|---|
RenderManager | renderManager | The rendering manager. |
Fields
Forward_Default
The index of the forward pass.
Declaration
public const int Forward_Default = 2
Field Value
Type | Description |
---|---|
int |
Forward_GBuffer
The GBuffer pass index.
Declaration
public const int Forward_GBuffer = 1
Field Value
Type | Description |
---|---|
int |
Forward_ZPrePass
The Z pre-pass index.
Declaration
public const int Forward_ZPrePass = 0
Field Value
Type | Description |
---|---|
int |
GBufferPassIsEnabled
Indicates whether the GBuffer pass is available.
Declaration
public bool GBufferPassIsEnabled
Field Value
Type | Description |
---|---|
bool |
ZPrePassIsEnabled
Indicates whether 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 path.
Declaration
public override int DefaultPathId { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
Methods
CameraRender(CameraDrawContext, CommandBuffer)
Renders 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 scene. |
Overrides
Collect(DrawContext)
Collects data to perform draw.
Declaration
public override void Collect(DrawContext drawContext)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The context for drawing. |
Overrides
CreateNewCameraDrawContext(RenderPipeline, Camera)
Creates 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()
Destroys all resources of this instance.
Declaration
protected override void Destroy()