Struct ListBuffer<T>
A list that stores value on a provided memory buffer.
Usually use this to have a list on stack allocated memory.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public struct ListBuffer<T> where T : unmanaged
Type Parameters
| Name | Description |
|---|---|
| T | The type of the data stored in the list. |
Constructors
| Name | Description |
|---|---|
| ListBuffer(T*, int*, int) | Instantiate a new list. |
Properties
| Name | Description |
|---|---|
| Capacity | The maximum number of item stored in this list. |
| Count | The number of item in the list. |
| this[int] | Get an item from the list. |
Methods
| Name | Description |
|---|---|
| CopyTo(T*, int, int) | Copy the content of this list into another buffer in memory. Safety:
|
| GetUnchecked(in int) | Get an item from the list. Safety: index must be inside the bounds of the list. |
| TryAdd(in T) | Try to add a value in the list. |
| TryCopyFrom(T*, int) | Try to copy the data from a buffer in this list. |
| TryCopyTo(ListBuffer<T>) | Try to copy the list into another list. |