refactor(srp): move renderer feature setup into renderer data
Introduce a formal ScriptableRendererData setup seam so renderer feature attachment is owned by renderer data instead of renderer constructors pulling feature caches. Route lifecycle and reuse probes through the new setup path, lock the non-public setup seam in the API surface probe, and update scripting expectations accordingly.
This commit is contained in:
@@ -34,6 +34,7 @@ namespace Gameplay
|
||||
public bool HasRendererBackedRenderPipelineAssetType;
|
||||
public bool HasRendererBackedRenderPipelineType;
|
||||
public bool HasRendererDrivenRenderPipelineType;
|
||||
public bool HasRendererDataSetupRenderer;
|
||||
public bool HasRendererSupportsRendererRecording;
|
||||
public bool HasRendererRecordRenderer;
|
||||
public bool HasPublicRendererSupportsStageRenderGraph;
|
||||
@@ -51,6 +52,8 @@ namespace Gameplay
|
||||
typeof(ScriptableRenderPipelineAsset);
|
||||
System.Type rendererFeatureType =
|
||||
typeof(ScriptableRendererFeature);
|
||||
System.Type rendererDataType =
|
||||
typeof(ScriptableRendererData);
|
||||
System.Type rendererType =
|
||||
typeof(ScriptableRenderer);
|
||||
System.Type universalAssemblyType =
|
||||
@@ -172,6 +175,11 @@ namespace Gameplay
|
||||
HasRendererDrivenRenderPipelineType =
|
||||
System.Type.GetType(
|
||||
"XCEngine.Rendering.Universal.RendererDrivenRenderPipeline, XCEngine.RenderPipelines.Universal") != null;
|
||||
HasRendererDataSetupRenderer =
|
||||
rendererDataType.GetMethod(
|
||||
"SetupRenderer",
|
||||
BindingFlags.Instance |
|
||||
BindingFlags.NonPublic) != null;
|
||||
HasRendererSupportsRendererRecording =
|
||||
rendererType.GetMethod(
|
||||
"SupportsRendererRecording",
|
||||
|
||||
Reference in New Issue
Block a user