refactor(srp): move urp shadow and prepass core blocks into renderer

This commit is contained in:
2026-04-21 16:43:56 +08:00
parent eb5b51ddb1
commit 1cb23cd178
10 changed files with 289 additions and 22 deletions

View File

@@ -532,6 +532,11 @@ namespace XCEngine
Rendering_ScriptableRenderPipelinePlanningContext_ClearShadowCasterStage(
ulong nativeHandle);
[MethodImpl(MethodImplOptions.InternalCall)]
internal static extern bool
Rendering_ScriptableRenderPipelinePlanningContext_GetHasExplicitShadowCasterStageConfiguration(
ulong nativeHandle);
[MethodImpl(MethodImplOptions.InternalCall)]
internal static extern bool
Rendering_ScriptableRenderPipelinePlanningContext_RequestDepthOnlyStage(
@@ -542,6 +547,11 @@ namespace XCEngine
Rendering_ScriptableRenderPipelinePlanningContext_ClearDepthOnlyStage(
ulong nativeHandle);
[MethodImpl(MethodImplOptions.InternalCall)]
internal static extern bool
Rendering_ScriptableRenderPipelinePlanningContext_GetHasExplicitDepthOnlyStageConfiguration(
ulong nativeHandle);
[MethodImpl(MethodImplOptions.InternalCall)]
internal static extern bool
Rendering_ScriptableRenderPipelinePlanningContext_GetHasFinalColorProcessing(

View File

@@ -80,6 +80,13 @@ namespace XCEngine.Rendering
m_nativeHandle);
}
public bool HasExplicitShadowCasterStageConfiguration()
{
return InternalCalls
.Rendering_ScriptableRenderPipelinePlanningContext_GetHasExplicitShadowCasterStageConfiguration(
m_nativeHandle);
}
public bool RequestDepthOnlyStage()
{
return InternalCalls
@@ -94,6 +101,13 @@ namespace XCEngine.Rendering
m_nativeHandle);
}
public bool HasExplicitDepthOnlyStageConfiguration()
{
return InternalCalls
.Rendering_ScriptableRenderPipelinePlanningContext_GetHasExplicitDepthOnlyStageConfiguration(
m_nativeHandle);
}
public bool HasFinalColorProcessing()
{
return InternalCalls