Class RenderLayerInfoPart
This class represents the Render Layer info asset part.
Namespace: Evergine.Framework.Assets.AssetParts
Assembly: Evergine.Framework.dll
Syntax
public class RenderLayerInfoPart : AssetPart
Fields
Order
The order of the render layer.
Declaration
public int Order
Field Value
| Type | Description |
|---|---|
| int |
RenderState
The rendering state description.
Declaration
public RenderStateDescription RenderState
Field Value
| Type | Description |
|---|---|
| RenderStateDescription |
SortMode
The rendering layer sort mode.
Declaration
public SortMode SortMode
Field Value
| Type | Description |
|---|---|
| SortMode |
Methods
FromRenderLayerDescription(RenderLayerDescription)
Creates the asset part from an existing render layer.
Declaration
public static RenderLayerInfoPart FromRenderLayerDescription(RenderLayerDescription renderLayerDescription)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderLayerDescription | renderLayerDescription | The render layer description. |
Returns
| Type | Description |
|---|---|
| RenderLayerInfoPart | The asset part. |
Read(BinaryReader)
Reads this asset part.
Declaration
public static RenderLayerInfoPart Read(BinaryReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryReader | reader | The binary reader. |
Returns
| Type | Description |
|---|---|
| RenderLayerInfoPart | The loaded asset part. |
Write(BinaryWriter)
Writes the sub-asset.
Declaration
public override void Write(BinaryWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryWriter | writer | The stream. |