CreateBuffer(ulong, ulong)
Create a new buffer for a number of elements with a given stride.
읽는 시간 1분최근 업데이트: 한 달 전
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.