Interface INativeDisposable
For scheduling release of unmanaged resources.
Namespace: Unity.Collections
Syntax
public interface INativeDisposable : IDisposable
Methods
Dispose(JobHandle)
Creates and schedules a job that will release all resources (memory and safety handles) of this collection.
Declaration
JobHandle Dispose(JobHandle inputDeps)
Parameters
Type | Name | Description |
---|---|---|
JobHandle | inputDeps | A job handle which the newly scheduled job will depend upon. |
Returns
Type | Description |
---|---|
JobHandle | The handle of a new job that will release all resources (memory and safety handles) of this collection. |