feat(core,rendering)!: add cleanup component support, refactor render pipeline
Introduce ICleanupComponent and cleanup archetype logic in ECS. Refactor component versioning to uint. Update IResourceDatabase to use map/unmap pattern. Decouple per-frame render requests from RenderSystem via IRenderPayload. Update render pipeline and extraction system to new API. BREAKING CHANGE: Entity destruction and render pipeline APIs have changed. IResourceDatabase.MapResource signature is updated; all callers must use map/memcpy/unmap. RenderSystem no longer manages per-frame render requests directly.
This commit is contained in:
8
src/Runtime/Ghost.Engine/Components/GPUInstanceRef.cs
Normal file
8
src/Runtime/Ghost.Engine/Components/GPUInstanceRef.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Ghost.Entities;
|
||||
|
||||
namespace Ghost.Engine.Components;
|
||||
|
||||
public struct GPUInstanceRef : IComponent
|
||||
{
|
||||
public uint gpuSceneIndex;
|
||||
}
|
||||
@@ -11,4 +11,4 @@ public struct MeshInstance : IComponent
|
||||
public RenderingLayerMask renderingLayerMask;
|
||||
public ShadowCastingMode shadowCastingMode;
|
||||
public bool staticShadowCaster;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user