# RunFilterByRef<T>(ref T, NativeList<int>)

> Executes the filter job, on the main thread. See IJobFilterExtensions.Schedule for more information on how appending is performed.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Jobs](/engine/6000.7/script-reference/unity/jobs.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## RunFilterByRef\<T>(T, NativeList\<int>)

```csharp
public static void RunFilterByRef<T>(this ref T jobData, NativeList<int> indices) where T : struct, IJobFilter
```

### Parameters

**** (T): The job and data to schedule. In this variant, the jobData is passed by reference, which may be necessary for unusually large job structs.**** (\[NativeList\<int>]\(/engine/6000.7/script-reference/unity/collections/nativelist1)): List of indices to be filtered. Filtered results will be stored in this list.
