message: Show _device_ BVH outlines
diff: @@ -1455,6 +1455,10 @@ void renderer::load_camera(std::string filename)
  //
  void renderer::init_bvh_outlines()
  +{
  + outlines.destroy();
  +
  + if (rt.mode() == host_device_rt::CPU)
  {
  if (host_top_level_bvh.num_nodes() > 0)
  {
  @@ -1465,6 +1469,22 @@ void renderer::init_bvh_outlines()
  outlines.init(host_bvhs[0]);
  }
  }
  +#ifdef __CUDACC__
  + else if (rt.mode() == host_device_rt::GPU)
  + {
  + if (device_top_level_bvh.num_nodes() > 0)
  + {
  + index_bvh<host_bvh_type::bvh_inst> temp(device_top_level_bvh);
  + outlines.init(temp);
  + }
  + else
  + {
  + host_bvh_type temp(device_bvhs[0]);
  + outlines.init(temp);
  + }
  + }
  +#endif
  +}
  //-------------------------------------------------------------------------------------------------
  @@ -2374,6 +2394,11 @@ void renderer::on_key_press(key_event const& event)
  }
  counter.reset();
  clear_frame();
  +
  + if (show_bvh)
  + {
  + init_bvh_outlines();
  + }
  #endif
  break;
  