forked from Misaki/GhostEngine
Add render graph proof of concept and refactor graphics
Implemented a transient render graph system as a proof of concept, including resource aliasing, pass culling, and typed pass data. Added new project `Ghost.RenderGraph.Concept` targeting `.NET 10.0`. Refactored graphics-related components: - Simplified resource state transitions in `RenderingContext`. - Improved resize handling in `GraphicsTestWindow`. - Updated `D3D12GraphicsEngine` to streamline frame rendering. - Enhanced `D3D12ResourceDatabase` and `D3D12SwapChain` for better resource management. Added detailed documentation: - `ALIASING.md` explains resource aliasing techniques. - `API_DESIGN.md` outlines the render graph API design. Updated solution to include the new render graph project.
This commit is contained in:
58
Ghost.RenderGraph.Concept/PassData.cs
Normal file
58
Ghost.RenderGraph.Concept/PassData.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
namespace Ghost.RenderGraph.Concept;
|
||||
|
||||
// Pass data structure for GBuffer outputs
|
||||
public class GBufferData
|
||||
{
|
||||
public RenderGraphTextureHandle Albedo = null!;
|
||||
public RenderGraphTextureHandle Normal = null!;
|
||||
public RenderGraphTextureHandle Depth = null!;
|
||||
}
|
||||
|
||||
public class LightingPassData
|
||||
{
|
||||
public RenderGraphTextureHandle GBufferAlbedo = null!;
|
||||
public RenderGraphTextureHandle GBufferNormal = null!;
|
||||
public RenderGraphTextureHandle GBufferDepth = null!;
|
||||
public RenderGraphTextureHandle OutputLighting = null!;
|
||||
}
|
||||
|
||||
public class SSAOPassData
|
||||
{
|
||||
public RenderGraphTextureHandle GBufferDepth = null!;
|
||||
public RenderGraphTextureHandle GBufferNormal = null!;
|
||||
public RenderGraphTextureHandle OutputSSAO = null!;
|
||||
}
|
||||
|
||||
public class TAAPassData
|
||||
{
|
||||
public RenderGraphTextureHandle InputLighting = null!;
|
||||
public RenderGraphTextureHandle OutputTAA = null!;
|
||||
}
|
||||
|
||||
public class PostProcessingPassData
|
||||
{
|
||||
public RenderGraphTextureHandle InputTAA = null!;
|
||||
public RenderGraphTextureHandle InputSSAO = null!;
|
||||
public RenderGraphTextureHandle OutputBackbuffer = null!;
|
||||
}
|
||||
|
||||
public class DebugPassData
|
||||
{
|
||||
public RenderGraphTextureHandle DebugTexture = null!;
|
||||
}
|
||||
|
||||
public class ProfilerMarkerData { }
|
||||
|
||||
public class BloomDownsampleData
|
||||
{
|
||||
public RenderGraphTextureHandle Input = null!;
|
||||
public RenderGraphTextureHandle Output = null!;
|
||||
}
|
||||
|
||||
public class PostProcessingPassDataV2
|
||||
{
|
||||
public RenderGraphTextureHandle InputTAA = null!;
|
||||
public RenderGraphTextureHandle InputSSAO = null!;
|
||||
public RenderGraphTextureHandle InputBloom = null!;
|
||||
public RenderGraphTextureHandle OutputBackbuffer = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user