feat(scripting): add managed SRP runtime bridge

This commit is contained in:
2026-04-17 21:38:22 +08:00
parent 8f847db816
commit f4fb859972
6 changed files with 908 additions and 4 deletions

View File

@@ -10,6 +10,37 @@ namespace Gameplay
{
}
public sealed class ManagedRenderPipelineProbeAsset : ScriptableRenderPipelineAsset
{
public static int CreatePipelineCallCount;
protected override ScriptableRenderPipeline CreatePipeline()
{
CreatePipelineCallCount++;
return new ManagedRenderPipelineProbe();
}
}
public sealed class ManagedRenderPipelineProbe : ScriptableRenderPipeline
{
public static int SupportsStageCallCount;
public static int RecordStageCallCount;
protected override bool SupportsStageRenderGraph(
CameraFrameStage stage)
{
SupportsStageCallCount++;
return stage == CameraFrameStage.MainScene;
}
protected override bool RecordStageRenderGraph(
CameraFrameStage stage)
{
RecordStageCallCount++;
return false;
}
}
public sealed class RenderPipelineApiProbe : MonoBehaviour
{
public bool InitialTypeWasNull;