 |
SceneDirtyFlags Enumeration |
SceneDirtyFlags enum defines flags that describe what changes have occur in the
Scene from last time the scene was rendered.
Namespace: Ab4d.SharpEngine.CommonAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax[FlagsAttribute]
public enum SceneDirtyFlags
MembersMember name | Value | Description |
---|
None | 0 |
None
|
MaterialBufferChanged | 1 |
MaterialBufferChanged is used for simple material changes where only material buffer is updated. This does not require updating SceneNode, rendering layer regeneration and new recording of command buffers.
|
MaterialChanged | 2 |
MaterialChanged is used for material changes that require new recording of the command buffers. For example, this is used when LineThickness is changed and lines are not rendered by geometry shader.
|
MaterialComplexChange | 4 |
MaterialComplexChange is used when the material change requires regeneration of rendering layers and a new recording of the command buffers. For example, this is used when HasTransparency or VertexColorMaterial's buffer is changed.
|
MaterialIndexChanged | 8 |
MaterialIndex is used when the RenderingItem.MaterialIndex is changed. This requires new recording of the command buffers.
|
EffectsChanged | 16 |
EffectsChanged is used when Effect property is changed on the Material object. This requires regeneration of rendering layers and a new recording of the command buffers.
|
SceneNodesWorldMatrixChanged | 32 |
SceneNodesWorldMatrixChanged is used when SceneNode's WorldMatrix is changed. This does not require any rendering layers regeneration or new recording of command buffers.
|
SceneNodesMatrixIndexChanged | 64 |
MatrixIndex is used when RenderingItem.MatrixIndex is changed. This requires new recording of the command buffers.
|
MeshDataChanged | 128 |
MeshChanged is used when the data in the vertex or index buffer are changed. This does not require rendering layers regeneration, but requires new recording of command buffers.
|
MeshChanged | 256 |
MeshChanged is used when the vertex or index buffer are changed. This requires new recording of the command buffers.
|
SceneNodesVisibilityChanged | 512 |
SceneNodesVisibilityChanged is used when the visibility of a SceneNode is changed. This requires new recording of the command buffers.
|
SceneNodesCountChanged | 1,024 |
SceneNodesCountChanged is used when new SceneNodes are added to the scene or existing Scene nodes are removed from the scene.
|
OtherSceneNodesPropertiesChanged | 2,048 |
OtherSceneNodesPropertiesChanged is used when other SceneNode properties are changed. This requires regeneration of rendering layers and a new recording of the command buffers.
|
SceneBoundingBoxChanged | 4,096 |
SceneBoundingBoxChanged is used when scene bounding box is changed.
|
LightPropertiesChanged | 8,192 |
LightPropertiesChanged is used when properties of lights are changed.
|
LightsCountChanged | 16,384 |
LightsCountChanged is used when number of lights is changed.
|
RenderingLayerSorted | 32,768 |
RenderingLayerSorted is used when the order of RenderingItems in a sorted RenderingLayer is changed. This records all the commands buffers again.
|
RenderingLayersRecreated | 65,536 |
RenderingLayersRecreated is used when all the RenderingLayers are created again. This records all the commands buffers again.
|
RenderingLayersChanged | 131,072 |
RenderingLayersChanged is used when CustomRenderingLayer property is changed or when a new RenderingLayer is added or an existing RenderingLayer is removed. This recollects all rendering items again.
|
SpritesChanged | 262,144 |
SpritesChanged is used to indicate that sprites have been changed.
|
MeshDisposed | 524,288 |
MeshDisposed is used to indicate that a mesh or any of its buffers was disposed by a user. This will check if all assigned meshes are still valid.
|
CoordinateSystemChanged | 1,048,576 |
CoordinateSystemChanged is used to indicate that the Scene's coordinate system has changed.
|
MaterialDisposed | 2,097,152 |
MaterialDisposed is used to indicate that a material or any of its buffers or images was disposed by a user. This will check if all assigned materials are still valid.
|
PipelineRecreated | 4,194,304 |
PipelineRecreated is set in case the pipeline was recreated. When this flag is set, then all objects that require pipeline (RenderingItems, EffectTechniques) need to be recreated.
|
OtherChange | 8,388,608 |
OtherChange
|
All | 16,777,215 |
All
|
See Also