How to change RenderSingleCamera() with SubmitRenderRequest()

Can anyone help me out?

I’m trying to replace RenderSingleCamera() with SubmitRenderRequest(). In RenderSingleCamera(), I just pass the context and the camera I want to render. But with SubmitRenderRequest(), I don’t understand what kind of data the request parameter needs. For example:

RenderPipeline.SubmitRenderRequest(cameraB, request);

What exactly does request mean here? All I’m aiming for is to manually render my water reflection camera. I’ve assigned a render target texture, and I need it to render manually in beginCameraRendering

Here’s what I currently have:

private void PreRender(ScriptableRenderContext context, Camera cam)
{
    SetupRefCam(cam);
    UniversalRenderPipeline.RenderSingleCamera(context, reflectioncam);
}

How can I replace RenderSingleCamera() with SubmitRenderRequest()? Am I missing something, or is there a better approach for this? I’m a bit new to this, so if I’m making a silly mistake, please go easy on me! :sweat_smile:

Code for the SubmitRenderRequest,

Here’s the code in case it helps anyone. My setup renders a camera to a texture, which I then use for water surface reflections. The render texture is assigned as the target for my reflection camera, and SetupRefCam(cam); handles all the projection calculations for it, and the PreRender() is Invoked by beginCameraRendering.

private void PreRender(ScriptableRenderContext context, Camera cam)
{
    SetupRefCam(cam);
    
    RenderPipeline.StandardRequest request = new RenderPipeline.StandardRequest();
    RenderPipeline.SubmitRenderRequest(reflectioncam, request);
}

Feel free to ask if anyone needs more details.