refactor(rendering): shrink render pass graph compatibility helpers

This commit is contained in:
2026-04-15 22:32:21 +08:00
parent a8c1337774
commit e9da6b290d
4 changed files with 40 additions and 120 deletions

View File

@@ -1,5 +1,6 @@
#include <XCEngine/Rendering/RenderPassGraphContract.h>
#include "Rendering/Execution/Internal/CameraFrameGraph/SurfaceUtils.h"
#include "Rendering/FrameData/RenderSceneData.h"
#include "Rendering/Graph/RenderGraph.h"
@@ -10,24 +11,6 @@ namespace XCEngine {
namespace Rendering {
namespace {
RenderSurface BuildGraphManagedImportedSurface(
const RenderSurface& templateSurface,
RHI::ResourceStates colorStateBefore,
RHI::ResourceStates colorStateAfter) {
RenderSurface surface = templateSurface;
surface.SetAutoTransitionEnabled(false);
surface.SetColorStateBefore(colorStateBefore);
surface.SetColorStateAfter(colorStateAfter);
return surface;
}
RenderSurface BuildGraphManagedPassSurface(
const RenderSurface& templateSurface) {
RenderSurface surface = templateSurface;
surface.SetAutoTransitionEnabled(false);
return surface;
}
bool ResolveGraphManagedSourceSurface(
const RenderSurface* sourceSurfaceTemplate,
RHI::RHIResourceView* sourceColorView,