message: More cost kernel integration
diff: @@ -173,7 +173,8 @@ struct renderer : viewer_type
  add_cmdline_option( cl::makeOption<algorithm&>({
  { "simple", Simple, "Simple ray casting kernel" },
  { "whitted", Whitted, "Whitted style ray tracing kernel" },
  - { "pathtracing", Pathtracing, "Pathtracing global illumination kernel" }
  + { "pathtracing", Pathtracing, "Pathtracing global illumination kernel" },
  + { "costs", Costs, "BVH cost kernel" }
  },
  "algorithm",
  cl::Desc("Rendering algorithm"),
  @@ -303,6 +304,10 @@ struct renderer : viewer_type
  {
  this->algo = Pathtracing;
  }
  + else if (algo == "costs")
  + {
  + this->algo = Costs;
  + }
  }
  // ambient
  @@ -1866,10 +1871,11 @@ void renderer::render_hud()
  ImGui::SetNextWindowPos(ImVec2(10, 10), ImGuiCond_FirstUseEver);
  ImGui::Begin("Settings", &show_hud);
  - std::array<char const*, 3> algo_names = {{
  + std::array<char const*, 4> algo_names = {{
  "Simple",
  "Whitted",
  - "Path Tracing"
  + "Path Tracing",
  + "Costs"
  }};
  std::array<char const*, 4> ssaa_modes = {{
  @@ -2074,6 +2080,13 @@ void renderer::render_hud()
  counter.reset();
  clear_frame();
  }
  + else if (i == 3)
  + {
  + rt.set_double_buffering(true);
  + algo = Costs;
  + counter.reset();
  + clear_frame();
  + }
  }
  if (selected)
  