refactor(rendering): queue managed fullscreen pass descriptors

This commit is contained in:
2026-04-18 13:51:09 +08:00
parent 788b1b971e
commit c91e87f2e2
6 changed files with 129 additions and 38 deletions

View File

@@ -1,3 +1,5 @@
using System;
namespace XCEngine
{
public sealed class ScriptableRenderContext
@@ -42,13 +44,22 @@ namespace XCEngine
(int)injectionPoint);
}
public bool RecordColorScaleFullscreenPass(
Vector4 colorScale)
public bool RecordFullscreenPass(
FullscreenPassDescriptor pass)
{
if (!pass.IsValid())
{
throw new ArgumentException(
"Invalid fullscreen pass descriptor.",
nameof(pass));
}
Vector4 vectorPayload = pass.vectorPayload;
return InternalCalls
.Rendering_ScriptableRenderContext_RecordColorScaleFullscreenPass(
.Rendering_ScriptableRenderContext_RecordFullscreenPass(
m_nativeHandle,
ref colorScale);
(int)pass.type,
ref vectorPayload);
}
}
}