Initialize()
Initialize the device context.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine.LightTransport
- Assembly: UnityEditor.CoreModule
public bool Initialize()
Returns
Type | Description |
|---|---|
| bool | True if the device context was initialized successfully. |
Remarks
RadeonRaysContext implements the IDeviceContext interface. It uses the RadeonRays SDK for intersection testing and the OpenCL 1.2 API for compute. When initializing the context, Unity compiles the compute kernels.
using UnityEngine.LightTransport;using var ctx = new RadeonRaysContext();ctx.Initialize();
How to initialize the context.