Class SRPSupport
Provides URP and HDRP integration for the camera capture subsystem. Manages custom render passes, depth buffer copies, and per-camera request queuing so that CaptureCamera works transparently across render pipelines.
Inherited Members
Namespace: Unity.SimulationPro
Assembly: Unity.SimulationPro.Capture.dll
Syntax
public class SRPSupport
Properties
instance
The active SRPSupport singleton, created at runtime when a custom render pipeline is detected.
Declaration
public static SRPSupport instance { get; protected set; }
Property Value
| Type | Description |
|---|---|
| SRPSupport |
Methods
GetCurrentPipelineRenderingType()
Get Current Rendering Pipeline type.
Declaration
public static RenderingPipelineType GetCurrentPipelineRenderingType()
Returns
| Type | Description |
|---|---|
| RenderingPipelineType | RenderingPipelineType indicating type of current renering pipeline : (URP/HDRP/Built-in) |
QueueCameraRequest(Camera, AsyncRequest<CaptureState>)
With different rendering pipelines, the moment when you need to capture a camera migh be different. This method will allow for the CaptureCamera class to operate as normal, while allowing the author of the render pipeline to decide when the work get dispatched.
Declaration
public void QueueCameraRequest(Camera camera, AsyncRequest<CaptureCamera.CaptureState> request)
Parameters
| Type | Name | Description |
|---|---|---|
| Camera | camera | The camera that you wish to queue a request for. |
| AsyncRequest<CaptureCamera.CaptureState> | request | The service request payload. |
UsingCustomRenderPipeline()
Returns true if using a custom render pipeline or false otherwise.
Declaration
public static bool UsingCustomRenderPipeline()
Returns
| Type | Description |
|---|---|
| bool | bool |