Class RenderMeshInfo
Struct that represents a mesh to render.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class RenderMeshInfo : RenderObjectInfo
Constructors
RenderMeshInfo(Mesh, Material)
Initializes a new instance of the RenderMeshInfo class.
Declaration
public RenderMeshInfo(Mesh mesh, Material material)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh | The mesh. |
Material | material | The material. |
RenderMeshInfo(Mesh, Material, Matrix4x4?)
Initializes a new instance of the RenderMeshInfo class.
Declaration
public RenderMeshInfo(Mesh mesh, Material material, Matrix4x4? rootInverseBindPose)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh | The mesh. |
Material | material | The material. |
Matrix4x4? | rootInverseBindPose | The root inverse bind pose matrix. |
Fields
IsPipelineCacheDirty
Indicates that the pipeline cache is dirty.
Declaration
protected bool IsPipelineCacheDirty
Field Value
Type | Description |
---|---|
bool |
MaterialResources
Gets a dictionary with drawContextId as the key and Pipelines by pass as the value.
Declaration
public readonly Dictionary<int, MaterialResourcesCacheEntry> MaterialResources
Field Value
Type | Description |
---|---|
Dictionary<int, MaterialResourcesCacheEntry> |
Properties
InputLayoutID
Gets the Input Layout ID.
Declaration
public override uint InputLayoutID { get; }
Property Value
Type | Description |
---|---|
uint |
Overrides
InputLayouts
Gets the input layout.
Declaration
public override InputLayouts InputLayouts { get; }
Property Value
Type | Description |
---|---|
InputLayouts |
Overrides
IsActive
Gets a value indicating whether this object is active.
Declaration
public override bool IsActive { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
IsReady
Gets a value indicating whether this instance is ready to render.
Declaration
public override bool IsReady { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Material
Gets the material.
Declaration
public override Material Material { get; }
Property Value
Type | Description |
---|---|
Material |
Overrides
MaterialID
Gets the material ID.
Declaration
public override uint MaterialID { get; }
Property Value
Type | Description |
---|---|
uint |
Overrides
Mesh
Gets the associated mesh.
Declaration
public Mesh Mesh { get; }
Property Value
Type | Description |
---|---|
Mesh |
MeshOrderBias
Gets or sets the mesh order bias.
Declaration
public int MeshOrderBias { get; set; }
Property Value
Type | Description |
---|---|
int |
OrderBias
Gets the order bias.
Declaration
public override int OrderBias { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
PrimitiveTopology
Gets the primitive topology.
Declaration
public override PrimitiveTopology PrimitiveTopology { get; }
Property Value
Type | Description |
---|---|
PrimitiveTopology |
Overrides
RenderStateOrder
Gets the order of the render state.
Declaration
public override int RenderStateOrder { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
RootInverseBindPose
Gets or sets the root inverse bind pose.
Declaration
public Matrix4x4? RootInverseBindPose { get; set; }
Property Value
Type | Description |
---|---|
Matrix4x4? |
SortMode
Gets the sorting mode.
Declaration
public override SortMode SortMode { get; }
Property Value
Type | Description |
---|---|
SortMode |
Overrides
Methods
Collect(DrawContext)
Prepares this object with the specified draw context.
Declaration
public override void Collect(DrawContext drawContext)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The draw context. |
Overrides
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
MakeDirty()
Indicates that this object info is dirty.
Declaration
public override void MakeDirty()
Overrides
RefreshBoundingBox()
Refreshes the bounding box.
Declaration
protected override void RefreshBoundingBox()
Overrides
SetMaterial(Material)
Sets the material.
Declaration
public void SetMaterial(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The material to be set. |
SetMesh(Mesh)
Sets the mesh.
Declaration
public void SetMesh(Mesh mesh)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh | The mesh. |