Class ForwardDrawContext
Draw context associated to the deferred render path.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class ForwardDrawContext : CameraDrawContext, IDisposable
Constructors
ForwardDrawContext(RenderPipeline, CameraRenderPath, Camera)
Initializes a new instance of the ForwardDrawContext class.
Declaration
public ForwardDrawContext(RenderPipeline renderPipeline, CameraRenderPath renderPath, Camera camera)
Parameters
Type | Name | Description |
---|---|---|
RenderPipeline | renderPipeline | RenderPipeline. |
CameraRenderPath | renderPath | The render path. |
Camera | camera | The camera. |
Properties
DistortionPassFrameBuffer
Gets or sets the DistortionPass.
Declaration
public FrameBuffer DistortionPassFrameBuffer { get; protected set; }
Property Value
Type | Description |
---|---|
FrameBuffer |
DistortionPassIsEnabled
Gets or sets a value indicating whether this draw context has the distortion pass enabled.
Declaration
public bool DistortionPassIsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
ZPrePassFrameBuffer
Gets or sets the ZPrePass.
Declaration
public FrameBuffer ZPrePassFrameBuffer { get; protected set; }
Property Value
Type | Description |
---|---|
FrameBuffer |
ZPrePassIsEnabled
Gets or sets a value indicating whether this draw context has the zprepass enabled.
Declaration
public bool ZPrePassIsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
CollectBatch(ref RenderBatch)
Collect a batch.
Declaration
public override void CollectBatch(ref RenderBatch batch)
Parameters
Type | Name | Description |
---|---|---|
RenderBatch | batch | The batch info to be collected. |
Overrides
CollectBatches()
Collect render batches from the visible meshes.
Declaration
protected override void CollectBatches()
Overrides
CouldBatch(int, RenderObjectInfo, int, RenderObjectInfo)
Method that indicates if this drawContext could batch this meshes.
Declaration
protected override bool CouldBatch(int idxA, RenderObjectInfo meshA, int idxB, RenderObjectInfo meshB)
Parameters
Type | Name | Description |
---|---|---|
int | idxA | Mesh Index A. |
RenderObjectInfo | meshA | Mesh A. |
int | idxB | Mesh Index B. |
RenderObjectInfo | meshB | Mesh B. |
Returns
Type | Description |
---|---|
bool | True if all is OK. |
Overrides
Destroy()
Destroy the resources.
Declaration
protected override void Destroy()
Overrides
GetPassFramebuffer(int)
Gets the framebuffer associated to the specified pass.
Declaration
public override FrameBuffer GetPassFramebuffer(int passID)
Parameters
Type | Name | Description |
---|---|---|
int | passID | The pass ID. |
Returns
Type | Description |
---|---|
FrameBuffer | The framebuffer. |
Overrides
GetTexture(TextureSemantic, int)
Gets the texture.
Declaration
public override Texture GetTexture(TextureInfo.TextureSemantic textureSemantic, int textureIndex)
Parameters
Type | Name | Description |
---|---|---|
TextureInfo.TextureSemantic | textureSemantic | Texture semantic. |
int | textureIndex | Texture index. |
Returns
Type | Description |
---|---|
Texture | The found texture. |
Overrides
SetPerViewEngineParameters()
Collect shader resources per view.
Declaration
protected override void SetPerViewEngineParameters()