Class ForwardZPrePass
Deferred path.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class ForwardZPrePass : RenderPass, IDisposable
Constructors
ForwardZPrePass(ForwardRenderPath, int)
Initializes a new instance of the ForwardZPrePass class.
Declaration
public ForwardZPrePass(ForwardRenderPath renderPath, int passIndex)
Parameters
Type | Name | Description |
---|---|---|
ForwardRenderPath | renderPath | The render path. |
int | passIndex | The pass index. |
Methods
CheckBatch(DrawContext, ref RenderBatch)
Check if the specified batch is suitable to render this pass.
Declaration
public override bool CheckBatch(DrawContext drawContext, ref RenderBatch batch)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The draw context. |
RenderBatch | batch | The batch. |
Returns
Type | Description |
---|---|
bool | True if this object can be rendered. |
Overrides
Remarks
By default, the only requirements is that the batch has a material defined with that layer.
Render(DrawContext, CommandBuffer)
Render this scene.
Declaration
public override void Render(DrawContext drawContext, CommandBuffer commandBuffer)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The context to draw. |
CommandBuffer | commandBuffer | The command buffer. |