# ProcessCameraCommand

> Use this method to process per-Camera VFX commands for the current frame.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.VFX](/engine/6000.0/script-reference/unityengine/vfx.md)
* **Assembly:** UnityEngine.VFXModule

## ProcessCameraCommand(Camera, CommandBuffer)

Use this method to process per-Camera VFX commands for the current frame.

> **Warning:**
>
> **Deprecated.** Use ProcessCameraCommand with CullingResults to allow culling of VFX per camera

```csharp
public static void ProcessCameraCommand(Camera cam, CommandBuffer cmd)
```

### Parameters

**** (\[Camera]\(/engine/6000.0/script-reference/unityengine/camera)): The Camera to process the VFX commands for.**** (\[CommandBuffer]\(/engine/6000.0/script-reference/unityengine/rendering/commandbuffer)): The CommandBuffer to push commands to (can be null).

### Remarks

The current Scriptable Render Pipeline implementation is responsible for calling this function. The High Definition and Universal Render Pipelines implement this call but you must do it manually if you create your own Scriptable Render Pipeline.

Additional Resources: PrepareCamera.

## ProcessCameraCommand(Camera, CommandBuffer, VFXCameraXRSettings)

Use this method to process per-Camera VFX commands for the current frame.

> **Warning:**
>
> **Deprecated.** Use ProcessCameraCommand with CullingResults to allow culling of VFX per camera

```csharp
public static void ProcessCameraCommand(Camera cam, CommandBuffer cmd, VFXCameraXRSettings camXRSettings)
```

### Parameters

**** (\[Camera]\(/engine/6000.0/script-reference/unityengine/camera)): The Camera to process the VFX commands for.**** (\[CommandBuffer]\(/engine/6000.0/script-reference/unityengine/rendering/commandbuffer)): The CommandBuffer to push commands to (can be null).**** (\[VFXCameraXRSettings]\(/engine/6000.0/script-reference/unityengine/vfx/vfxcameraxrsettings)): The XR settings that the Visual Effect Graph uses to process the Camera commands.

### Remarks

The current Scriptable Render Pipeline implementation is responsible for calling this function. The High Definition and Universal Render Pipelines implement this call but you must do it manually if you create your own Scriptable Render Pipeline.

Additional Resources: PrepareCamera.

## ProcessCameraCommand(Camera, CommandBuffer, VFXCameraXRSettings, CullingResults)

Use this method to process per-Camera VFX commands for the current frame.

```csharp
public static void ProcessCameraCommand(Camera cam, CommandBuffer cmd, VFXCameraXRSettings camXRSettings, CullingResults results)
```

### Parameters

**** (\[Camera]\(/engine/6000.0/script-reference/unityengine/camera)): The Camera to process the VFX commands for.**** (\[CommandBuffer]\(/engine/6000.0/script-reference/unityengine/rendering/commandbuffer)): The CommandBuffer to push commands to (can be null).**** (\[VFXCameraXRSettings]\(/engine/6000.0/script-reference/unityengine/vfx/vfxcameraxrsettings)): The XR settings that the Visual Effect Graph uses to process the Camera commands.**** (\[CullingResults]\(/engine/6000.0/script-reference/unityengine/rendering/cullingresults)): The CullingResults for the current camera, used to cull per-camera VFX commands.

### Remarks

The current Scriptable Render Pipeline implementation is responsible for calling this function. The High Definition and Universal Render Pipelines implement this call but you must do it manually if you create your own Scriptable Render Pipeline.

Additional Resources: PrepareCamera.

## ProcessCameraCommand(Camera, CommandBuffer, VFXCameraXRSettings, CullingResults, CullingResults)

Use this method to process per-Camera VFX commands for the current frame.

```csharp
public static void ProcessCameraCommand(Camera cam, CommandBuffer cmd, VFXCameraXRSettings camXRSettings, CullingResults results, CullingResults customPassResults)
```

### Parameters

**** (\[Camera]\(/engine/6000.0/script-reference/unityengine/camera)): The Camera to process the VFX commands for.**** (\[CommandBuffer]\(/engine/6000.0/script-reference/unityengine/rendering/commandbuffer)): The CommandBuffer to push commands to (can be null).**** (\[VFXCameraXRSettings]\(/engine/6000.0/script-reference/unityengine/vfx/vfxcameraxrsettings)): The XR settings that the Visual Effect Graph uses to process the Camera commands.**** (\[CullingResults]\(/engine/6000.0/script-reference/unityengine/rendering/cullingresults)): The CullingResults for the current camera, used to cull per-camera VFX commands.**** (\[CullingResults]\(/engine/6000.0/script-reference/unityengine/rendering/cullingresults)): Additional CullingResults coming from custom passes, if any.

### Remarks

The current Scriptable Render Pipeline implementation is responsible for calling this function. The High Definition and Universal Render Pipelines implement this call but you must do it manually if you create your own Scriptable Render Pipeline.

Additional Resources: PrepareCamera.
