Class MeshRenderUnit
Class that represent a mesh to render.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class MeshRenderUnit : RenderUnit
  Constructors
MeshRenderUnit(RenderMeshInfo, uint)
Initializes a new instance of the MeshRenderUnit class.
Declaration
public MeshRenderUnit(RenderMeshInfo info, uint instanceCount = 1)
  Parameters
| Type | Name | Description | 
|---|---|---|
| RenderMeshInfo | info | The mesh info.  | 
      
| uint | instanceCount | The instance count.  | 
      
MeshRenderUnit(uint)
Initializes a new instance of the MeshRenderUnit class.
Declaration
public MeshRenderUnit(uint instanceCount = 1)
  Parameters
| Type | Name | Description | 
|---|---|---|
| uint | instanceCount | The instance count.  | 
      
Fields
Info
The associated mesh info.
Declaration
public RenderMeshInfo Info
  Field Value
| Type | Description | 
|---|---|
| RenderMeshInfo | 
InstanceCount
Number of instanced to be rendered.
Declaration
public uint InstanceCount
  Field Value
| Type | Description | 
|---|---|
| uint | 
Properties
BoundingBox
Gets the bounding box of this render unit.
Declaration
public override BoundingBox? BoundingBox { get; }
  Property Value
| Type | Description | 
|---|---|
| BoundingBox? | 
Overrides
Methods
Collect(DrawContext)
Collect all the information to be rendered.
Declaration
public override void Collect(DrawContext drawContext)
  Parameters
| Type | Name | Description | 
|---|---|---|
| DrawContext | drawContext | The draw context.  | 
      
Overrides
PassIsAvailable(DrawContext, int)
Return if the pass is available in this render unit.
Declaration
public override 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.  | 
      
Overrides
Prepare(CommandBuffer, DrawContext)
Prepare this unit to be rendered.
Declaration
public override void Prepare(CommandBuffer commandBuffer, DrawContext drawContext)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CommandBuffer | commandBuffer | The command buffer.  | 
      
| DrawContext | drawContext | The draw context.  | 
      
Overrides
Render(CommandBuffer, DrawContext, int)
Render a element, using the specified commandBuffer.
Declaration
public override void Render(CommandBuffer commandBuffer, DrawContext drawContext, int passId = 0)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CommandBuffer | commandBuffer | The command buffer.  | 
      
| DrawContext | drawContext | The draw context.  | 
      
| int | passId | The pass id.  |