feat(scripting): add managed SRP runtime bridge
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user