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 Forward
Declaration
public ForwardZPrePass(ForwardRenderPath renderPath, int passIndex)
Parameters
Type | Name | Description |
---|---|---|
Forward |
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 |
---|---|---|
Draw |
drawContext | The draw context. |
Render |
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 |
---|---|---|
Draw |
drawContext | The context to draw. |
Command |
commandBuffer | The command buffer. |