# CreateBuffer(ulong, ulong)

> Create a new buffer for a number of elements with a given stride.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LightTransport](/engine/6000.5/script-reference/unityengine/lighttransport.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public BufferID CreateBuffer(ulong count, ulong stride)
```

### Parameters

**** (\[ulong]\(https\://learn.microsoft.com/dotnet/api/system.uint64)): Number of elements in the buffer.**** (\[ulong]\(https\://learn.microsoft.com/dotnet/api/system.uint64)): Stride of the buffer in bytes.

### Returns

| Type                                                                               | Description                     |
| ---------------------------------------------------------------------------------- | ------------------------------- |
| [BufferID](/engine/6000.5/script-reference/unityengine/lighttransport/bufferid.md) | ID of the newly created buffer. |
