RadeonRaysContext
RadeonRaysContext implements the IDeviceContext interface. It uses the RadeonRays SDK for ray-triangle intersection testing and the OpenCL 1.2 API for computations.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Class
- Namespace: UnityEngine.LightTransport
- Assembly: UnityEditor.CoreModule
- Implements: IDeviceContext, IDisposable
public class RadeonRaysContext : IDeviceContext, IDisposable
Constructors
Constructor | Description |
|---|---|
| RadeonRaysContext() | Constructor. |
| RadeonRaysContext(System.IntPtr) | Constructor. |
Methods
Method | Description |
|---|---|
| CreateBuffer | Create a new buffer for a number of elements with a given stride. |
| CreateEvent | Creates a new event. |
| DestroyBuffer | Destroy the buffer with the given ID. |
| DestroyEvent | Destroy the event with the given ID. You should call this to free temporary resources associated with an event. Attempting to use the event after it has been destroyed, for example using IDeviceContext.Wait or IDeviceContext.IsCompleted will result in undefined behavior. |
| Dispose | Dispose. |
| Flush | Flush the device context. |
| Initialize | Initialize the device context. |
| IsCompleted | Returns true if the asynchronous operation completed. |
| ReadBuffer | Read contents of a buffer from the context. |
| Wait | Wait for an asynchronous event. |
| WriteBuffer | Write data into the memory buffer allocated by the context. |