forked from Misaki/GhostEngine
Major refactor of graphics infrastructure: - Introduce ICommandAllocator and D3D12CommandAllocator for explicit command buffer management. - Change ICommandBuffer.Begin to require an allocator. - Add IRenderTargetStrategy abstraction with swap chain and texture implementations. - Update IRenderer to use RenderTargetStrategy instead of direct handle. - Add DPI scaling support to swap chains (ScaleX/ScaleY, SetScale). - RenderSystem now supports thread-safe swap chain resize requests. - Remove persistent copy command buffer; use per-frame allocators. - Make Logger public/static and clean up API visibility. - Update .editorconfig and debug layer enablement. These changes improve modularity, DPI-awareness, and future extensibility.
12 lines
287 B
C#
12 lines
287 B
C#
using Ghost.Graphics.Core;
|
|
using Ghost.Graphics.RHI;
|
|
|
|
namespace Ghost.Graphics.Contracts;
|
|
|
|
public interface IRenderPass
|
|
{
|
|
void Initialize(ref readonly RenderingContext ctx);
|
|
void Execute(ref readonly RenderingContext ctx);
|
|
void Cleanup(IResourceDatabase resourceDatabase);
|
|
}
|