Class RenderUnit
Struct that represent a mesh to render.
Inheritance
RenderUnit
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public abstract class RenderUnit
Properties
BoundingBox
Gets the bounding box of this render unit.
Declaration
public virtual BoundingBox? BoundingBox { get; }
Property Value
Type | Description |
---|---|
BoundingBox? |
Methods
Collect(DrawContext)
Collect all the information to be rendered.
Declaration
public abstract void Collect(DrawContext drawContext)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The draw context. |
PassIsAvailable(DrawContext, int)
Return if the pass is available in this render unit.
Declaration
public abstract bool PassIsAvailable(DrawContext drawContext, int passId)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The DrawContext. |
int | passId | The Pass Id. |
Returns
Type | Description |
---|---|
bool | True if the pass is available. |
Prepare(CommandBuffer, DrawContext)
Prepare this unit to be rendered.
Declaration
public abstract void Prepare(CommandBuffer commandBuffer, DrawContext drawContext)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | commandBuffer | The command buffer. |
DrawContext | drawContext | The draw context. |
Render(CommandBuffer, DrawContext, int)
Render a element, using the specified commandBuffer.
Declaration
public abstract void Render(CommandBuffer commandBuffer, DrawContext drawContext, int passId)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | commandBuffer | The command buffer. |
DrawContext | drawContext | The draw context. |
int | passId | The pass id. |