CreateBuffer(ulong, ulong)
Create a new buffer for a number of elements with a given stride.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LightTransport
- Assembly: UnityEditor.CoreModule
public BufferID CreateBuffer(ulong count, ulong stride)
Parameters
Returns
Type | Description |
|---|---|
| BufferID | ID of the newly created buffer. |
Remarks
using UnityEngine.LightTransport;IDeviceContext ctx = new RadeonRaysContext();ctx.Initialize();const int numberOfElements = 4;const int strideInBytes = 4;var bufferID = ctx.CreateBuffer(numberOfElements, strideInBytes);ctx.DestroyBuffer(bufferID);ctx.Dispose();
How to create a buffer.