Class ForwardDrawContext
Draws context associated with the deferred render path.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class ForwardDrawContext : CameraDrawContext
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 | The render pipeline. |
CameraRenderPath | renderPath | The render path. |
Camera | camera | The camera. |
Properties
GBufferPassFrameBuffer
Gets or sets the GBufferPass.
Declaration
public FrameBuffer GBufferPassFrameBuffer { get; protected set; }
Property Value
Type | Description |
---|---|
FrameBuffer |
GBufferPassIsEnabled
Gets or sets a value indicating whether this draw context has the GBuffer pass enabled.
Declaration
public bool GBufferPassIsEnabled { 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 Z-prepass enabled.
Declaration
public bool ZPrePassIsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
CollectBatch(ref RenderBatch)
Collects a batch.
Declaration
public override void CollectBatch(ref RenderBatch batch)
Parameters
Type | Name | Description |
---|---|---|
RenderBatch | batch | The batch information to be collected. |
Overrides
CollectBatches()
Collects render batches from the visible meshes.
Declaration
protected override void CollectBatches()
Overrides
CouldBatch(int, RenderObjectInfo, int, RenderObjectInfo)
Method that indicates if this drawContext can batch these 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 everything is OK. |
Overrides
Destroy()
Destroys the resources.
Declaration
protected override void Destroy()
Overrides
GetPassFramebuffer(int)
Gets the framebuffer associated with 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 | The texture semantic. |
int | textureIndex | The texture index. |
Returns
Type | Description |
---|---|
Texture | The located texture. |
Overrides
SetPerViewEngineParameters()
Collects shader resources per view.
Declaration
protected override void SetPerViewEngineParameters()