public EmbreeDevice(Context context) { var embreeDeviceSettings = new EmbreeDeviceSettings { }; var status = API.iplEmbreeDeviceCreate(context.Get(), ref embreeDeviceSettings, out mEmbreeDevice); if (status != Error.Success) { throw new Exception(string.Format("Unable to create Embree device. [{0}]", status)); } }
public static extern Error iplEmbreeDeviceCreate(IntPtr context, ref EmbreeDeviceSettings settings, out IntPtr device);