Method WithReadOnly
WithReadOnly<TDescription, TCapturedVariableType>(TDescription, TCapturedVariableType)
Capture a variable that stores a native container with read-only access. This allows the job system to track this container as only being read from (potentially allowing more job scheduling).
Declaration
public static TDescription WithReadOnly<TDescription, TCapturedVariableType>(this TDescription description, TCapturedVariableType capturedVariable) where TDescription : ILambdaJobDescription
Parameters
| Type | Name | Description |
|---|---|---|
| TDescription | description | The target object |
| TCapturedVariableType | capturedVariable | Captured variable that stores a NativeContainer |
Returns
| Type | Description |
|---|---|
| TDescription | The target object, suitable for chaining multiple methods |
Type Parameters
| Name | Description |
|---|---|
| TDescription | Type of target object |
| TCapturedVariableType | Type of captured variable |